/* Apartment Status Manager - Frontend Styles */

/* Single Apartment Display */
.aptstatus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.aptstatus__name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.aptstatus__status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.aptstatus__status--available {
    background-color: rgba(34, 187, 51, 0.1);
    border-color: rgba(34, 187, 51, 0.3);
}

.aptstatus__status--sold {
    background-color: rgba(187, 34, 34, 0.1);
    border-color: rgba(187, 34, 34, 0.3);
}

.aptstatus__status--reserved {
    background-color: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.3);
}

.aptstatus__info {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Group Table Display */
.apartments-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.apartments-table__group-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.apartments-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.apartments-table th,
.apartments-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.apartments-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.apartments-table tr:hover {
    background-color: #f5f5f5;
}

.apartments-table__name {
    font-weight: 600;
    color: #333;
}

.apartments-table__status {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

.apartments-table__status--available {
    background-color: rgba(34, 187, 51, 0.1);
    border: 1px solid rgba(34, 187, 51, 0.3);
}

.apartments-table__status--sold {
    background-color: rgba(187, 34, 34, 0.1);
    border: 1px solid rgba(187, 34, 34, 0.3);
}

.apartments-table__status--reserved {
    background-color: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.apartments-table__info {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aptstatus {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .apartments-table-wrapper {
        overflow-x: scroll;
    }

    .apartments-table {
        min-width: 500px;
    }

    .apartments-table th,
    .apartments-table td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .apartments-table__group-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .aptstatus {
        padding: 8px;
    }

    .aptstatus__name {
        font-size: 14px;
    }

    .aptstatus__status {
        font-size: 12px;
        padding: 3px 6px;
    }

    .aptstatus__info {
        font-size: 12px;
    }

    .apartments-table th,
    .apartments-table td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .apartments-table__group-title {
        font-size: 16px;
    }
}