/* Account Management Styles */
.mus-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.user-info-card {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: right;
}

.user-info-card h3 {
    margin: 0 0 5px 0;
    color: #495057;
}

.user-info-card p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
}

.account-navigation {
    margin-bottom: 30px;
}

.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #e9ecef;
}

.account-nav li {
    margin-right: 30px;
}

.account-nav li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.account-nav li.active a,
.account-nav li a:hover {
    color: #007cba;
    border-bottom-color: #007cba;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.school-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.school-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.school-card-body {
    padding: 20px;
}

.school-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.no-schools,
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

/* Modal Styles */
.mus-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.modal-body {
    padding: 30px;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.section-title {
    color: #495057;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* border-bottom: 2px solid #007cba; */
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.15s ease-in-out;
    line-height: 1.5;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .user-info-card {
        text-align: left;
        width: 100%;
    }

    .account-nav ul {
        flex-direction: column;
        border-bottom: none;
    }

    .account-nav li {
        margin-right: 0;
        border-bottom: 1px solid #e9ecef;
    }

    .schools-grid {
        grid-template-columns: 1fr;
    }

    .school-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    /* Mobile Booking Card Styles */
    #bookings .border-start {
        position: relative;
        padding-top: 35px !important;
    }

    /* Move booking ID to top right */
    #bookings .border-start .row>div:last-child {
        position: absolute;
        top: 10px;
        right: 15px;
        width: auto !important;
    }

    /* Stack booking info vertically */
    #bookings .border-start .row {
        flex-direction: column;
        gap: 12px;
    }

    #bookings .border-start .row>div {
        width: 100% !important;
        /* text-align: left !important; */
    }

    /* Status badge */
    /* #bookings .border-start .row>div:nth-child(2) {
        text-align: left !important;
    } */

    /* Rooming List button - larger and full width */
    #bookings .border-start .row>div:nth-child(3) {
        margin-top: 8px;
    }

    #bookings .border-start .row>div:nth-child(3) .btn {
        width: 100%;
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #bookings .border-start .row>div:nth-child(3) .btn i {
        font-size: 16px;
    }
}