
:root{
    /*main colors*/
    --primary-color:#071426;
    --secondary-color:#c79a5a;
    --background-color:#f5f7fa;

    /*extra colors*/
    --white:#fff;
    --black:#111827;
    --dark-light:#12213a;
    --gray:#667085;
    --light-gray:#e4e7ec;
    --border-color:#e4e7ec;

    /*status*/
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;

    /*shadow*/
    --shadow:0 18px 50px rgba(7,20,38,.10);

    /*radius*/
    --radius:16px;

    /*tramsit*/
    --transition:.28s ease;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/*body*/
body{
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}
/*===================================layout========================================*/
.admin-container{
    padding-top: 80px;
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;

}
/*cards*/
.card-admin{
    width: 100%;
    background: var(--primary-color);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24PX;
    transition: var(--transition);
}
.card:hover{
    transform: translateY(-10px);
}
.card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-title{
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.card-body{
    width: 100%;
}

/*buttons*/
.btn-admin{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding:10px 18px;
    border: none;
    border-radius: 50px;
    font-size: .95rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-primary{
    background:var(--primary-color) ;
    color: var(--white);
}
.btn-primary:hover{
    opacity: .9;
}

.btn-success{
    background:var(--success) ;
    color: var(--white);
}
.btn-success:hover{
    opacity: .9;
}

.btn-danger{
    background:var(--danger) ;
    color: var(--white);
}
.btn-danger:hover{
    opacity: .9;
}

.outline-btn{
    background:transparent;
    color: var(--secondary-color);
    border: 1px solid #E5E7EB;
}
.outline-btn:hover{
    background: var(--secondary-color);
    color: var(--white);
}
.btn-sm{
    padding: 7px 14px;
    font-size: 0.85rem;
}
.btn-lg{
    padding: 14px 24px;
    font-size: 1rem;
}
/*========forms=======*/

.form-group{
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-label{
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
}

.form-control{
    width: 100%;
    padding:15px 35px;
    border: 1px solid #E5E7EB;
    background: var(--white);
    color: var(--gray);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}
.form-control:focus{
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

select.form-control{
    cursor: pointer;
}
textarea.form-control{
    resize: vertical;
    min-height: 120px;
}
.form-row{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.form-full{
    grid-column: 1/-1;
}
/*==================table==================*/
.table-container{
    width: 100%;
    overflow-x: auto;
}
.admin-table{
    width: 100%;
    border-collapse: collapse;
    background: white;
    
}

.admin-table thead{
    width: 100%;

    background: var(--secondary-color);
    color: var(--white);
}
.admin-table th{

    padding: 18px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
.admin-table td{
    text-align: center;
    padding: 18px;
    border-bottom: 1px solid #E5E7EB;
    color: var(--gray);
    vertical-align: middle;

}
.admin-table tbody tr{
    transition: var(--transition);

}
.admin-table tbody tr{
    background: #fafafa;
}
.admin-table tbody tr:last-child td{
    border-bottom: none;

}
.table-action{
    align-items: center;
    gap: 10px;
}
.table-empty{
    text-align: center;
    padding: 40px;
    color: #adb5bd;
}

@media(max-width:600px){
    .admin-table{
        min-width: 800px;
    }
}
.badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-warning{
    background: #fff3cd;
    color: #856404;
}
.badge-success{
    background: #d1fae5;
    color: #065f46;
}
.badge-danger{
    background: #fee2e2;
    color: #991b1b;
}
.badge-info{
    background: #dbeafe;
    color: #1e40af;
}

.alert{
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}
.badge-warning{
    background: #fff3cd;
    color: #856404;
}
.badge-success{
    background: #d1fae5;
    color: #065f46;
}
.badge-danger{
    background: #fee2e2;
    color: #991b1b;
}
/*======course page=================================================*/

.course-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}
.course-card{
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}
.course-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.course-card-header{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.course-card-header i{
    font-size: 1.8rem;
    color: var(--primary-color);
}

.course-card-header h3{
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.course-card p{
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}
.course-action{
    display: flex;
    gap: 10px;
}
.action-btn{
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;

}
.edit-btn{
    background: #dbeafe;
    color: #2563eb;
}
.edit-btn:hover{
    background: #2563eb;
    color: var(--white);
}
.delete-btn{
    background: #fee2e2;
    color: #dc2626;
}
.delete-btn:hover{
    background: #dc2626;
    color: var(--white);
}

/*===========admin dashboard===========================*/
.dashboard-title{
    background: #061123;
    text-align: center;
    margin-bottom:40px ;
    color: var(--secondary-color);
    border-radius: 50px;
}
.dashboard-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}
.dashboard-card{
    background-color: var(--primary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 35px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    color: var(--secondary-color);

}
.dashboard-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.dashboard-card i{
    font-size: 55px;
    color: #d1fae5;
    margin-bottom: 20px;
}
.dashboard-card h3{
    font-size: 22px;
}
/*========recordedpage=================================================================================================================================*/
/* .recorded-page / .recorded-header / .recorded-grid are NOT redefined
   here anymore — they belong to the public recorded/offline/online
   course pages and are already fully styled (with responsive sizing)
   in style.css. Redefining them here used to silently win on those
   public pages since admin.css loads after style.css on every page. */
.recorded-courses{
    padding: 20px 0 80px;
}
.recorded-card{
    background: linear-gradient(135deg, #eeebeb, #f8f8f8);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.recorded-card:hover{
    transform: translateY(-10px);
}
.recorded-img{
    width: 100%;
    height: 220px;
}
.recorded-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recorded-content{
    padding: 20px;
}
.recorded-content h3{
    color: var(--primary-color);
    font-size: 35px;
    margin-bottom: 12px;
}
.recorded-content .p1{
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 25px;
}
.course-detail-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.course-tag{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.course-tag-level{
    background: var(--primary-color);
    color: var(--white);
}
.course-tag-branch{
    background: rgba(199,154,90,.12);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.course-tag-online{
    background: rgba(46,204,113,.12);
    color: var(--success);
    border: 1px solid var(--success);
}
.course-group-list{
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.course-group-row{
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.course-group-row:last-child{
    border-bottom: none;
    padding-bottom: 0;
}
.course-group-time{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 18px;
    margin: 0;
}
.course-detail-empty{
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}
.price-tag{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #061123;
    color: #c79a5a;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 16px;
}
.recorded-actions{
    display: flex;
    justify-content: space-between;
    margin: auto;
}

.course-lessons{
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 12px;
}
.course-lessons i{
    color: var(--secondary-color);
    margin-right: 6px;
}


/* ===========================Lesson Page========================== */

.lesson-page{
    padding-top: 80px;
    padding: 120px 0;
}
/* ===========================Header===================*/

.course-header{
    margin-bottom: 40px;
}

.course-header h1{
    font-size: 38px;
    font-weight: 700;
    color: #111;
}

.course-header p{
    margin-top: 10px;
    color: #666;
    font-size: 17px;
}

/* ===========================Layout=========================== */

.lesson-layout{

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 30px;

}
/* ===========================Video Player=========================== */

.video-player{

    width: 100%;

    aspect-ratio: 16/9;

    background: #000;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

}

.video-player iframe{

    width: 100%;

    height: 100%;

}
/* ===========================Lesson Info=========================== */

.lesson-info{

    margin-top: 25px;

    background: white;

    border-radius: 15px;

    padding: 25px;

    box-shadow: 0 8px 20px rgba(0,0,0,.08);

}

.lesson-number{

    color: #D4AF37;

    font-weight: bold;

    font-size: 15px;

}

.lesson-info h2{

    margin: 15px 0;

    font-size: 30px;

}

.lesson-info p{

    color: #666;

    line-height: 1.8;

}

/* ===========================Sidebar=========================== */

.lesson-sidebar{

    background: white;

    border-radius: 15px;

    padding: 20px;

    box-shadow: 0 8px 20px rgba(0,0,0,.08);

    height: fit-content;

}

.sidebar-header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.sidebar-header h3{

    font-size: 22px;

}

.sidebar-header span{

    color: #D4AF37;

    font-weight: bold;

}

/* ===========================Lesson List========================== */

.lesson-list{

    display: flex;

    flex-direction: column;

    gap: 15px;

}
/* ===========================Lesson Card=========================== */

.lesson-card{

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px;

    border-radius: 12px;

    text-decoration: none;

    color: black;

    transition: .3s;

    border: 1px solid #eee;

}

.lesson-card:hover{

    background: #D4AF37;

    color: black;

    transform: translateY(-3px);

}

.lesson-card-left{

    display: flex;

    align-items: center;

    gap: 15px;

}

.lesson-order{

    width: 45px;

    height: 45px;

    background: #111;

    color: #D4AF37;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-weight: bold;

}

.lesson-text h4{

    margin-bottom: 5px;

    font-size: 17px;

}

.lesson-text small{

    color: #777;

}

.lesson-card:hover small{

    color: black;

}

.lesson-card-right{

    font-size: 20px;

}


/* =========================Responsive=========================== */

@media(max-width:991px){

.lesson-layout{

    grid-template-columns:1fr;

}

}


/* ===========================Payment Page=========================== */

.payment-page{
    padding: 60px 0;
    background: #f8f8f8;
    min-height: 100vh;
}

/* ===========================Card=========================== */

.payment-card{
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* ===========================Course Info=========================== */

.course-info{
    display: flex;
    gap: 25px;
    align-items: center;
}

.course-info img{
    width: 230px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.course-info h1{
    font-size: 32px;
    margin-bottom: 10px;
    color: #111;
}

.course-info p{
    color: #666;
    margin-bottom: 15px;
}

.price{
    color: #D4AF37;
    font-size: 30px;
    font-weight: bold;
}

/* ===========================Price Breakdown (book payment)=========================== */

.price-breakdown p{
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 6px;
}

.price-breakdown h3.price{
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* ===========================Delivery text inputs=========================== */

.upload-box input[type="text"],
.upload-box input[type="tel"]{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.upload-box input[type="text"]:focus,
.upload-box input[type="tel"]:focus{
    border-color: #D4AF37;
}

/* ===========================Titles=========================== */
/* Scoped to .payment-card only — ".section-title" alone is also the
   big centered marketing heading used on the home/about/contact pages
   (styled in style.css); without this scope it silently overrode
   that heading's centering/spacing on every page. */
.payment-card .section-title{
    margin: 30px 0 20px;
    font-size: 24px;
}

/* ===========================Payment Methods=========================== */

.payment-method{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: .3s;
}

.payment-method:hover{
    border-color: #D4AF37;
    transform: translateY(-3px);
}

.payment-icon{
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #111;
    color: #D4AF37;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.payment-details{
    flex: 1;
    margin-left: 20px;
}

.payment-details h4{
    margin-bottom: 5px;
}

.payment-details p{
    color: #666;
    font-size: 15px;
}

/* ===========================Copy Button=========================== */

.payment-method button{
    background: #D4AF37;
    color: #111;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
}

.payment-method button:hover{
    background: #111;
    color: #D4AF37;
}

/* ===========================Instructions=========================== */

.instructions{
    padding-left: 20px;
}

.instructions li{
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
}

/* ===========================
   Upload
=========================== */

.upload-box,
.notes{
    margin-top: 25px;
}

.upload-box label,
.notes label{
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.upload-box input{
    width: 100%;
    padding: 12px;
    border: 2px dashed #D4AF37;
    border-radius: 10px;
    background: #fffdf4;
}

.notes textarea{
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    outline: none;
}

.notes textarea:focus{
    border-color: #D4AF37;
}

/* ===========================Upload Button=========================== */

.upload-btn{
    width: 100%;
    margin-top: 30px;
    background: #111;
    color: #D4AF37;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.upload-btn:hover{
    background: #D4AF37;
    color: #111;
}

/* ===========================
   HR
=========================== */

.payment-card hr{
    margin: 30px 0;
    border: none;
    height: 1px;
    background: #eee;
}

/* ===========================Responsive========================== */

@media(max-width:768px){
    .course-info{
        flex-direction: column;
        text-align: center;
    }

    .course-info img{
        width: 100%;
        height: 220px;
    }

    .payment-method{
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .payment-details{
        margin: 0;
    }

    .payment-method button{
        width: 100%;
    }

}

/*============================student dashboard=====================*/

.dashboard-container{
    width:90%;
    max-width:1400px;
    margin:40px auto;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    margin-bottom:35px;
}

.welcome h1{
    font-size:34px;
    margin-bottom:10px;
}

.welcome span{
    color:#d4af37;
}

.welcome p{
    color:#777;
}

.student-avatar img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #d4af37;
}

.statistic{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:40px;
}

.stat-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
}

.stat-icon{
    width:65px;
    height:65px;
    margin:auto;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#d4af37;
    color:#fff;
    font-size:25px;
    margin-bottom:18px;
}

.pending{
    background:#ff9800;
}

.approved{
    background:#2ecc71;
}

.stat-card h2{
    font-size:32px;
    margin-bottom:10px;
}

.stat-card p{
    color:#777;
}

.dashboard-section{
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-bottom:35px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.section-header h2{
    font-size:28px;
}

.section-header i{
    color:#d4af37;
    margin-right:10px;
}

.courses-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:25px;
}

.course-card{
    border-radius:18px;
    overflow:hidden;
    background:#fafafa;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.course-card:hover{
    transform:translateY(-8px);
}

.course-image img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.course-content{
    padding:20px;
}

.course-content h3{
    margin-bottom:12px;
}

.course-content p{
    color:#777;
    margin-bottom:20px;
}

.continue-btn{
    display:inline-block;
    text-decoration:none;
    background:#d4af37;
    color:#fff;
    padding:12px 25px;
    border-radius:10px;
    transition:.3s;
}

.continue-btn:hover{
    background:#000;
}

.booking-table{
    overflow-x:auto;
}

.booking-table table{
    width:100%;
    border-collapse:collapse;
}

.booking-table th{
    background:#d4af37;
    color:#fff;
    padding:15px;
}

.booking-table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

.booking-table tr:hover{
    background:#fafafa;
}

.status{
    padding:8px 16px;
    border-radius:30px;
    color:#fff;
    font-size:14px;
}

.status.approved{
    background:#2ecc71;
}



.status.rejected{
    background:#e74c3c;
}

.profile-card{
    display:flex;
    align-items:center;
    gap:30px;
}

.profile-info h3{
    font-size:30px;
    margin-bottom:15px;
}

.profile-info p{
    margin-bottom:10px;
    color:#666;
}

.empty-state{
    text-align:center;
    padding:60px 20px;
}

.empty-state h3{
    margin-bottom:10px;
}

.empty-state p{
    color:#777;
}



.assignment-progress{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto 16px;
}

.assignment-progress span{
    
    font-size: 13px;
    color: var(--gray);
}

.assignment-progress-track{
    width: 140px;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    overflow: hidden;
}

.assignment-progress-fill{
    height: 100%;
    background: var(--secondary-color);
    transition: width var(--transition);
}

.question-card{
    max-width: 640px;
    margin: 0 auto 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.question-head{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.question-number{
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-text{
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.5;
    padding-top: 3px;
}

.question-options{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-row{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.option-row:hover{
    border-color: var(--secondary-color);
}

.option-row input[type="radio"]{
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
    flex-shrink: 0;
    margin: 0;
}

.option-row span{
    font-size: 15px;
    color: var(--primary-color);
}

/* highlighted state, added/removed by JS when a radio is picked */
.option-row.selected{
    border: 1.5px solid var(--secondary-color);
    background: rgba(199, 154, 90, 0.08);
}

.option-row.selected span{
    font-weight: 500;
}

.question-text-answer{
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 15px;
}

.question-text-answer:focus{
    outline: none;
    border-color: var(--secondary-color);
}

.assignment-submit-btn{
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.assignment-submit-btn:hover{
    opacity: 0.9;
}







/*====================================responsive===================*/
@media(max-width:1100px){

.statistic{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.dashboard-header{
    flex-direction:column;
    text-align:center;
    gap:25px;
}

.statistics{
    grid-template-columns:1fr;
}

.courses-grid{
    grid-template-columns:1fr;
}

.profile-card{
    flex-direction:column;
    text-align:center;
}

}

.modal{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
}

.modal img{
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin: 5% auto;
    border-radius: 10px;
}

.close{
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@media (max-width: 992px){

    .admin-container{
        padding: 20px;
    }

    .dashboard-grid{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

    .dashboard-card{
        padding: 25px;
    }

}


/* ============================= */
/* Mobile */
/* ============================= */
@media (max-width:768px){

    .admin-container{
        padding: 15px;
    }

    .dashboard-title{
        font-size: 30px;
        text-align: center;
    }

    .dashboard-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-card{
        width: 100%;
        padding: 20px;
    }

    .dashboard-card i{
        font-size: 35px;
    }

    .dashboard-card h3{
        font-size: 18px;
    }



}


/* ============================= */
/* Small Mobile */
/* ============================= */
@media (max-width:576px){

    .dashboard-title{
        font-size: 25px;
    }

    .dashboard-card{
        padding: 18px;
    }

    .dashboard-card i{
        font-size: 30px;
    }

    .dashboard-card h3{
        font-size: 16px;
    }

}
@media (max-width: 992px){

    .admin-container{
        padding:20px;
    }

    .card-admin{
        padding:20px;
    }

    .course-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .card-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .admin-form{
        width:100%;
    }

    .admin-table{
        min-width:900px;
    }

    .table-container,
    .table-container{
        overflow-x:auto;
    }

}

/* ========================= */
/* Mobile */
/* ========================= */
@media (max-width:768px){

    .admin-container{
        margin-top: 40px;
        padding:15px;
    }

    .dashboard-title,
    .card-title{
        font-size:28px;
        text-align:center;
    }

    .course-grid{
        grid-template-columns:1fr;
    }

    .course-card{
        width:100%;
    }

    .card-header{
        flex-direction:column;
        align-items:stretch;
    }

    .btn-admin,
    .submit-btn button{
        width:100%;
    }

    .admin-form{
        width:100%;
    }

    .input-box input,
    .input-box textarea,
    .input-box select{
        width:100%;
        font-size:16px;
    }

    .admin-table{
        min-width:900px;
    }

    .table-container,
    .table-container{
        overflow-x:auto;
    }

    .table-action{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

}

/* ========================= */
/* Small Mobile */
/* ========================= */
@media (max-width:576px){

    .dashboard-title,
    .card-title{
        font-size:24px;
    }

    .course-card{
        padding:15px;
    }

    .course-card h3{
        font-size:18px;
    }

    .course-card p{
        font-size:14px;
    }

    .btn-admin,
    .submit-btn button{
        font-size:14px;
        padding:10px;
    }

}
@media (max-width: 768px) {

    .admin-container{
        padding:15px;
    }

    .card-admin{
        padding:15px;
        overflow-x:auto;
    }

    .card-header{
        display:flex;
        flex-direction:column;
        gap:15px;
        align-items:flex-start;
    }

    .card-title{
        font-size:24px;
    }

    .btn-admin{
        width:100%;
        justify-content:center;
    }

    .admin-table{
        min-width:700px;
    }

    .table-action{
        display:flex;
        flex-direction:column;
        gap:8px;
    }

    .table-action a,
    .table-action button{
        width:100%;
        text-align:center;
    }

    .modal img{
        width:95%;
        height:auto;
    }

}
/* ========================================================================== 
   PREMIUM ADMIN / STUDENT DASHBOARD OVERRIDES
   ========================================================================== */
:root{
  --admin-bg:#f5f7fa;
  --admin-surface:#fff;
  --admin-border:#e7eaf0;
  --admin-text:#172033;
  --admin-muted:#667085;
  --admin-gold:#c79a5a;
  --admin-navy:#071426;
  --admin-shadow:0 14px 40px rgba(7,20,38,.08);
}
body:has(.admin-container),body:has(.dashboard-container){background:var(--admin-bg);}
.admin-container,.dashboard-container{width:min(100% - 32px,1400px);margin:34px auto;padding-top:78px;}
.admin-container{max-width:1400px;}
.card-admin,.dashboard-section,.dashboard-header,.stat-card{background:var(--admin-surface);border:1px solid var(--admin-border);box-shadow:var(--admin-shadow);}
.card-admin{color:var(--admin-text);border-radius:18px;padding:26px;}
.card-admin:hover{transform:none;}
.card-header,.section-header{gap:18px;}
.card-title,.dashboard-title{color:var(--admin-navy);}
.dashboard-title{background:transparent;text-align:left;margin-bottom:28px;border-radius:0;font-size:clamp(28px,4vw,40px);}
.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.dashboard-card{border:1px solid rgba(199,154,90,.18);border-radius:18px;background:linear-gradient(145deg,#071426,#112541);box-shadow:var(--admin-shadow);padding:30px;color:#f4dcae;}
.dashboard-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(7,20,38,.15);}
.dashboard-card i{color:#e0c18a;}
.admin-form{background:#fff;border:1px solid var(--admin-border);border-radius:18px;padding:28px;box-shadow:var(--admin-shadow);}
.form-label{color:#344054;margin-bottom:7px;}
.form-control,.input-box input,.input-box textarea,.input-box select{border:1px solid #dfe3ea;background:#fff;color:#172033;border-radius:11px;min-height:48px;}
.form-control:focus,.input-box input:focus,.input-box textarea:focus,.input-box select:focus{border-color:var(--admin-gold);box-shadow:0 0 0 4px rgba(199,154,90,.12);}
.btn-admin{min-height:42px;border-radius:11px;}
.btn-primary{background:var(--admin-navy);}
.btn-primary:hover{background:#102746;transform:translateY(-1px);}
.btn-success{background:#15803d;}.btn-danger{background:#b91c1c;}
.outline-btn{color:var(--admin-navy);border-color:#dfe3ea;background:#fff;}
.outline-btn:hover{background:var(--admin-navy);color:#fff;}
.table-container{border:1px solid var(--admin-border);border-radius:14px;background:#fff;box-shadow:var(--admin-shadow);}
.admin-table{background:#fff;}
.admin-table thead{background:var(--admin-navy);}
.admin-table th{padding:14px 16px;font-size:13px;letter-spacing:.25px;}
.admin-table td{padding:14px 16px;border-bottom:1px solid #edf0f4;color:#475467;}
.admin-table tbody tr{background:#fff;}
.admin-table tbody tr:hover{background:#faf9f6;}
.badge{border:1px solid transparent;}
.alert{border:1px solid var(--admin-border);background:#fff;box-shadow:0 6px 18px rgba(7,20,38,.05);}

/* Student dashboard */
.dashboard-container{max-width:1280px;}
.dashboard-header{padding:30px;border-radius:20px;margin-bottom:24px;}
.welcome h1{font-size:clamp(28px,4vw,38px);color:var(--admin-navy);}
.welcome span{color:var(--admin-gold);}
.student-avatar img{border:4px solid var(--admin-gold);box-shadow:0 8px 25px rgba(7,20,38,.12);}
.statistic{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.stat-card{border-radius:17px;padding:26px;}
.stat-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(7,20,38,.11);}
.stat-icon{background:var(--admin-navy);}
.stat-card h2{color:var(--admin-navy);}
.dashboard-section{border-radius:20px;padding:28px;margin-bottom:24px;}
.section-header h2{color:var(--admin-navy);font-size:24px;}
.course-card{background:#fff;border:1px solid var(--admin-border);box-shadow:none;}
.course-card:hover{box-shadow:0 14px 35px rgba(7,20,38,.09);}
.continue-btn{background:var(--admin-navy);border-radius:10px;}
.continue-btn:hover{background:var(--admin-gold);color:var(--admin-navy);}
.booking-table{border:1px solid var(--admin-border);border-radius:14px;}
.booking-table th{background:var(--admin-navy);}

@media(max-width:992px){
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .statistic{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:768px){
  .admin-container,.dashboard-container{width:min(100% - 24px,1400px);padding-top:30px;margin-top:55px;}
  .card-admin,.admin-form,.dashboard-section{padding:20px;}
  .dashboard-grid,.statistic{grid-template-columns:1fr;}
  .dashboard-header{flex-direction:column;text-align:center;padding:24px;}
  .card-header,.section-header{flex-direction:column;align-items:stretch;}
  .dashboard-title,.card-title{text-align:center;}
  .table-container{overflow-x:auto;}
  .admin-table{min-width:760px;}
  .table-action{flex-direction:row;flex-wrap:wrap;justify-content:center;}
}
