/* ===== URDU2KOREAN - STUDENT PANEL CSS ===== */
:root {
    --navy: #1a1a2e;
    --navy-mid: #0f3460;
    --red: #e74c3c;
    --gold: #f39c12;
    --green: #27ae60;
    --white: #ffffff;
    --light: #f0f2f5;
    --border: #dee2e6;
    --shadow: 0 8px 30px rgba(26,26,46,0.12);
    --shadow-sm: 0 2px 12px rgba(26,26,46,0.08);
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: #333;
    margin: 0;
}

.ur { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }

/* ===== STUDENT LAYOUT ===== */
.student-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.student-sidebar {
    width: 250px;
    background: var(--navy);
    color: white;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.student-sidebar::-webkit-scrollbar { width: 4px; }
.student-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.student-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.sb-header {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.sb-avatar {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--red), #c0392b);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    color: white; margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.15);
}

.sb-name {
    font-size: 0.88rem; font-weight: 700;
    color: white; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}

.sb-course-tag {
    display: inline-block;
    background: rgba(243,156,18,0.2);
    border: 1px solid rgba(243,156,18,0.4);
    color: var(--gold);
    font-size: 0.68rem; font-weight: 600;
    padding: 2px 10px; border-radius: 20px;
}

.sb-nav { padding: 12px 10px; }

.sb-section-label {
    padding: 12px 12px 4px;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
}

.sb-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
}

.sb-link:hover { background: rgba(255,255,255,0.08); color: white; }
.sb-link.active { background: var(--red); color: white; }
.sb-link i { width: 18px; text-align: center; font-size: 0.9rem; }

.sb-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.student-content {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.student-topbar {
    background: white;
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
}

.topbar-title {
    font-size: 1.15rem; font-weight: 700;
    color: var(--navy); margin: 0;
}
.topbar-title span { color: var(--red); }

.student-main { padding: 28px; flex: 1; }

/* ===== CARDS ===== */
.s-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.s-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.s-card-header h5 {
    margin: 0; font-weight: 700;
    color: var(--navy); font-size: 0.95rem;
}

.s-card-body { padding: 22px; }

/* ===== STAT CARDS ===== */
.s-stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}
.s-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.s-stat-card.blue { border-left-color: #3498db; }
.s-stat-card.green { border-left-color: var(--green); }
.s-stat-card.gold { border-left-color: var(--gold); }
.s-stat-card.red { border-left-color: var(--red); }

.s-stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white; flex-shrink: 0;
}
.bg-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.bg-green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.bg-gold { background: linear-gradient(135deg, #f39c12, #e67e22); }
.bg-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.bg-navy { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.bg-purple { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.s-stat-info .s-stat-num {
    font-size: 1.6rem; font-weight: 800;
    color: var(--navy); line-height: 1;
}
.s-stat-info .s-stat-label {
    font-size: 0.78rem; color: #888; font-weight: 500;
}

/* ===== PROGRESS BAR ===== */
.course-progress-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: 16px; padding: 24px;
    color: white; position: relative; overflow: hidden;
}
.course-progress-card::before {
    content: '한국어';
    position: absolute;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 6rem; font-weight: 900;
    color: rgba(255,255,255,0.04);
    right: -10px; top: 50%;
    transform: translateY(-50%);
}

.cp-title { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.cp-course { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 16px; }
.cp-bar-wrap {
    background: rgba(255,255,255,0.15);
    border-radius: 10px; height: 10px;
    margin-bottom: 8px; overflow: hidden;
}
.cp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
    border-radius: 10px;
    transition: width 1.2s ease;
}
.cp-meta {
    display: flex; justify-content: space-between;
    font-size: 0.78rem; color: rgba(255,255,255,0.6);
}
.cp-percent {
    font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1;
}
.cp-days { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== PAYMENT BADGE ===== */
.pay-status {
    display: inline-block;
    padding: 3px 12px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.pay-pending   { background: rgba(243,156,18,0.15); color: #d68910; }
.pay-verified  { background: rgba(39,174,96,0.15); color: #1e8449; }
.pay-rejected  { background: rgba(231,76,60,0.15); color: #c0392b; }

/* ===== ASSIGNMENT ITEM ===== */
.assignment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 14px;
}
.assignment-item:last-child { border-bottom: none; }

.assignment-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.a-type-assignment { background: rgba(52,152,219,0.12); color: #3498db; }
.a-type-notes      { background: rgba(39,174,96,0.12); color: #27ae60; }
.a-type-classlink  { background: rgba(231,76,60,0.12); color: var(--red); }

.assignment-meta {
    font-size: 0.78rem; color: #999; margin-top: 3px;
    display: flex; gap: 10px; flex-wrap: wrap;
}

/* ===== CLASS LINK ITEM ===== */
.class-link-item {
    background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(15,52,96,0.06));
    border: 1px solid rgba(231,76,60,0.15);
    border-radius: 12px; padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px; transition: var(--transition);
}
.class-link-item:hover { border-color: var(--red); background: rgba(231,76,60,0.08); }

/* ===== FORMS ===== */
.s-form-label {
    font-size: 0.83rem; font-weight: 600; color: #444; margin-bottom: 5px;
}
.s-form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px; padding: 9px 13px;
    font-size: 0.88rem; font-family: 'Poppins', sans-serif;
    width: 100%; transition: var(--transition);
    background: white;
}
.s-form-control:focus {
    outline: none; border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.btn-s-primary {
    background: linear-gradient(135deg, var(--red), #c0392b);
    color: white; border: none;
    padding: 10px 28px; border-radius: 8px;
    font-weight: 700; font-size: 0.88rem;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-s-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(231,76,60,0.35); }

.btn-s-outline {
    background: transparent;
    color: var(--navy); border: 1.5px solid var(--border);
    padding: 10px 22px; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem;
    cursor: pointer; transition: var(--transition);
    text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.btn-s-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ===== LOGIN PAGE ===== */
.student-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.student-login-card {
    background: white; border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    width: 100%; max-width: 440px;
    overflow: hidden;
}
.login-top {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 36px 30px 28px; text-align: center; color: white;
    position: relative; overflow: hidden;
}
.login-top::before {
    content: '학생';
    position: absolute; font-family: 'Noto Sans KR', sans-serif;
    font-size: 7rem; font-weight: 900;
    color: rgba(255,255,255,0.04);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.login-top .login-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--gold);
    border: 2px solid rgba(255,255,255,0.15);
}
.login-body { padding: 32px 30px; }

/* ===== PAYMENT UPLOAD ===== */
.pay-upload-box {
    border: 2px dashed var(--border);
    border-radius: 10px; padding: 25px;
    text-align: center; cursor: pointer;
    transition: var(--transition); background: #fafafa;
}
.pay-upload-box:hover { border-color: var(--red); background: rgba(231,76,60,0.03); }
.pay-upload-box.has-file { border-color: var(--green); background: rgba(39,174,96,0.04); }

/* ===== TABLE ===== */
.s-table th {
    background: #f8f9fa; font-weight: 700;
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: #888;
    padding: 12px 16px; border: none;
}
.s-table td { padding: 12px 16px; font-size: 0.85rem; vertical-align: middle; }
.s-table tbody tr:hover { background: rgba(26,26,46,0.02); }

/* ===== ALERT ===== */
.s-alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 0.85rem; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.s-alert-success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3); color: #1e8449; }
.s-alert-danger  { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); color: #c0392b; }
.s-alert-info    { background: rgba(52,152,219,0.1); border: 1px solid rgba(52,152,219,0.3); color: #2471a3; }
.s-alert-warning { background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.3); color: #d68910; }

/* ===== EASYPAISA BOX ===== */
.easypaisa-box {
    background: linear-gradient(135deg, #3f9142, #2d6e30);
    border-radius: 14px; padding: 22px 24px;
    color: white; margin-bottom: 20px;
}
.ep-logo { font-size: 0.7rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.ep-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.ep-number { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 1px; }
.ep-hint { font-size: 0.78rem; opacity: 0.75; margin-top: 8px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .student-sidebar { transform: translateX(-100%); }
    .student-sidebar.open { transform: translateX(0); }
    .student-content { margin-left: 0; }
    .student-main { padding: 16px; }
    .student-topbar { padding: 12px 16px; }
}
