:root {
    --primary: #2d8659;
    --secondary: #e5f9e0;
    --accent: #ffd700;
    --danger: #d9534f;
    --light: #f4f4f4;
    --dark: #222;
    --white: #fff;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.navbar {
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.navbar .logo {
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-center {
    display: flex;
    gap: 24px;
}

.nav-center a, .nav-right a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.06em;
    transition: color 0.2s, background 0.2s;
    padding: 6px 18px;
    border-radius: 22px;
}

.nav-center a:hover, .nav-right a:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Active link highlight */
.nav-center a.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* User pill on navbar */
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.16);
    padding: 4px 10px;
    border-radius: 18px;
}
.avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.user-name {
    font-size: 0.95em;
}

.main-content {
    max-width: 1160px;
    margin: 40px auto 0 auto;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
}

/* Search bar above modules */
.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--secondary);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.search-bar input[type="text"], .search-bar select {
    margin: 0;
}

.hero-section {
    background: linear-gradient(120deg, var(--primary) 80%, var(--accent));
    color: var(--white);
    padding: 70px 16px 60px 16px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    background: url('images/durian-hero.jpg') center/cover no-repeat;
    opacity: 0.12;
    position: absolute;
    top:0;left:0;bottom:0;right:0;
    z-index:0;
}
.hero-section h1, .hero-section p, .hero-section a {
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
}
.hero-section p {
    font-size: 1.1em;
    margin-bottom: 18px;
}

.hero-section .hero-btn {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
    padding: 13px 36px;
    border-radius: 25px;
    border: none;
    font-size: 1.18em;
    margin-top: 16px;
    cursor: pointer;
    transition: background 0.22s;
}
.hero-section .hero-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 20px 0 6px 0;
}
.module-card {
    background: var(--secondary);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.module-card:hover {
    box-shadow: 0 6px 24px rgba(44, 120, 70, 0.08);
    transform: translateY(-4px) scale(1.02);
}
.module-card .category-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 7px;
}
.module-card h3 {
    color: var(--primary);
    margin: 0;
}
.module-card .module-description {
    color: #444;
    font-size: 1em;
}
.module-card .view-btn, .module-card .edit-btn, .module-card .delete-btn {
    margin-top: 8px;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 22px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
}
.module-card .view-btn:hover { background: var(--accent); color: var(--primary);} 
.module-card .edit-btn { background: #348d35; }
.module-card .edit-btn:hover { background: var(--accent); color: #348d35;}
.module-card .delete-btn { background: var(--danger);} 
.module-card .delete-btn:hover { background: #922f2b; color: var(--white);} 

/* Category header */
.category-section {
    border-top: 1px dashed #d6e9d1;
    padding-top: 16px;
}
.category-title {
    color: var(--primary);
    font-size: 1.4em;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.module-category-badge {
    background:#eaf6ea;
    color:#2d8659;
    padding:4px 10px;
    border-radius:14px;
    font-size:0.9em;
}
.module-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

/* View module page */
.module-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px;
    background-color: #fdfdfd;
    border: 1px solid #e7f1e2;
    border-radius: 12px;
}
.module-content .view-file {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 18px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 22px;
}

form {
    background: var(--secondary);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    max-width: 540px;
    margin: 0 auto 32px auto;
}
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d0e8c1;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 1.05em;
    background: var(--white);
    outline: none;
    transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
    border: 1.5px solid var(--primary);
}
form label {
    font-weight: 600;
    margin-bottom: 7px;
    display: inline-block;
    color: var(--primary);
    font-size: 1em;
}
form button {
    background: var(--primary);
    color: var(--white);
    padding: 12px 40px;
    border-radius: 22px;
    font-size: 1.08em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
form button:hover {
    background: var(--accent);
    color: var(--primary);
}
a.back-button {
    display: inline-block;
    margin-top: 18px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 22px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
a.back-button:hover {
    background: var(--accent);
    color: var(--primary);
}

footer {
    background: var(--primary);
    color: var(--white);
    padding: 28px 0;
    text-align: center;
    margin-top: 64px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-size: 1.08em;
}

@media (max-width: 900px) {
    .main-content, .modules-grid, form {
        padding: 12px;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .navbar, .footer {
        flex-direction: column;
        gap: 18px;
    }
}

.video-section video {
    width: 100%;
    max-width: 700px;
    border-radius: 14px;
    background: #000;
    margin: 0 auto;
    display: block;
}

.category-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Professional tables (simplified) */
.table-container {
    width: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e8efe8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin: 14px 0;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98em;
}
.data-table thead th {
    background: #f7fbf6;
    color: #2f6f4a;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 1px solid #e8efe8;
}
.data-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f4f0;
}
.data-table tbody tr:hover {
    background: #fafdf9;
}
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e9f6ec;
    color: #2d8659;
    font-weight: 600;
    font-size: 0.88em;
}
/* Status variants */
.status-pill--pending { background: #eef1f4; color: #4d5b6a; }
.status-pill--approved { background: #e7f7ee; color: #2d8659; }
.status-pill--declined { background: #fde8e6; color: #b23c35; }

/* Date column alignment */
th.col-date, td.col-date {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Chips (compact badges) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    background: #f2f7f1;
    color: #2f6f4a;
    border: 1px solid #e3efe6;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.92em;
}

@media (max-width: 720px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { border-bottom: 1px solid #eef4f0; }
    .data-table td { padding: 12px 14px; }
    .data-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #2f6f4a;
        margin-bottom: 6px;
    }
}
/* Message styles */
.message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    font-weight: 500;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.reason-input {
    padding: 6px 8px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}
.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-accept:hover {
    background-color: #218838;
}
.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-decline:hover {
    background-color: #c82333;
}

/* Learner info */
.learner-info {
    font-weight: 500;
    color: #2c3e50;
}
.learner-email {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}
.schedule-info {
    font-size: 0.9em;
    color: #495057;
    margin-top: 4px;
}

/* Improved Action buttons layout */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-width: 280px;
}

.button-group {
    display: flex;
    justify-content: center;
}

.decline-group {
    display: flex;
    justify-content: center;
}

.action-form {
    display: flex;
    width: 100%;
}

.decline-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.reason-input {
    padding: 8px 12px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.reason-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-accept:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-decline:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.decline-reason {
    color: #6b7a68;
    font-size: 0.9em;
    font-style: italic;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accepted-status {
    color: #28a745;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        min-width: 100%;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Side-by-side button layout */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    flex: 1;
    min-width: 120px;
}

.decline-group {
    display: flex;
    flex: 1;
    min-width: 200px;
}

.action-form {
    display: flex;
    width: 100%;
}

.decline-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.reason-input {
    padding: 8px 12px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.reason-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-accept:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-decline:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.decline-reason {
    color: #6b7a68;
    font-size: 0.9em;
    font-style: italic;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accepted-status {
    color: #28a745;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive adjustments for side-by-side layout */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .button-group, .decline-group {
        min-width: 100%;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Side-by-side button layout - buttons on same line */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.action-form {
    display: flex;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.btn-accept:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.btn-decline:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.reason-section {
    margin-top: 8px;
}

.reason-input {
    padding: 8px 12px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.reason-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.decline-reason {
    color: #6b7a68;
    font-size: 0.9em;
    font-style: italic;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accepted-status {
    color: #28a745;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }
}

/* Professional Action Buttons */
.professional-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e8ecef;
    min-width: 320px;
}

.action-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.action-form {
    flex: 1;
    display: flex;
}

.btn-professional {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-professional:hover::before {
    left: 100%;
}

.btn-professional i {
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-professional:hover i {
    transform: scale(1.1);
}

.btn-accept {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accept:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-decline {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-decline:hover {
    background: linear-gradient(135deg, #c82333 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-decline:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Reason Section */
.reason-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reason-label i {
    color: #dc3545;
}

.reason-input-professional {
    padding: 12px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.reason-input-professional:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: #fefefe;
}

.reason-input-professional::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Status Display */
.status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.status-display.accepted-status {
    background: #f0f9f4;
    border-left-color: #28a745;
}

.status-display.decline-reason {
    background: #fdf2f2;
    border-left-color: #dc3545;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.status-detail {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.status-text {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-actions {
        min-width: 100%;
        padding: 12px;
    }
    
    .action-buttons-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-professional {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .reason-input-professional {
        font-size: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .professional-actions {
        padding: 8px;
        gap: 12px;
    }
    
    .btn-professional {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Simple Action buttons - original style */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.reason-input {
    padding: 6px 8px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-accept:hover {
    background-color: #218838;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-decline:hover {
    background-color: #c82333;
}

/* Learner info */
.learner-info {
    font-weight: 500;
    color: #2c3e50;
}

.learner-email {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Horizontal button layout - side by side */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.reason-input {
    padding: 6px 8px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    margin-right: 8px;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-accept:hover {
    background-color: #218838;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-decline:hover {
    background-color: #c82333;
}

/* Learner info */
.learner-info {
    font-weight: 500;
    color: #2c3e50;
}

.learner-email {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }
}

/* Fixed horizontal button layout */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.action-form {
    display: inline-block;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-accept:hover {
    background-color: #218838;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-decline:hover {
    background-color: #c82333;
}

.reason-section {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.reason-input {
    padding: 6px 8px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    max-width: 300px;
}

/* Learner info */
.learner-info {
    font-weight: 500;
    color: #2c3e50;
}

.learner-email {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
        min-width: 100%;
        max-width: 100%;
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }
}

/* Side-by-side layout for accept and decline forms */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
}

.accept-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.decline-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
    min-width: 100px;
}

.btn-accept:hover {
    background-color: #218838;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
    min-width: 100px;
}

.btn-decline:hover {
    background-color: #c82333;
}

.reason-input {
    padding: 8px 12px;
    border: 1px solid #dfe7dc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 180px;
    box-sizing: border-box;
}

/* Learner info */
.learner-info {
    font-weight: 500;
    color: #2c3e50;
}

.learner-email {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .reason-input {
        font-size: 16px; /* Prevent zoom on iOS */
        min-width: 100%;
        max-width: 100%;
    }
    
    .btn-accept, .btn-decline {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }
}

/* Dashboard Styles */
.dashboard-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: var(--primary);
    font-size: 2.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dashboard-header p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5em;
}

.stat-content h3 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.95em;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.quick-actions, .recent-activity {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-actions h3, .recent-activity h3 {
    color: var(--primary);
    font-size: 1.3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: var(--secondary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
}

.action-btn i {
    font-size: 1.5em;
}

.action-btn span {
    font-size: 0.9em;
    text-align: center;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: var(--primary);
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
    color: var(--dark);
}

.activity-content small {
    color: #6c757d;
    font-size: 0.85em;
}

/* Progress Bar Component */
.progress-container {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
}

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

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* Enhanced Module Cards */
.module-card-enhanced {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.module-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.module-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.module-card-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.module-title-enhanced {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.module-category-badge-enhanced {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.module-description-enhanced {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #6c757d;
}

.module-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.module-actions-enhanced {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 20px;
    max-width: 350px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8em;
}

.notification-icon.success {
    background: #28a745;
}

.notification-icon.error {
    background: #dc3545;
}

.notification-icon.info {
    background: #17a2b8;
}

.notification-title {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.notification-message {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
}

/* Mobile Responsiveness for Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .stat-content h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .dashboard-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 15px;
    }
}

/* Progress Overview Styles */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.progress-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.progress-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5em;
}

.progress-content h3 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.progress-content p {
    color: #6c757d;
    font-size: 0.95em;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* Enhanced Table Styles */
.enhanced-table {
    font-size: 0.95em;
}

.enhanced-table thead th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary);
    font-weight: 600;
    padding: 15px 12px;
    border-bottom: 2px solid var(--primary);
}

.enhanced-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
}

.enhanced-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.learner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.learner-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1em;
}

.learner-details strong {
    color: var(--primary);
    font-size: 1.05em;
}

.progress-container-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.progress-container-inline .progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-container-inline .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9em;
    min-width: 35px;
    text-align: right;
}

.last-activity {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

.progress-info {
    text-align: center;
}

.progress-text {
    font-weight: 600;
    color: var(--primary);
}

/* Module Duration and Rating Styles */
.module-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9em;
}

.module-duration i {
    color: var(--primary);
}

.module-rating i {
    color: #ffc107;
    font-size: 0.9em;
}

.module-rating span {
    margin-left: 5px;
    font-weight: 600;
    color: #6c757d;
}

/* Enhanced Button Styles */
.module-actions-enhanced .view-btn,
.module-actions-enhanced .edit-btn,
.module-actions-enhanced .delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.module-actions-enhanced .view-btn {
    background: var(--primary);
    color: var(--white);
}

.module-actions-enhanced .view-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.module-actions-enhanced .edit-btn {
    background: #17a2b8;
    color: var(--white);
}

.module-actions-enhanced .edit-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.module-actions-enhanced .delete-btn {
    background: var(--danger);
    color: var(--white);
}

.module-actions-enhanced .delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Mobile Responsiveness for Progress Page */
@media (max-width: 768px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .progress-card {
        padding: 20px;
    }
    
    .progress-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .progress-content h3 {
        font-size: 1.8em;
    }
    
    .enhanced-table {
        font-size: 0.85em;
    }
    
    .learner-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .progress-container-inline {
        flex-direction: column;
        gap: 5px;
        min-width: 100px;
    }
}

/* Quiz System Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}

.quiz-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.quiz-header h2 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.quiz-subtitle {
    font-size: 1.1em;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.quiz-progress .progress-bar {
    flex: 1;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress .progress-fill {
    height: 100%;
    background: var(--white);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.quiz-progress .progress-text {
    font-weight: 600;
    font-size: 0.9em;
}

.quiz-form {
    padding: 30px;
}

.question-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(45, 134, 89, 0.1);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

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

.question-text {
    color: var(--dark);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.1);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label input[type="radio"]:checked + .option-text {
    color: var(--primary);
    font-weight: 600;
}

.option-label input[type="radio"]:checked + .option-text .option-letter {
    background: var(--primary);
    color: var(--white);
}

.option-text {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.option-letter {
    background: #e9ecef;
    color: #6c757d;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.submit-btn, .back-btn, .continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
}

.submit-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
}

.back-btn {
    background: #6c757d;
    color: var(--white);
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.continue-btn {
    background: var(--accent);
    color: var(--primary);
}

.continue-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Quiz Results Styles */
.quiz-results {
    padding: 30px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--white);
}

.score-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 1.2em;
    opacity: 0.8;
}

.results-header h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

.score-percentage {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.results-breakdown {
    margin-bottom: 30px;
}

.results-breakdown h4 {
    color: var(--primary);
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}

.question-review {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #e9ecef;
}

.question-review.correct {
    border-left-color: #28a745;
}

.question-review.incorrect {
    border-left-color: #dc3545;
}

.question-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.question-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.question-status.correct {
    background: #d4edda;
    color: #155724;
}

.question-status.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.answer-explanation {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.answer-explanation p {
    margin: 5px 0;
    font-size: 0.95em;
}

.answer-explanation strong {
    color: var(--primary);
}

/* Mobile Responsiveness for Quiz */
@media (max-width: 768px) {
    .quiz-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .quiz-header {
        padding: 20px;
    }
    
    .quiz-header h2 {
        font-size: 1.8em;
    }
    
    .quiz-form {
        padding: 20px;
    }
    
    .question-card {
        padding: 20px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .option-label {
        padding: 12px 15px;
    }
    
    .quiz-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .submit-btn, .back-btn, .continue-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Quiz Button Styles */
.quiz-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    margin-left: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quiz-button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
    border-color: var(--accent);
}

.quiz-button i {
    font-size: 1.1em;
}

/* Bookmark System Styles */
.bookmarks-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--secondary), #f0f9f4);
    border-radius: 20px;
}

.bookmarks-header h2 {
    color: var(--primary);
    font-size: 2.2em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bookmarks-header p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.bookmark-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bookmark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.bookmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bookmark-header h3 {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.bookmark-actions {
    display: flex;
    gap: 10px;
}

.bookmark-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.bookmark-btn.bookmarked {
    color: var(--primary);
}

.bookmark-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.bookmark-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.bookmark-category {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.bookmark-date {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bookmark-actions-bottom {
    display: flex;
    gap: 10px;
}

.view-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.view-bookmark-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.empty-bookmarks {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-bookmarks i {
    font-size: 4em;
    color: var(--accent);
    margin-bottom: 20px;
}

.empty-bookmarks h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin: 0 0 15px 0;
}

.empty-bookmarks p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0 0 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.browse-modules-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.browse-modules-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
}

/* Bookmark Button in Module Cards */
.module-bookmark-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-bookmark-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: scale(1.1);
}

.module-bookmark-btn.bookmarked {
    color: var(--accent);
}

/* Mobile Responsiveness for Bookmarks */
@media (max-width: 768px) {
    .bookmarks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bookmark-card {
        padding: 20px;
    }
    
    .bookmark-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .bookmark-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .empty-bookmarks {
        padding: 40px 20px;
    }
    
    .empty-bookmarks i {
        font-size: 3em;
    }
    
    .empty-bookmarks h3 {
        font-size: 1.5em;
    }
}

/* Achievements System Styles */
.achievements-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--accent), #ffed4e);
    border-radius: 20px;
}

.achievements-header h2 {
    color: var(--primary);
    font-size: 2.2em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.achievements-header p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-item .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5em;
}

.stat-item .stat-content h3 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.stat-item .stat-content p {
    color: #6c757d;
    font-size: 0.95em;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.achievements-section {
    margin: 40px 0;
}

.achievements-section h3 {
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.achievement-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-card.earned {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.achievement-card.earned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ffed4e);
}

.achievement-card.locked {
    opacity: 0.7;
    background: #f8f9fa;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    background: #f8f9fa;
    flex-shrink: 0;
}

.achievement-card.earned .achievement-icon {
    background: linear-gradient(135deg, var(--accent), #ffed4e);
    color: var(--primary);
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    color: var(--primary);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.achievement-content p {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.achievement-date {
    color: #6c757d;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.achievement-progress {
    margin-top: 10px;
}

.achievement-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.achievement-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffed4e);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.achievement-progress .progress-text {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 600;
}

.achievement-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f8f9fa;
    flex-shrink: 0;
}

.achievement-card.earned .achievement-status {
    background: #d4edda;
}

.no-achievements {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-achievements i {
    font-size: 4em;
    color: var(--accent);
    margin-bottom: 20px;
}

.no-achievements h4 {
    color: var(--primary);
    font-size: 1.5em;
    margin: 0 0 15px 0;
}

.no-achievements p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsiveness for Achievements */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .achievement-content {
        order: 2;
    }
    
    .achievement-status {
        order: 3;
    }
    
    .no-achievements {
        padding: 40px 20px;
    }
    
    .no-achievements i {
        font-size: 3em;
    }
    
    .no-achievements h4 {
        font-size: 1.3em;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

.navbar-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tablet and Mobile Responsive - Navbar */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .navbar .logo {
        font-size: 1.6em;
    }
    
    .nav-center {
        gap: 15px;
    }
    
    .nav-center a, .nav-right a {
        font-size: 0.95em;
        padding: 5px 12px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar .logo {
        font-size: 1.4em;
        width: 100%;
        text-align: center;
    }
    
    .navbar-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .nav-center {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-center a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
    }
    
    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    
    .nav-right a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .lang-switch {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .user-pill {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
    
    .main-content {
        margin: 20px auto 0;
        padding: 20px 15px;
        border-radius: 12px;
    }
}

/* Mobile Responsive - Main Content */
@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.2em;
    }
    
    .main-content {
        margin: 10px auto 0;
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    h1, h2 {
        font-size: 1.5em !important;
    }
    
    h3 {
        font-size: 1.2em !important;
    }
}

/* Responsive Grids */
@media (max-width: 768px) {
    .modules-grid,
    .stats-grid,
    .dashboard-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .module-card-enhanced,
    .stat-card,
    .feature-card {
        width: 100%;
        margin: 0;
    }
}

/* Responsive Forms */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        width: 100% !important;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button,
    .btn,
    .view-btn,
    .premium-btn {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100% !important;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.9em;
    }
    
    table th,
    table td {
        padding: 8px 5px;
    }
    
    /* Make tables scrollable on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h2 {
        font-size: 1.3em;
    }
}

/* Responsive Buttons */
@media (max-width: 480px) {
    .hero-buttons,
    .premium-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a,
    .premium-actions button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Responsive Video Embeds */
.video-wrapper,
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    iframe {
        height: 250px !important;
    }
}

/* Responsive Cards */
@media (max-width: 768px) {
    .module-card-enhanced,
    .achievement-card,
    .testimonial-card {
        padding: 15px;
    }
    
    .module-card-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .module-actions-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .module-actions-enhanced a,
    .module-actions-enhanced button {
        width: 100%;
        text-align: center;
    }
}

/* Responsive Category Sections */
@media (max-width: 768px) {
    .category-section {
        margin-bottom: 20px;
    }
    
    .category-title {
        font-size: 1.1em;
        padding: 12px;
    }
    
    .category-content {
        padding: 10px 0;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Touch-friendly targets */
@media (max-width: 768px) {
    a, button {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive Text */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* =========================================
   RESPONSIVE DESIGN OVERHAUL (Mobile & Tablet)
   ========================================= */

/* Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Mobile Navigation (Max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-center {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        text-align: center;
    }

    .nav-center a {
        display: block;
        width: 100%;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .user-pill {
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .hero-section .hero-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Modules Grid Responsive */
@media (max-width: 900px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Allow smaller cards */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .modules-grid {
        grid-template-columns: 1fr; /* Full width on mobile */
    }

    .module-card {
        padding: 20px;
    }
}

/* Forms Responsive */
@media (max-width: 768px) {
    form {
        padding: 20px;
        margin: 0 auto 20px auto;
        width: 100%;
    }

    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    form button {
        width: 100%;
    }
}

/* Main Content & Layout */
@media (max-width: 768px) {
    .main-content {
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 0; /* Remove radius on mobile for full-width feel */
        box-shadow: none;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input, 
    .search-bar select, 
    .search-bar button {
        width: 100%;
        margin: 0;
    }
}

/* Module View Page Responsive */
@media (max-width: 768px) {
    .module-content {
        padding: 15px;
    }

    .module-content h2 {
        font-size: 1.5em;
    }

    .module-content iframe,
    .module-content video {
        height: auto;
        min-height: 250px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer {
        margin-top: 30px;
        padding: 20px 10px;
        font-size: 0.9em;
    }
}
