* {
    max-width: 100%;
    box-sizing: border-box;
}

:root {
    --az-blue: #00B4D8;
    --az-blue-dark: #0096C7;
    --az-red: #D62828;
    --az-red-dark: #C1121F;
    --az-green: #2A9D8F;
    --az-green-dark: #248277;
    --az-gold: #FFB703;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --card-width: 440px;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    position: relative;
    overflow-x: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EDF5 100%);
    min-height: 100vh;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.profile-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 10px !important;
    margin: 0 !important;
}

.form-panel,
.items-panel,
.admin-sub-tabs,
.admin-tabs-dropdown {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.admin-sub-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tabs-dropdown {
    display: none;
    margin-bottom: 30px;
    width: 100%;
}

.tabs-dropdown-toggle {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.tabs-dropdown-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.tabs-dropdown-menu {
    display: none;
    background: white;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    width: 100%;
}

body.dark-mode .tabs-dropdown-menu {
    background: #1E293B;
    border-color: #334155;
}

.tabs-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .tabs-dropdown-menu a {
    color: #CBD5E1;
    border-bottom-color: #334155;
}

.tabs-dropdown-menu a:last-child {
    border-bottom: none;
}

.tabs-dropdown-menu a:hover {
    background: rgba(0, 180, 216, 0.1);
    padding-left: 28px;
}

.tabs-dropdown-menu a.active {
    background: rgba(0, 180, 216, 0.15);
    color: #00B4D8;
    font-weight: 700;
}

.tabs-dropdown-menu a.active:before {
    content: "✓ ";
    color: #00B4D8;
}

@media (max-width: 768px) {
    .admin-sub-tabs {
        display: none !important;
    }

    .admin-tabs-dropdown {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .tabs-dropdown-toggle {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .tabs-dropdown-menu a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

.admin-sub-tab {
    padding: 10px 24px;
    background: white;
    color: #5A6C7E;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

body.dark-mode .admin-sub-tab {
    background: rgba(30, 41, 59, 0.8);
    color: #94A3B8;
    border-color: #334155;
}

.admin-sub-tab:hover {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.admin-sub-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border-color: transparent;
}

.form-panel,
.items-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .form-panel,
body.dark-mode .items-panel {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.panel-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .panel-title {
    color: white;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 0.9rem;
}

body.dark-mode .form-group label {
    color: #CBD5E1;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00B4D8;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.full-width {
    grid-column: span 2;
}

.btn-submit {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

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

.items-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .items-title {
    color: white;
}

.items-count {
    background: rgba(0, 180, 216, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #00B4D8;
    font-weight: 600;
}

.items-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.items-table th {
    text-align: left;
    padding: 15px 10px;
    background: #f8f9fa;
    font-weight: 600;
    color: #2C3E50;
    border-bottom: 2px solid #e2e8f0;
}

body.dark-mode .items-table th {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border-bottom-color: #334155;
}

.items-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

body.dark-mode .items-table td {
    border-bottom-color: #334155;
}

.items-table tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

.audio-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.audio-badge.yes,
.audio-badge.has {
    background: rgba(42, 157, 143, 0.15);
    color: #2A9D8F;
}

.audio-badge.no {
    background: rgba(214, 40, 40, 0.15);
    color: #D62828;
}

.action-buttons-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-play {
    background: #2A9D8F;
    color: white;
}

.btn-edit {
    background: #00B4D8;
    color: white;
}

.btn-delete {
    background: #D62828;
    color: white;
}

.btn-icon:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.load-more-btn.hidden {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #95A5A6;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .form-panel,
    .items-panel {
        padding: 20px 16px !important;
    }

    .action-buttons-cell {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .btn-icon {
        min-width: 55px !important;
        width: auto !important;
    }

    .items-table {
        font-size: 0.8rem;
    }

    .items-table th,
    .items-table td {
        padding: 10px 6px;
    }

    .items-table th:nth-child(3),
    .items-table td:nth-child(3),
    .items-table th:nth-child(4),
    .items-table td:nth-child(4),
    .items-table th:nth-child(5),
    .items-table td:nth-child(5),
    .items-table th:nth-child(6),
    .items-table td:nth-child(6) {
        display: none;
    }
}

@media (min-width: 769px) {

    .items-table th:nth-child(3),
    .items-table td:nth-child(3),
    .items-table th:nth-child(4),
    .items-table td:nth-child(4),
    .items-table th:nth-child(5),
    .items-table td:nth-child(5),
    .items-table th:nth-child(6),
    .items-table td:nth-child(6) {
        display: table-cell !important;
    }
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 47px;
    left: 4px;
    z-index: 1001;
    background: white;
    border: none;
    color: #2C3E50;
    padding: 5px 8px 6px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px #00ACD6 solid;
}

body.dark-mode .mobile-menu-btn {
    background: #1E293B;
    color: white;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 24px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border-right-color: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #00B4D8;
    border-radius: 4px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00B4D8 0%, #D62828 50%, #2A9D8F 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .logo {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: gentleWave 3s ease-in-out infinite;
    transform-origin: left center;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes gentleWave {

    0%,
    100% {
        transform: rotate(0deg) skewX(0deg);
    }

    25% {
        transform: rotate(2deg) skewX(1deg);
    }

    50% {
        transform: rotate(-2deg) skewX(-1deg);
    }

    75% {
        transform: rotate(1deg) skewX(0.5deg);
    }
}

.logo-text {
    flex: 1;
    min-width: 0;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .logo-text h1 {
    color: white;
}

.logo-text p {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .logo-text p {
    color: #64748B;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-section {
    margin-top: 20px;
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95A5A6;
    font-weight: 600;
    padding-left: 12px;
    margin-bottom: 10px;
}

body.dark-mode .nav-section-title {
    color: #64748B;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #5A6C7E;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-mode .nav-link {
    color: #94A3B8;
}

.nav-link:hover {
    background: rgba(0, 180, 216, 0.1);
    color: #00B4D8;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(42, 157, 143, 0.1));
    color: #0096C7;
}

body.dark-mode .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(42, 157, 143, 0.15));
    color: #00B4D8;
}

.main-content-wrapper {
    flex: 1;
    margin-left: 280px;
    padding: 24px 28px;
    transition: margin-left 0.3s ease;
}

.main-content {
    padding: 0 !important;
}

.top-nav {
    background: white;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

body.dark-mode .top-nav {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.top-nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.top-nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #5A6C7E;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

body.dark-mode .top-nav-link {
    color: #94A3B8;
}

.top-nav-link:hover {
    background: rgba(0, 180, 216, 0.1);
    color: #00B4D8;
}

.top-nav-link.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.mobile-top-nav-toggle {
    display: none;
}

.mobile-menu-dropdown-btn {
    background: rgba(0, 180, 216, 0.1);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: #2C3E50;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 35px;
}

body.dark-mode .mobile-menu-dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 200;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .mobile-dropdown-menu {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu.show {
    display: block;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2C3E50;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .mobile-dropdown-item {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

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

.mobile-dropdown-item:hover {
    background: rgba(0, 180, 216, 0.08);
}

.mobile-dropdown-item.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(0, 180, 216, 0.08);
    border-radius: 40px;
    transition: all 0.2s;
}

.user-trigger:hover {
    background: rgba(0, 180, 216, 0.15);
}

.user-avatar-small {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    overflow: hidden;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-small {
    text-align: right;
}

.user-name-small {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2C3E50;
}

body.dark-mode .user-name-small {
    color: white;
}

.user-points-small {
    font-size: 0.7rem;
    color: #f59e0b;
}

.dropdown-icon {
    color: #7F8C8D;
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .dropdown-menu {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.05);
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    text-decoration: none;
    color: #2C3E50;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

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

.dropdown-item:hover {
    background: rgba(0, 180, 216, 0.08);
}

.dropdown-item.logout {
    color: #D62828;
}

.dropdown-item.logout:hover {
    background: rgba(214, 40, 40, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: #eef2f6;
    margin: 8px 0;
}

body.dark-mode .dropdown-divider {
    background: #334155;
}

.notification-bell {
    background: rgba(0, 180, 216, 0.1);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
    color: #2C3E50;
}

body.dark-mode .notification-bell {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.notification-bell:hover {
    background: rgba(0, 180, 216, 0.2);
    transform: scale(1.02);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #D62828;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.theme-toggle-nav {
    background: rgba(0, 180, 216, 0.1);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #2C3E50;
}

body.dark-mode .theme-toggle-nav {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.theme-toggle-nav:hover {
    background: rgba(0, 180, 216, 0.2);
    transform: scale(1.02);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login-nav {
    background: transparent;
    border: 1.5px solid #00B4D8;
    color: #00B4D8;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-login-nav:hover {
    background: #00B4D8;
    color: white;
}

.btn-register-nav {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00B4D8, #D62828, #2A9D8F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats,
.stats-grid,
.dashboard-stats,
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat,
.stat-card,
.admin-stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .stat,
body.dark-mode .stat-card,
body.dark-mode .admin-stat-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat:hover,
.stat-card:hover,
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat strong,
.stat-number,
.admin-stat-number,
.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00B4D8, #D62828);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    line-height: 1.2;
}

body.dark-mode .stat-number,
body.dark-mode .admin-stat-number,
body.dark-mode .stat-value {
    color: white;
}

.stat span,
.stat-label,
.admin-stat-label {
    color: #7F8C8D;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

body.dark-mode .stat span,
body.dark-mode .stat-label,
body.dark-mode .admin-stat-label {
    color: #94A3B8;
}

.search-bar {
    margin-bottom: 28px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.2s;
    color: #2C3E50;
}

body.dark-mode .search-bar input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-bar input:focus {
    outline: none;
    border-color: #00B4D8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

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

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00B4D8 0%, #D62828 50%, #2A9D8F 100%);
}

body.dark-mode .card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card.mastered {
    border-left: 4px solid #2A9D8F;
    background: linear-gradient(135deg, white, rgba(42, 157, 143, 0.03));
}

body.dark-mode .card.mastered {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(42, 157, 143, 0.1));
}

.large-char {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.large-word {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
    text-align: center;
}

body.dark-mode .large-word {
    color: white;
}

.large-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.pronunciation {
    color: #95A5A6;
    font-style: italic;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.8rem;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 180, 216, 0.2);
}

.translations {
    margin: 12px 0;
    padding: 12px;
    background: #F8F9FA;
    border-radius: 14px;
    flex-grow: 1;
}

body.dark-mode .translations {
    background: rgba(0, 0, 0, 0.2);
}

.translation-row {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #2C3E50;
}

body.dark-mode .translation-row {
    color: #CBD5E1;
}

.translation-row b,
.translation-row strong {
    color: #D62828;
    margin-right: 10px;
    font-weight: 600;
}

body.dark-mode .translation-row b,
body.dark-mode .translation-row strong {
    color: #f87171;
}

.play-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.mastered-btn,
.edit-btn,
.delete-btn {
    margin-top: 10px;
    margin-right: 6px;
    width: calc(33% - 6px);
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {

    .mastered-btn,
    .edit-btn,
    .delete-btn {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
}

.mastered-btn {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
}

.mastered-btn.unset {
    background: #E2E8F0;
    color: #5A6C7E;
}

body.dark-mode .mastered-btn.unset {
    background: #334155;
    color: #94A3B8;
}

.edit-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
}

.card-audio-controls {
    margin-top: 16px;
    padding: 10px;
    background: #F8F9FA;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

body.dark-mode .card-audio-controls {
    background: rgba(0, 0, 0, 0.2);
}

.card-audio-controls select {
    padding: 6px 12px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 30px;
    font-size: 0.7rem;
}

body.dark-mode .card-audio-controls select {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.play-now-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
}

.stop-card-audio {
    padding: 6px 16px;
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
}

.close-audio-controls {
    display: none;
    padding: 6px 12px;
    background: #E2E8F0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
}

body.dark-mode .close-audio-controls {
    display: none;
    background: #334155;
    color: white;
}

.repeat-status {
    font-size: 0.7rem;
    font-weight: 600;
    background: #2A9D8F;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2C3E50;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1002;
    font-size: 0.85rem;
}

.toast.show {
    opacity: 1;
}

.form-row {
    margin-bottom: 18px;
}

.note-card {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #D62828;
}

body.dark-mode .note-card {
    background: rgba(30, 41, 59, 0.6);
}

.note-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C3E50;
}

body.dark-mode .note-title {
    color: white;
}

.note-date {
    font-size: 0.7rem;
    color: #95A5A6;
    margin-top: 8px;
}

.guest-top-nav {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content-wrapper {
        margin-left: 0;
        padding: 30px 16px 20px;
    }

    .top-nav {
        flex-wrap: wrap;
        padding: 12px;
    }

    .mobile-top-nav-toggle {
        display: block;
        flex: 1;
    }

    .top-nav-links {
        display: none !important;
    }

    .top-nav-actions {
        margin-left: auto;
    }

    .user-info-small {
        display: none;
    }

    .user-trigger {
        padding: 6px 10px;
    }

    .stats,
    .stats-grid,
    .dashboard-stats,
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

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

    .grid-2,
    .double-grid,
    .double-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-dropdown-menu {
        display: none !important;
    }

    .mobile-top-nav-toggle {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .stats,
    .stats-grid,
    .dashboard-stats,
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@keyframes pointsPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        color: #FFB703;
    }

    100% {
        transform: scale(1);
    }
}

.points-update {
    animation: pointsPop 0.3s ease-out;
}

.badge-success,
.badge-pass {
    background: #48bb7820;
    color: #48bb78;
}

.badge-warning {
    background: #f59e0b20;
    color: #d97706;
}

.badge-danger,
.badge-fail {
    background: #e53e3e20;
    color: #e53e3e;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.fallback-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1d1d1d 100%);
    z-index: -3;
}

.registration-wrap {
    border-radius: 15px;
    padding: 40px;
}

.error-message,
.alert-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.error-message.show,
.alert-error.show {
    display: block;
}

.success-message,
.alert-success {
    background: #d1fae5;
    color: #059669;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.success-message.show,
.alert-success.show {
    display: block;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.whatsapp-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.whatsapp-link a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link a:hover {
    text-decoration: underline;
}

.back-home-link {
    text-align: center;
    margin-top: 15px;
}

.back-home-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
}

.back-home-link a:hover {
    color: #00B4D8;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .form-card {
    background: rgba(30, 41, 59, 0.8);
}

.btn-save,
.btn-save-all {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #00B4D8;
    color: #00B4D8;
}

.btn-outline:hover {
    background: #00B4D8;
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

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

@media (max-width: 768px) {

    .grid-2,
    .double-grid,
    .double-admin-grid {
        grid-template-columns: 1fr;
    }
}

.manage-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    width: 300px;
}

body.dark-mode .search-box {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.alphabets-grid,
.numbers-grid,
.words-grid,
.phrases-grid,
.assignments-grid,
.tests-grid,
.badges-grid,
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.alphabet-card,
.number-card,
.word-card,
.phrase-card,
.assignment-card,
.test-card,
.badge-card,
.certificate-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #00B4D8;
    transition: all 0.2s;
}

body.dark-mode .alphabet-card,
body.dark-mode .number-card,
body.dark-mode .word-card,
body.dark-mode .phrase-card,
body.dark-mode .assignment-card,
body.dark-mode .test-card,
body.dark-mode .badge-card,
body.dark-mode .certificate-card {
    background: rgba(30, 41, 59, 0.8);
}

.alphabet-card:hover,
.number-card:hover,
.word-card:hover,
.phrase-card:hover,
.assignment-card:hover,
.test-card:hover,
.badge-card:hover,
.certificate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.alphabet-char {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.number-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00B4D8;
}

.word-text,
.phrase-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.alphabet-pronunciation,
.number-pronunciation,
.phrase-pronunciation,
.word-pronunciation {
    font-size: 0.8rem;
    color: #7F8C8D;
    font-family: monospace;
    margin: 5px 0;
}

.alphabet-translations,
.number-translations,
.phrase-translations,
.word-translations {
    margin: 10px 0;
    font-size: 0.8rem;
}

.alphabet-example,
.word-example {
    font-size: 0.75rem;
    color: #7F8C8D;
    margin-top: 8px;
    font-style: italic;
}

.alphabet-actions,
.number-actions,
.phrase-actions,
.word-actions,
.assignment-actions,
.test-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    background: #f8f9fa;
    color: #2C3E50;
    transition: all 0.2s;
}

body.dark-mode .pagination a,
body.dark-mode .pagination span {
    background: #334155;
    color: #e2e8f0;
}

.pagination a:hover {
    background: #00B4D8;
    color: white;
}

.pagination .active {
    background: #00B4D8;
    color: white;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-item {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00B4D8;
    transition: all 0.2s;
}

body.dark-mode .announcement-item {
    background: rgba(15, 23, 42, 0.6);
}

.announcement-item:hover {
    transform: translateX(4px);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.announcement-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(42, 157, 143, 0.15);
    color: #2A9D8F;
}

.badge-expired {
    background: rgba(214, 40, 40, 0.15);
    color: #D62828;
}

.announcement-target {
    font-size: 0.7rem;
    color: #00B4D8;
    margin-bottom: 10px;
}

.announcement-content {
    line-height: 1.6;
    margin: 12px 0;
}

.announcement-meta {
    font-size: 0.7rem;
    color: #95A5A6;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
}

.audio-manager-container {
    max-width: 1400px;
    margin: 0 auto;
}

.content-type-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.type-pill {
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .type-pill {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--gray-700);
    color: var(--gray-300);
}

.type-pill:hover {
    transform: translateY(-2px);
    border-color: #00B4D8;
    color: #00B4D8;
}

.type-pill.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.type-pill-icon {
    font-size: 1.2rem;
}

.audio-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.audio-panel {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode .audio-panel {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.audio-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.panel-subtitle {
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-top: 4px;
}

body.dark-mode .panel-subtitle {
    color: #94A3B8;
}

.searchable-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.dropdown-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

body.dark-mode .dropdown-input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.dropdown-input:focus {
    outline: none;
    border-color: #00B4D8;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-top: 8px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.dark-mode .dropdown-list {
    background: #1E293B;
    border-color: #334155;
}

.dropdown-list.show {
    display: block;
}

.dropdown-search {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: white;
}

body.dark-mode .dropdown-search {
    background: #1E293B;
    border-bottom-color: #334155;
}

.dropdown-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.85rem;
}

body.dark-mode .dropdown-search input {
    background: #0F172A;
    border-color: #334155;
    color: white;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .dropdown-item {
    border-bottom-color: #334155;
}

.dropdown-item:hover {
    background: rgba(0, 180, 216, 0.1);
}

.dropdown-item.selected {
    background: rgba(0, 180, 216, 0.15);
    border-left: 3px solid #00B4D8;
}

.dropdown-item-text {
    font-weight: 500;
}

.dropdown-item-translation {
    font-size: 0.75rem;
    color: #7F8C8D;
}

.waveform-section {
    background: linear-gradient(135deg, #F8F9FA, #F0F2F5);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

body.dark-mode .waveform-section {
    background: rgba(15, 23, 42, 0.6);
}

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

.recording-time-box {
    text-align: center;
}

.recording-time {
    font-size: 2rem;
    font-weight: 800;
    font-family: monospace;
    color: #00B4D8;
}

.recording-label {
    font-size: 0.7rem;
    color: #7F8C8D;
    text-transform: uppercase;
}

.waveform-container {
    background: white;
    border-radius: 60px;
    height: 80px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .waveform-container {
    background: #0F172A;
}

.waveform-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00B4D8, #2A9D8F);
    transition: width 0.05s linear;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.recording-active {
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(214, 40, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 40, 40, 0);
    }
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-audio {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-record {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
}

.audio-library-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 15px;
}

.audio-library-item {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.2s;
}

body.dark-mode .audio-library-item {
    background: rgba(15, 23, 42, 0.6);
}

.audio-library-item:hover {
    transform: translateX(4px);
    background: rgba(0, 180, 216, 0.05);
}

.audio-item-info {
    flex: 1;
}

.audio-item-text {
    font-weight: 700;
    font-size: 1rem;
    color: #2C3E50;
}

body.dark-mode .audio-item-text {
    color: white;
}

.audio-item-translation {
    font-size: 0.8rem;
    color: #7F8C8D;
}

.audio-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.library-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.library-btn-play {
    background: #2A9D8F;
    color: white;
}

.library-btn-record {
    background: #00B4D8;
    color: white;
}

.library-btn-delete {
    background: #D62828;
    color: white;
}

.library-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: all 0.2s;
}

body.dark-mode .search-input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.search-input:focus {
    outline: none;
    border-color: #00B4D8;
}

.empty-library {
    text-align: center;
    padding: 50px;
    color: #95A5A6;
}

.status-text {
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

.status-recording {
    color: #D62828;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 1000px) {
    .audio-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .type-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .audio-panel {
        padding: 18px;
    }

    .recording-time {
        font-size: 1.5rem;
    }

    .btn-audio {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

.class-container {
    max-width: 1400px;
    margin: 0 auto;
}

.batch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.batch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

body.dark-mode .batch-item {
    background: rgba(15, 23, 42, 0.6);
}

.batch-item:hover {
    transform: translateX(4px);
}

.batch-item.selected {
    border-left-color: #00B4D8;
    background: rgba(0, 180, 216, 0.1);
}

.batch-name {
    font-weight: 700;
    font-size: 1rem;
}

.batch-stats {
    font-size: 0.7rem;
    color: #7F8C8D;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .student-item {
    border-bottom-color: #334155;
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.teacher-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card.blue::before,
.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #00B4D8, #0096C7);
}

.stat-card.green::before,
.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #2A9D8F, #248277);
}

.stat-card.orange::before,
.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card.purple::before,
.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
}

.stat-sub {
    font-size: 0.7rem;
    color: #00B4D8;
    margin-top: 5px;
}

.dashboard-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .dashboard-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00B4D8;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .card-title {
    color: white;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.batch-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
    border-left: 4px solid #00B4D8;
}

body.dark-mode .batch-card {
    background: rgba(15, 23, 42, 0.6);
}

.batch-card:hover {
    transform: translateX(4px);
}

.submission-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.dark-mode .submission-item {
    border-bottom-color: #334155;
}

.submission-info {
    flex: 1;
}

.submission-student {
    font-weight: 600;
    font-size: 0.9rem;
}

.submission-test {
    font-size: 0.75rem;
    color: #00B4D8;
}

.submission-date {
    font-size: 0.65rem;
    color: #95A5A6;
}

.btn-grade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-view {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.edit-container {
    max-width: 1200px;
    margin: 0 auto;
}

.questions-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .questions-card {
    background: rgba(30, 41, 59, 0.8);
}

.question-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #2A9D8F;
}

body.dark-mode .question-item {
    background: rgba(15, 23, 42, 0.6);
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.question-meta {
    font-size: 0.75rem;
    color: #7F8C8D;
    margin-bottom: 10px;
}

.question-answer {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 8px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 8px;
}

.btn-add {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
}

.grade-container {
    max-width: 1200px;
    margin: 0 auto;
}

.submissions-list,
.grading-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .submissions-list,
body.dark-mode .grading-panel {
    background: rgba(30, 41, 59, 0.8);
}

.attempt-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.question-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00B4D8;
}

body.dark-mode .question-card {
    background: rgba(15, 23, 42, 0.6);
}

.student-answer {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
}

.correct-answer {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
}

.marks-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.feedback-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 10px;
    resize: vertical;
}

.progress-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filters-bar {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

body.dark-mode .filters-bar {
    background: rgba(30, 41, 59, 0.8);
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #7F8C8D;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

body.dark-mode .filter-group select,
body.dark-mode .filter-group input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.btn-filter {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

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

.student-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

body.dark-mode .student-card {
    background: rgba(30, 41, 59, 0.8);
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.student-card.selected {
    border: 2px solid #00B4D8;
    background: rgba(0, 180, 216, 0.05);
}

.student-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.student-email {
    font-size: 0.75rem;
    color: #7F8C8D;
    margin-bottom: 12px;
}

.student-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .student-stats {
    border-top-color: #334155;
}

.stat-badge {
    background: rgba(0, 180, 216, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.detail-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-top: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .detail-panel {
    background: rgba(30, 41, 59, 0.8);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.detail-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 16px;
}

body.dark-mode .detail-stat {
    background: rgba(15, 23, 42, 0.6);
}

.detail-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00B4D8;
}

.detail-stat-label {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-top: 5px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f6;
}

.activity-item,
.mastered-item {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.dark-mode .activity-item,
body.dark-mode .mastered-item {
    border-bottom-color: #334155;
}

.score-pass {
    color: #2A9D8F;
    font-weight: 700;
}

.score-fail {
    color: #D62828;
    font-weight: 700;
}

.messages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.messages-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.messages-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.folder-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.folder-tab {
    background: #f8f9fa;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #2C3E50;
}

body.dark-mode .folder-tab {
    background: #334155;
    color: #e2e8f0;
}

.folder-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.messages-list {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-height: 600px;
    overflow-y: auto;
}

body.dark-mode .messages-list {
    background: rgba(30, 41, 59, 0.8);
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #eef2f6;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

body.dark-mode .message-item {
    border-bottom-color: #334155;
}

.message-item:hover {
    background: rgba(0, 180, 216, 0.05);
}

.message-item.unread {
    background: rgba(0, 180, 216, 0.08);
    font-weight: 600;
}

.message-item.selected {
    background: rgba(0, 180, 216, 0.15);
    border-left: 3px solid #00B4D8;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 5px;
}

.message-sender {
    font-size: 0.8rem;
    color: #7F8C8D;
}

.message-date {
    font-size: 0.65rem;
    color: #95A5A6;
}

.message-preview {
    font-size: 0.75rem;
    color: #95A5A6;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-view,
.compose-form {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .message-view,
body.dark-mode .compose-form {
    background: rgba(30, 41, 59, 0.8);
}

.message-header {
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

body.dark-mode .message-header {
    border-bottom-color: #334155;
}

.message-subject-large {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.message-meta {
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-bottom: 5px;
}

.message-body {
    line-height: 1.6;
    margin: 20px 0;
    white-space: pre-wrap;
}

.reply-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .reply-form {
    border-top-color: #334155;
}

.btn-reply {
    background: linear-gradient(135deg, #2A9D8F, #248277);
}

.notes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.notes-form-panel,
.notes-list-panel {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-mode .notes-form-panel,
body.dark-mode .notes-list-panel {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.notes-list-panel {
    max-height: 70vh;
    overflow-y: auto;
}

.notifications-container {
    max-width: 900px;
    margin: 0 auto;
}

.notifications-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.notifications-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.filter-bar {
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .filter-bar {
    background: rgba(30, 41, 59, 0.8);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #2C3E50;
}

body.dark-mode .filter-btn {
    background: #334155;
    color: #e2e8f0;
}

.filter-btn.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.mark-all-btn {
    background: #2A9D8F;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.notifications-list {
    background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .notifications-list {
    background: rgba(30, 41, 59, 0.8);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.2s;
    position: relative;
}

body.dark-mode .notification-item {
    border-bottom-color: #334155;
}

.notification-item:hover {
    background: rgba(0, 180, 216, 0.03);
}

.notification-item.unread {
    background: rgba(0, 180, 216, 0.05);
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

body.dark-mode .notification-icon {
    background: #1E293B;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.85rem;
    color: #7F8C8D;
    margin-bottom: 6px;
    line-height: 1.4;
}

body.dark-mode .notification-message {
    color: #94A3B8;
}

.notification-time {
    font-size: 0.7rem;
    color: #95A5A6;
}

.notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.notification-actions a {
    font-size: 0.7rem;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.mark-read-link {
    color: #00B4D8;
}

.mark-read-link:hover {
    background: rgba(0, 180, 216, 0.1);
}

.delete-link {
    color: #D62828;
}

.delete-link:hover {
    background: rgba(214, 40, 40, 0.1);
}

.view-link {
    display: inline-block;
    margin-top: 8px;
    color: #00B4D8;
    font-size: 0.75rem;
    text-decoration: none;
}

.view-link:hover {
    text-decoration: underline;
}

.category-selector {
    margin-bottom: 24px;
}

.category-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23334155" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
}

body.dark-mode .category-dropdown {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
}

.category-dropdown:focus {
    outline: none;
    border-color: #00B4D8;
}

.practice-container {
    max-width: 900px;
    margin: 0 auto;
}

.practice-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 60px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

body.dark-mode .practice-stats-bar {
    background: rgba(30, 41, 59, 0.9);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2C3E50;
    line-height: 1;
}

body.dark-mode .stat-value {
    color: white;
}

.practice-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

body.dark-mode .practice-card {
    background: rgba(30, 41, 59, 0.9);
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00B4D8, #D62828, #2A9D8F);
}

.practice-word {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00B4D8, #D62828, #f59e0b, #2A9D8F, #00B4D8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    word-break: break-word;
    animation: gradientFlow 5s ease infinite;
    transition: transform 0.3s ease;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 50%;
        letter-spacing: 1px;
    }

    75% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 0% 50%;
        letter-spacing: normal;
    }
}

.practice-pronunciation {
    font-size: 1.1rem;
    color: #95A5A6;
    font-style: italic;
    font-family: monospace;
    margin-bottom: 20px;
    display: none;
}

.practice-pronunciation.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.audio-control-bar {
    background: #F8F9FA;
    border-radius: 60px;
    padding: 10px 20px;
    display: inline-flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

body.dark-mode .audio-control-bar {
    background: #1e293b;
}

.audio-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.audio-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.audio-btn.playing {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    animation: pulse 1.5s infinite;
}

.speed-select,
.repeat-select {
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
}

body.dark-mode .speed-select,
body.dark-mode .repeat-select {
    background: #334155;
    border-color: #475569;
    color: white;
}

.answer-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 24px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    display: none;
    animation: slideUp 0.4s ease;
}

body.dark-mode .answer-section {
    background: linear-gradient(135deg, #1a3a2a, #0f2a1f);
}

.answer-section.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

body.dark-mode .answer-row {
    background: rgba(0, 0, 0, 0.2);
}

.answer-icon {
    width: 40px;
    height: 40px;
    background: #2A9D8F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.answer-content {
    flex: 1;
}

.answer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #2A9D8F;
    font-weight: 600;
    margin-bottom: 4px;
}

.answer-text {
    font-size: 1rem;
    color: #2C3E50;
    word-break: break-word;
}

body.dark-mode .answer-text {
    color: #e2e8f0;
}

.reveal-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.next-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.profile-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar .no-image {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.avatar-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #00B4D8;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.2s;
    z-index: 10;
}

.avatar-upload:hover {
    background: #0096C7;
    transform: scale(1.05);
}

.avatar-upload i {
    color: white;
    font-size: 0.9rem;
}

.avatar-upload input {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-username {
    opacity: 0.9;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
}

.cropper-modal {
    display: none;
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 100 !important;
}

.cropper-bg {
    background: #fff !important;
}

.cropper-modal>div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
}

.cropper-container-custom img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
}

.cropper-modal.show {
    display: flex;
}

.cropper-container-custom {
    background: #1a1a1a;
    max-width: 90vw;
    max-height: 70vh;
    margin: 0 auto;
}

.cropper-preview {
    width: 100%;
    height: auto;
    max-height: 60vh;
}

.cropper-controls {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

body.dark-mode .cropper-controls {
    background: #1E293B;
}

.cropper-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.cropper-btn-primary {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.cropper-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.cropper-btn-secondary {
    background: #6c757d;
    color: white;
}

.cropper-btn-secondary:hover {
    background: #5a6268;
}

.action-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-link {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #2C3E50;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

body.dark-mode .action-link {
    background: #334155;
    color: #e2e8f0;
}

.action-link:hover {
    background: #00B4D8;
    color: white;
}

.study-plan-container {
    max-width: 1200px;
    margin: 0 auto;
}

.plan-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.plan-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.progress-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .progress-card {
    background: rgba(30, 41, 59, 0.8);
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 30px;
    height: 12px;
    overflow: hidden;
    margin: 15px 0;
}

body.dark-mode .progress-bar {
    background: #334155;
}

.progress-fill {
    background: linear-gradient(90deg, #00B4D8, #2A9D8F);
    height: 100%;
    border-radius: 30px;
    transition: width 0.5s ease;
}

.category-progress {
    margin: 15px 0;
}

.category-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.plan-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .plan-card {
    background: rgba(30, 41, 59, 0.8);
}

.weak-item,
.rec-item {
    padding: 12px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.dark-mode .weak-item,
body.dark-mode .rec-item {
    border-bottom-color: #334155;
}

.weak-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.weak-badge {
    background: rgba(214, 40, 40, 0.15);
    color: #D62828;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-practice {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    text-decoration: none;
}

.daily-tip {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

body.dark-mode .daily-tip {
    background: rgba(245, 158, 11, 0.1);
}

.question-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-number {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.option-item {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    background: #e9ecef;
}

.option-item.selected {
    background: #667eea20;
    border-left: 3px solid #667eea;
}

.option-radio {
    margin-right: 10px;
}

.timer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.timer-display {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: monospace;
}

.timer-green {
    color: #48bb78;
}

.timer-orange {
    color: #f59e0b;
}

.timer-red {
    color: #e53e3e;
    animation: pulseRed 1s infinite;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.nav-btn.answered {
    background: #48bb78;
    color: white;
}

.nav-btn.current {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 28px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

body.dark-mode .modal-content {
    background: #1E293B;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
}

.auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.auto-save-indicator.show {
    opacity: 1;
}

.instruction-container {
    max-width: 800px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.instruction-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}

.instruction-list {
    list-style: none;
    padding: 0;
}

.instruction-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 15px;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.agree-checkbox {
    margin-right: 10px;
}

.btn-start {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.pending-message {
    background: #fef3c7;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
}

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

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

.question-review.correct {
    border-left-color: #48bb78;
}

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

.question-review.pending {
    border-left-color: #f59e0b;
}

.answer-compare {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.user-answer {
    color: #e53e3e;
}

.feedback-box {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.feedback-label {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.settings-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.settings-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .settings-card {
    background: rgba(30, 41, 59, 0.8);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .setting-item {
    border-bottom-color: #334155;
}

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

.setting-info {
    flex: 1;
}

.setting-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 0.75rem;
    color: #7F8C8D;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00B4D8;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.deletion-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

body.dark-mode .deletion-warning {
    background: rgba(245, 158, 11, 0.1);
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.achievements-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.achievements-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.badge-card.earned {
    border: 2px solid #2A9D8F;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), rgba(0, 180, 216, 0.03));
}

.badge-card.locked {
    opacity: 0.7;
}

.badge-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: white;
}

.badge-card.earned .badge-icon {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.badge-card.locked .badge-icon {
    background: #94A3B8;
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.badge-description {
    font-size: 0.8rem;
    color: #7F8C8D;
    text-align: center;
    margin-bottom: 12px;
}

.badge-points {
    font-size: 0.7rem;
    color: #FFB703;
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.badge-progress-bar {
    background: #e2e8f0;
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}

body.dark-mode .badge-progress-bar {
    background: #334155;
}

.badge-progress-fill {
    background: #f59e0b;
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s;
}

.badge-progress-text {
    font-size: 0.65rem;
    color: #95A5A6;
    text-align: center;
    margin-top: 5px;
}

.earned-date {
    font-size: 0.65rem;
    color: #2A9D8F;
    text-align: center;
    margin-top: 8px;
}

.locked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.category-tab {
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s;
    color: #334155;
    white-space: nowrap;
}

body.dark-mode .category-tab {
    background: #334155;
    color: #cbd5e1;
}

.category-tab:hover {
    background: #e2e8f0;
}

body.dark-mode .category-tab:hover {
    background: #475569;
}

.category-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.category-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 0.65rem;
    margin-left: 6px;
}

.category-tab.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 20px;
    text-decoration: none;
}

body.dark-mode .back-btn {
    background: #334155;
    color: #cbd5e1;
}

.back-btn:hover {
    background: #e2e8f0;
}

body.dark-mode .back-btn:hover {
    background: #475569;
}

.category-header {
    margin-bottom: 24px;
}

.category-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.word-count {
    color: #95A5A6;
    margin-left: 10px;
    font-size: 0.9rem;
}

.certificate-container {
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.certificate-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.current-level-card {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(42, 157, 143, 0.05));
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.current-level-badge {
    font-size: 4rem;
    margin-bottom: 10px;
}

.current-level-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.current-level-progress {
    max-width: 400px;
    margin: 20px auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.certificate-card.earned {
    border: 2px solid #2A9D8F;
}

.certificate-card.locked {
    opacity: 0.6;
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.certificate-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.certificate-requirement {
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-bottom: 15px;
}

.certificate-date {
    font-size: 0.7rem;
    color: #2A9D8F;
    margin-bottom: 15px;
}

.btn-download {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}

.btn-download.disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

.next-level-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .next-level-card {
    background: rgba(30, 41, 59, 0.8);
}

.challenge-container {
    max-width: 800px;
    margin: 0 auto;
}

.challenge-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.challenge-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.challenge-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

body.dark-mode .challenge-card {
    background: rgba(30, 41, 59, 0.8);
}

.challenge-question {
    font-size: 1.3rem;
    margin: 20px 0;
    line-height: 1.5;
}

.challenge-points {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.challenge-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    margin: 20px 0;
}

body.dark-mode .challenge-input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.challenge-input:focus {
    outline: none;
    border-color: #00B4D8;
}

.completed-card {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(0, 180, 216, 0.05));
    border: 2px solid #2A9D8F;
}

.completed-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.history-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .history-card {
    background: rgba(30, 41, 59, 0.8);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .history-item {
    border-bottom-color: #334155;
}

.history-date {
    font-size: 0.85rem;
    font-weight: 600;
}

.history-status {
    font-size: 0.8rem;
}

.status-correct {
    color: #2A9D8F;
}

.status-incorrect {
    color: #D62828;
}

.reminder-container {
    max-width: 600px;
    margin: 0 auto;
}

.reminder-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.reminder-option {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
}

.reminder-option input {
    width: auto;
    margin-right: 15px;
}

.settings-saved {
    display: none;
    background: #48bb78;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

body.dark-mode {
    --gray-100: #0f172a;
    --gray-200: #1e293b;
    --gray-300: #334155;
    --gray-400: #475569;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
}

.flashcard-app {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-screen {
    position: relative;
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-blue-dark) 25%, var(--az-red) 50%, var(--az-red-dark) 75%, var(--az-green) 100%);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    overflow: hidden;
    animation: fadeInScale 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.welcome-screen::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: floatCard 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.welcome-screen h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.welcome-screen p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.get-started-btn {
    background: white;
    color: var(--az-blue);
    border: none;
    padding: 14px 42px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.get-started-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

body.dark-mode .loading-screen {
    background: var(--gray-800);
}

.loading-content {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader::before {
    background: var(--az-blue);
    animation-delay: 0s;
}

.loader::after {
    background: var(--az-red);
    animation-delay: 0.5s;
    transform: scale(0.6);
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.loading-screen p {
    margin-top: 20px;
    color: var(--gray-600);
    font-size: 1rem;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-red) 50%, var(--az-green) 100%);
    padding: 16px 24px;
    border-radius: 60px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

body.dark-mode .pill {
    background: var(--gray-800);
    color: var(--gray-300);
}

.pill:hover {
    transform: translateY(-2px);
    border-color: var(--az-blue);
}

.pill.active {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.flashcard-container {
    perspective: 1500px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.flashcard {
    width: var(--card-width);
    min-height: 420px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    box-sizing: border-box;
}

.flashcard-front {
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-red) 50%, var(--az-green) 100%);
    background-size: 200% 200%;
    color: white;
    transform: rotateY(0deg);
    animation: waveGradient 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.flashcard-back {
    background: white;
    color: var(--gray-800);
    transform: rotateY(180deg);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

body.dark-mode .flashcard-back {
    background: var(--gray-800);
    color: white;
    border-color: var(--gray-700);
}

.flashcard-front .card-word {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    word-break: break-word;
    line-height: 1.3;
    width: 100%;
}

.flashcard-front .card-pronunciation {
    font-size: 0.9rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 20px;
}

.flashcard-front .card-hint {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 20px;
}

.flashcard-back .card-word {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.3;
    margin-top: 0;
    width: 100%;
}

.flashcard-back .card-pronunciation {
    font-size: 0.85rem;
    font-family: monospace;
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gray-600);
}

body.dark-mode .flashcard-back .card-pronunciation {
    background: var(--gray-700);
    color: var(--gray-300);
}

.card-translation-en {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--az-green);
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.card-translation-ur {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--az-red);
    font-weight: 600;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
    text-align: left;
    width: 100%;
}

.card-example {
    font-size: 0.85rem;
    margin: 12px 0;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: 16px;
    font-style: italic;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
}

body.dark-mode .card-example {
    background: var(--gray-700);
}

.rating-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rating-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.85rem;
}

.rating-btn.easy {
    background: linear-gradient(135deg, var(--az-green), var(--az-green-dark));
    color: white;
}

.rating-btn.medium {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
}

.rating-btn.hard {
    background: linear-gradient(135deg, var(--az-red), var(--az-red-dark));
    color: white;
}

.rating-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.prev {
    background: var(--gray-200);
    color: var(--gray-700);
}

.action-btn.next {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.action-btn.speak {
    background: linear-gradient(135deg, var(--az-green), var(--az-green-dark));
    color: white;
}

.action-btn.reset {
    background: linear-gradient(135deg, var(--az-red), var(--az-red-dark));
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-counter {
    background: linear-gradient(135deg, var(--az-gold), #e6a800);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card-counter {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--gray-900);
}

.progress-bar-container {
    background: var(--gray-200);
    border-radius: 30px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

body.dark-mode .progress-bar-container {
    background: var(--gray-700);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--az-blue), var(--az-red), var(--az-green));
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 30px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerProgress 2s infinite;
}

@keyframes shimmerProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--az-blue);
}

.flashcard.slide-out-left {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-out-right {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-in-left {
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) rotateY(-15deg);
        opacity: 0;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%) rotateY(15deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotateY(15deg);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%) rotateY(-15deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@media (max-width: 550px) {
    :root {
        --card-width: 340px;
    }

    .flashcard {
        min-height: 400px;
    }

    .flashcard-front .card-word {
        font-size: 1.5rem;
    }

    .flashcard-back .card-word {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .stats-bar {
        padding: 12px 16px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .welcome-screen {
        padding: 40px 24px;
    }

    .welcome-screen h2 {
        font-size: 1.6rem;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 20px;
    }
}

.report-container {
    max-width: 1000px;
    margin: 0 auto;
}

.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.report-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
}

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

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

.review-table th {
    background: #f8f9fa;
    color: #667eea;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.badge-easy {
    background: #48bb7820;
    color: #48bb78;
}

.badge-medium {
    background: #f59e0b20;
    color: #d97706;
}

.badge-hard {
    background: #e53e3e20;
    color: #e53e3e;
}

.btn-print {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.grammar-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.grammar-sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}

.grammar-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    min-width: 300px;
}

.grammar-sidebar h3 {
    color: #4361ee;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.grammar-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grammar-sidebar li {
    padding: 8px 12px;
    margin-bottom: 3px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
}

.grammar-sidebar li:hover {
    background: #e0e0e0;
}

.grammar-sidebar li.active {
    background: #4361ee;
    color: white;
}

.grammar-category-header {
    font-weight: bold;
    color: #4361ee;
    margin-top: 12px;
    margin-bottom: 5px;
    padding-left: 5px;
    font-size: 12px;
    letter-spacing: 1px;
}

.grammar-title {
    font-weight: bold;
    color: #4361ee;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.font-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.font-btn {
    background: #4361ee;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.font-btn:hover {
    background: #3a56d4;
}

.rule-box {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border-left: 4px solid #4caf50;
}

.urdu-box {
    background: #fff3e0;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 4px solid #ff9800;
    line-height: 1.6;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
}

.example-card {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
}

.az-word {
    font-weight: bold;
    color: #4361ee;
}

.en-word {
    color: #4caf50;
}

.ur-word {
    color: #ff9800;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
}

.breakdown {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
}

.tip {
    background: #e8eaf6;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 4px solid #3f51b5;
}

.exercise {
    background: #fce4ec;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.exercise-question {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.answer-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 12px;
}

.answer {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: #c8e6c9;
    border-radius: 6px;
}

.grammar-sidebar .search-box {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
}

.content-text,
.content-text * {
    transition: font-size 0.2s ease;
}

.content-text,
.content-text p,
.content-text div,
.content-text li,
.content-text span,
.content-text strong,
.content-text em {
    font-size: inherit;
}

@media (max-width: 768px) {
    .grammar-sidebar {
        width: 100%;
        position: static;
        max-height: 300px;
    }
}

.welcome-section {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.welcome-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}

body.dark-mode .feature-card {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

body.dark-mode .feature-desc {
    color: #94a3b8;
}

.feature-count {
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f00;
    display: inline-block;
}

body.dark-mode .feature-count {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
}

.progress-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f00;
    display: inline-block;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    text-align: center;
}

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

.progress-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.progress-stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.streak-badge {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50px;
    padding: 8px 16px;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 0.85rem;
}

.recent-words-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

body.dark-mode .recent-words-card {
    background: rgba(30, 41, 59, 0.9);
}

.grammar-tip-card {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 20px;
    padding: 24px;
    color: white;
    height: 100%;
}

.word-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .word-item {
    border-bottom-color: #334155;
}

.word-text {
    font-weight: 600;
}

.word-translation {
    font-size: 0.8rem;
    color: #666;
}

.listen-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.listen-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 1.3rem;
    }

    .progress-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
}

.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.leaderboard-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.leaderboard-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.leaderboard-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .leaderboard-card {
    background: rgba(30, 41, 59, 0.8);
}

.your-rank {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(42, 157, 143, 0.05));
    border-left: 4px solid #00B4D8;
    margin-bottom: 25px;
}

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

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .leaderboard-table th,
body.dark-mode .leaderboard-table td {
    border-bottom-color: #334155;
}

.leaderboard-table th {
    font-weight: 600;
    color: #00B4D8;
    background: #f8f9fa;
}

body.dark-mode .leaderboard-table th {
    background: rgba(15, 23, 42, 0.6);
}

.leaderboard-table tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

.rank-cell {
    font-weight: 700;
    width: 60px;
}

.rank-1 {
    color: #FFD700;
    font-size: 1.2rem;
}

.rank-2 {
    color: #C0C0C0;
    font-size: 1.1rem;
}

.rank-3 {
    color: #CD7F32;
    font-size: 1rem;
}

.user-cell {
    font-weight: 600;
}

.points-cell {
    font-weight: 700;
    color: #FFB703;
    text-align: right;
}

.badge-count {
    background: rgba(42, 157, 143, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2A9D8F;
}

.current-user-row {
    background: rgba(0, 180, 216, 0.08);
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.podium-card {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    width: 180px;
}

.podium-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    transform: scale(1.05);
}

.podium-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: white;
}

.podium-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: white;
}

.podium-rank {
    font-size: 2rem;
    font-weight: 800;
}

.podium-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 10px 0;
}

.podium-points {
    font-size: 1.2rem;
    font-weight: 700;
}

.permissions-container {
    max-width: 1400px;
    margin: 0 auto;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-mode .module-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00B4D8;
    flex-wrap: wrap;
    gap: 10px;
}

.module-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.module-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.check-all-btn {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid #00B4D8;
    color: #00B4D8;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.check-all-btn:hover {
    background: #00B4D8;
    color: white;
}

.permission-group {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eef2f6;
    padding-bottom: 10px;
}

body.dark-mode .permission-group {
    border-bottom-color: #334155;
}

.group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2A9D8F;
    margin-bottom: 8px;
    padding-left: 5px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.permission-checkbox:hover {
    background: rgba(0, 180, 216, 0.08);
}

.permission-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00B4D8;
}

.permission-checkbox label {
    flex: 1;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.permission-key {
    font-size: 0.6rem;
    color: #7F8C8D;
    font-family: monospace;
}

.filter-bar {
    background: white;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stats-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 16px 24px;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

body.dark-mode .stat-badge {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-badge .number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-badge .label {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-top: 5px;
}

.question-bank-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #00B4D8;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
}

body.dark-mode .question-bank-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
}

.question-bank-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.success-rate {
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
}

.success-rate.high {
    color: #2A9D8F;
}

.success-rate.medium {
    color: #f59e0b;
}

.success-rate.low {
    color: #D62828;
}

.used-in {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-top: 8px;
}

body.dark-mode .used-in {
    color: #94A3B8;
}

.batch-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.flex-start {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.generator-option {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #eef2f6;
    cursor: pointer;
    transition: all 0.3s;
}

.generator-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.generator-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.preview-question {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.question-preview-list {
    max-height: 400px;
    overflow-y: auto;
}

.roles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.role-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

body.dark-mode .role-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00B4D8;
}

.role-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-active {
    background: #2A9D8F;
    color: white;
}

.badge-inactive {
    background: #D62828;
    color: white;
}

.role-slug {
    font-size: 0.8rem;
    color: #7F8C8D;
    font-family: monospace;
    margin-bottom: 10px;
}

.role-description {
    font-size: 0.85rem;
    color: #2C3E50;
    margin: 12px 0;
    line-height: 1.5;
}

body.dark-mode .role-description {
    color: #CBD5E1;
}

.role-stats {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

body.dark-mode .role-stats {
    background: rgba(15, 23, 42, 0.6);
}

.role-stat {
    text-align: center;
    flex: 1;
}

.role-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #00B4D8;
}

.role-stat-label {
    font-size: 0.65rem;
    color: #7F8C8D;
}

.role-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.student-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.attempt-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.backup-container {
    max-width: 1000px;
    margin: 0 auto;
}

.backup-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .backup-card {
    background: rgba(30, 41, 59, 0.8);
}

.backup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.backup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.btn-create {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
}

.backup-list {
    margin-top: 20px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .backup-item {
    border-bottom-color: #334155;
}

.backup-name {
    font-family: monospace;
    font-size: 0.85rem;
}

.backup-size {
    font-size: 0.7rem;
    color: #7F8C8D;
}

.logs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.logs-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .logs-card {
    background: rgba(30, 41, 59, 0.8);
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.logs-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logs-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.logs-content {
    background: #1a1a2e;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 20px;
    border-radius: 16px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line {
    padding: 4px 0;
    border-bottom: 1px solid #334155;
    font-family: monospace;
}

.log-error {
    color: #ff6b6b;
}

.log-warning {
    color: #ffd93d;
}

.log-info {
    color: #6bcb77;
}

.btn-clear {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-refresh {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.settings-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.settings-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.settings-tab:hover:not(.active) {
    background: rgba(0, 180, 216, 0.1);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

.logo-preview,
.favicon-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

body.dark-mode .logo-preview,
body.dark-mode .favicon-preview {
    background: #1E293B;
}

.logo-preview img {
    max-width: 200px;
    max-height: 80px;
}

.favicon-preview img {
    width: 32px;
    height: 32px;
}

.stat-card.red::before {
    background: linear-gradient(90deg, #D62828, #C1121F);
}

.warning-card {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border-left: 4px solid #f59e0b;
}

body.dark-mode .warning-card {
    background: rgba(245, 158, 11, 0.15);
}

.danger-card {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border-left: 4px solid #D62828;
}

body.dark-mode .danger-card {
    background: rgba(214, 40, 40, 0.15);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: rgba(0, 180, 216, 0.1);
}

.admin-stat-sub {
    font-size: 0.7rem;
    color: #95A5A6;
    margin-top: 4px;
}

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

.content-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-mode .content-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.content-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.content-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2C3E50;
}

body.dark-mode .content-title {
    color: white;
}

.content-count {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 8px 0;
    color: #2C3E50;
}

body.dark-mode .content-count {
    color: white;
}

.content-audio {
    font-size: 0.7rem;
    color: #00B4D8;
}

.admin-list-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .admin-list-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.admin-list-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00B4D8;
    display: inline-block;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .admin-list-item {
    border-bottom-color: #334155;
}

.admin-list-name {
    font-weight: 500;
}

.admin-list-date {
    font-size: 0.7rem;
    color: #95A5A6;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(42, 157, 143, 0.05));
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #2C3E50;
}

body.dark-mode .quick-action {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(0, 180, 216, 0.15);
    color: #e2e8f0;
}

.quick-action:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.quick-action-icon {
    font-size: 1.5rem;
}

.quick-action-text {
    font-weight: 600;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {

    .stats,
    .stats-grid,
    .dashboard-stats,
    .admin-stats-grid,
    .content-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    .stats,
    .stats-grid,
    .dashboard-stats,
    .admin-stats-grid,
    .content-cards-grid,
    .grid-2,
    .double-grid,
    .double-admin-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .permissions-grid,
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .stats-summary {
        justify-content: center;
    }

    .podium-card {
        width: 100px;
        padding: 10px;
    }

    .podium-rank {
        font-size: 1.2rem;
    }

    .podium-points {
        font-size: 0.9rem;
    }
}

.grammar-category-header {
    font-weight: bold;
    color: #4361ee;
    margin-top: 12px;
    margin-bottom: 5px;
    padding-left: 5px;
    font-size: 12px;
    letter-spacing: 1px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 20px;
    text-decoration: none;
}

body.dark-mode .back-btn {
    background: #334155;
    color: #cbd5e1;
}

.back-btn:hover {
    background: #e2e8f0;
}

body.dark-mode .back-btn:hover {
    background: #475569;
}

.category-header {
    margin-bottom: 24px;
}

.category-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.word-count {
    color: #95A5A6;
    margin-left: 10px;
    font-size: 0.9rem;
}

.play-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.play-audio-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 10px;
    margin-top: 5px;
}

.play-audio-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.play-audio-btn.hidden {
    display: none;
}

.card-audio-controls {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 50px;
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

body.dark-mode .card-audio-controls {
    background: #334155;
}

.card-audio-controls.visible {
    display: flex;
}

.card-audio-controls select {
    padding: 3px 5px;
    border-radius: 15px;
    font-size: 0.7rem;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
}

body.dark-mode .card-audio-controls select {
    background: #1E293B;
    border-color: #475569;
    color: white;
}

.card-audio-controls button {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.play-now-btn {
    background: #48bb78;
    color: white;
}

.play-now-btn.playing {
    background: #f59e0b;
    animation: pulse 1.5s infinite;
}

.stop-card-audio {
    background: #ef4444;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

@media (max-width: 768px) {
    .play-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        top: 12px;
        right: 12px;
    }

    .play-audio-btn {
        padding: 10px;
        font-size: 0.8rem;
    }

    .card-audio-controls {
        border-radius: 20px;
        padding: 8px;
    }

    .card-audio-controls select,
    .card-audio-controls button {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
}

.card {
    position: relative;
    overflow: hidden;
}

.play-btn,
.play-audio-btn,
.card-audio-controls button,
.library-btn {
    cursor: pointer;
}

.permissions-container {
    max-width: 1400px;
    margin: 0 auto;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-mode .module-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00B4D8;
    flex-wrap: wrap;
    gap: 10px;
}

.module-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.module-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.check-all-btn {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid #00B4D8;
    color: #00B4D8;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.check-all-btn:hover {
    background: #00B4D8;
    color: white;
}

.permission-group {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eef2f6;
    padding-bottom: 10px;
}

body.dark-mode .permission-group {
    border-bottom-color: #334155;
}

.group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2A9D8F;
    margin-bottom: 8px;
    padding-left: 5px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.permission-checkbox:hover {
    background: rgba(0, 180, 216, 0.08);
}

.permission-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00B4D8;
}

.permission-checkbox label {
    flex: 1;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.permission-key {
    font-size: 0.6rem;
    color: #7F8C8D;
    font-family: monospace;
}

.permission-info {
    flex: 1;
}

.permission-desc {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-top: 2px;
}

body.dark-mode .permission-desc {
    color: #94A3B8;
}

.permission-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    background: rgba(42, 157, 143, 0.15);
    color: #2A9D8F;
}

.permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
}

body.dark-mode .permission-item {
    background: rgba(15, 23, 42, 0.6);
}

.permission-item:hover {
    background: rgba(0, 180, 216, 0.1);
}

.assign-container {
    max-width: 1600px;
    margin: 0 auto;
}

.role-selector {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

body.dark-mode .role-selector {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.role-selector label {
    font-weight: 600;
    font-size: 0.9rem;
}

.role-selector select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    min-width: 250px;
    background: white;
}

body.dark-mode .role-selector select {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.role-info {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(42, 157, 143, 0.05));
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #00B4D8;
}

body.dark-mode .role-info {
    background: rgba(0, 180, 216, 0.1);
}

.role-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.role-slug {
    font-size: 0.8rem;
    color: #7F8C8D;
    font-family: monospace;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .action-buttons {
    border-top-color: #334155;
}

.main-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: white;
    padding: 8px;
    border-radius: 60px;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .main-tabs {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.tab-btn {
    padding: 12px 28px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #5A6C7E;
}

body.dark-mode .tab-btn {
    color: #94A3B8;
}

.tab-btn.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 180, 216, 0.1);
    color: #00B4D8;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.type-option {
    padding: 15px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-mode .type-option {
    background: rgba(15, 23, 42, 0.6);
}

.type-option.selected {
    border-color: #00B4D8;
    background: rgba(0, 180, 216, 0.1);
}

.type-option:hover:not(.selected) {
    border-color: rgba(0, 180, 216, 0.3);
}

.question-builder {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
}

body.dark-mode .question-builder {
    background: rgba(15, 23, 42, 0.6);
}

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

.option-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

.remove-option {
    background: #D62828;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.add-option-btn {
    background: #2A9D8F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 0.85rem;
}

body.dark-mode .filter-input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.item-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #00B4D8;
    transition: all 0.2s;
}

body.dark-mode .item-card {
    background: rgba(15, 23, 42, 0.6);
}

.item-card:hover {
    transform: translateX(4px);
}

.badge-info {
    background: rgba(0, 180, 216, 0.15);
    color: #00B4D8;
}

.user-roles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.btn-filter {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.users-table-container {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

body.dark-mode .users-table-container {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.role-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.8rem;
    width: 100%;
    max-width: 140px;
}

body.dark-mode .role-select {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.btn-update {
    background: #2A9D8F;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-update:hover {
    transform: scale(1.02);
    background: #248277;
}

.btn-save-all {
    background: #00B4D8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-save-all:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.badge-super_admin {
    background: linear-gradient(135deg, #8B0000, #D62828);
    color: white;
}

.badge-admin {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
}

.badge-teacher {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.badge-student {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
}

.badge-self_learner {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
}

.badge-unassigned {
    background: #95A5A6;
    color: white;
}

.roles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.role-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

body.dark-mode .role-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00B4D8;
}

.role-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-active {
    background: #2A9D8F;
    color: white;
}

.badge-inactive {
    background: #D62828;
    color: white;
}

.role-slug {
    font-size: 0.8rem;
    color: #7F8C8D;
    font-family: monospace;
    margin-bottom: 10px;
}

.role-description {
    font-size: 0.85rem;
    color: #2C3E50;
    margin: 12px 0;
    line-height: 1.5;
}

body.dark-mode .role-description {
    color: #CBD5E1;
}

.role-stats {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

body.dark-mode .role-stats {
    background: rgba(15, 23, 42, 0.6);
}

.role-stat {
    text-align: center;
    flex: 1;
}

.role-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #00B4D8;
}

.role-stat-label {
    font-size: 0.65rem;
    color: #7F8C8D;
}

.role-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

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

.warning-card {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border-left: 4px solid #f59e0b;
}

body.dark-mode .warning-card {
    background: rgba(245, 158, 11, 0.15);
}

.danger-card {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border-left: 4px solid #D62828;
}

body.dark-mode .danger-card {
    background: rgba(214, 40, 40, 0.15);
}

.progress-bar {
    width: 120px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    margin-right: 8px;
}

body.dark-mode .progress-bar {
    background: #334155;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00B4D8, #0096C7);
    border-radius: 4px;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.settings-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.settings-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.settings-tab:hover:not(.active) {
    background: rgba(0, 180, 216, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

.hint {
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-top: 4px;
}

.logo-preview,
.favicon-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

body.dark-mode .logo-preview,
body.dark-mode .favicon-preview {
    background: #1E293B;
}

.logo-preview img {
    max-width: 200px;
    max-height: 80px;
}

.favicon-preview img {
    width: 32px;
    height: 32px;
}

.backup-container {
    max-width: 1000px;
    margin: 0 auto;
}

.backup-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .backup-card {
    background: rgba(30, 41, 59, 0.8);
}

.backup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.backup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.btn-create {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
}

.backup-list {
    margin-top: 20px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .backup-item {
    border-bottom-color: #334155;
}

.backup-name {
    font-family: monospace;
    font-size: 0.85rem;
}

.backup-size {
    font-size: 0.7rem;
    color: #7F8C8D;
}

.logs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.logs-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .logs-card {
    background: rgba(30, 41, 59, 0.8);
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.logs-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logs-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.logs-content {
    background: #1a1a2e;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 20px;
    border-radius: 16px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line {
    padding: 4px 0;
    border-bottom: 1px solid #334155;
    font-family: monospace;
}

.log-error {
    color: #ff6b6b;
}

.log-warning {
    color: #ffd93d;
}

.log-info {
    color: #6bcb77;
}

.btn-clear {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-refresh {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cache-container {
    max-width: 900px;
    margin: 0 auto;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.stat-icon.blue {
    color: #00B4D8;
}

.stat-icon.green {
    color: #2A9D8F;
}

.info-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .info-card {
    background: rgba(30, 41, 59, 0.8);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00B4D8;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .info-title {
    color: white;
}

.info-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .info-list li {
    border-bottom-color: #334155;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .check-icon {
    width: 24px;
    height: 24px;
    background: rgba(42, 157, 143, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A9D8F;
    font-size: 0.8rem;
}

.info-list .clock-icon {
    width: 24px;
    height: 24px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 0.8rem;
}

.warning-card {
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.08), rgba(214, 40, 40, 0.02));
    border-left: 4px solid #D62828;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

body.dark-mode .warning-card {
    background: rgba(214, 40, 40, 0.1);
}

.warning-title {
    font-weight: 700;
    color: #D62828;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-text {
    color: #7F8C8D;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.dark-mode .warning-text {
    color: #94A3B8;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-clear {
    background: linear-gradient(135deg, #D62828, #C1121F);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-clear:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.3);
}

.btn-back {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid #2A9D8F;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #065f46;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

body.dark-mode .alert-success {
    background: rgba(42, 157, 143, 0.2);
    color: #6ee7b7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.library-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.library-btn-play {
    background: #2A9D8F;
    color: white;
}

.library-btn-record {
    background: #00B4D8;
    color: white;
}

.library-btn-delete {
    background: #D62828;
    color: white;
}

.library-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.empty-library {
    text-align: center;
    padding: 50px;
    color: #95A5A6;
}

.status-text {
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

.status-recording {
    color: #D62828;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.users-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.users-table th {
    text-align: left;
    padding: 15px 12px;
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

body.dark-mode .users-table th {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border-bottom-color: #334155;
}

.users-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .users-table td {
    border-bottom-color: #334155;
}

.users-table tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

.users-table-container {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

body.dark-mode .users-table-container {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.grammar-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.grammar-sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}

.grammar-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    min-width: 300px;
}

.grammar-sidebar h3 {
    color: #4361ee;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.grammar-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grammar-sidebar li {
    padding: 8px 12px;
    margin-bottom: 3px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
}

.grammar-sidebar li:hover {
    background: #e0e0e0;
}

.grammar-sidebar li.active {
    background: #4361ee;
    color: white;
}

.category-header {
    font-weight: bold;
    color: #4361ee;
    margin-top: 12px;
    margin-bottom: 5px;
    padding-left: 5px;
    font-size: 12px;
    letter-spacing: 1px;
}

.grammar-title {
    font-weight: bold;
    color: #4361ee;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.font-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.font-btn {
    background: #4361ee;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.font-btn:hover {
    background: #3a56d4;
}

.rule-box {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border-left: 4px solid #4caf50;
}

.urdu-box {
    background: #fff3e0;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 4px solid #ff9800;
    line-height: 1.6;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
}

.example-card {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
}

.az-word {
    font-weight: bold;
    color: #4361ee;
}

.en-word {
    color: #4caf50;
}

.ur-word {
    color: #ff9800;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
}

.breakdown {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
}

.tip {
    background: #e8eaf6;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 4px solid #3f51b5;
}

.exercise {
    background: #fce4ec;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.exercise-question {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.answer-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 12px;
}

.answer {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: #c8e6c9;
    border-radius: 6px;
}

.search-box {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
}

.content-text,
.content-text * {
    transition: font-size 0.2s ease;
}

.content-text,
.content-text p,
.content-text div,
.content-text li,
.content-text span,
.content-text strong,
.content-text em {
    font-size: inherit;
}

@media (max-width: 768px) {
    .grammar-sidebar {
        width: 100%;
        position: static;
        max-height: 300px;
    }
}

.practice-container {
    max-width: 900px;
    margin: 0 auto;
}

.practice-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 60px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

body.dark-mode .practice-stats-bar {
    background: rgba(30, 41, 59, 0.9);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2C3E50;
    line-height: 1;
}

body.dark-mode .stat-value {
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    color: #95A5A6;
    text-transform: uppercase;
}

.practice-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

body.dark-mode .practice-card {
    background: rgba(30, 41, 59, 0.9);
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00B4D8, #D62828, #2A9D8F);
}

.progress-ring-container {
    margin-bottom: 20px;
}

.progress-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-ring-bg {
    stroke: #e0e0e0;
}

.progress-ring-fill {
    stroke: url(#progressGradient);
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #00B4D8;
}

.practice-word-area {
    margin: 20px 0;
}

.practice-word {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00B4D8, #D62828, #f59e0b, #2A9D8F, #00B4D8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    word-break: break-word;
    animation: gradientFlow 5s ease infinite;
    transition: transform 0.3s ease;
}

.practice-word:hover {
    transform: scale(1.02);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        letter-spacing: normal;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 50%;
        letter-spacing: 1px;
    }

    75% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 0% 50%;
        letter-spacing: normal;
    }
}

.practice-pronunciation {
    font-size: 1.1rem;
    color: #95A5A6;
    font-style: italic;
    font-family: monospace;
    margin-bottom: 20px;
    display: none;
}

.practice-pronunciation.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.audio-control-bar {
    background: #F8F9FA;
    border-radius: 60px;
    padding: 10px 20px;
    display: inline-flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

body.dark-mode .audio-control-bar {
    background: #1e293b;
}

.audio-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.audio-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.audio-btn.playing {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    animation: pulse 1.5s infinite;
}

.speed-select,
.repeat-select {
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
}

body.dark-mode .speed-select,
body.dark-mode .repeat-select {
    background: #334155;
    border-color: #475569;
    color: white;
}

.repeat-status {
    font-size: 0.7rem;
    font-weight: 600;
    background: #2A9D8F;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    display: none;
}

.answer-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 24px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    display: none;
    animation: slideUp 0.4s ease;
}

body.dark-mode .answer-section {
    background: linear-gradient(135deg, #1a3a2a, #0f2a1f);
}

.answer-section.show {
    display: block;
}

.answer-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

body.dark-mode .answer-row {
    background: rgba(0, 0, 0, 0.2);
}

.answer-icon {
    width: 40px;
    height: 40px;
    background: #2A9D8F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.answer-content {
    flex: 1;
}

.answer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #2A9D8F;
    font-weight: 600;
    margin-bottom: 4px;
}

.answer-text {
    font-size: 1rem;
    color: #2C3E50;
    word-break: break-word;
}

body.dark-mode .answer-text {
    color: #e2e8f0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.reveal-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.next-btn {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
}

.mastered-btn {
    background: linear-gradient(135deg, #2A9D8F, #248277);
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 180, 216, 0.3);
    border-radius: 50%;
    border-top-color: #00B4D8;
    animation: spin 0.8s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(42, 157, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
    }
}

@media (max-width: 768px) {
    .practice-card {
        padding: 25px;
    }

    .practice-word {
        font-size: 2rem;
    }

    .practice-stats-bar {
        justify-content: center;
    }

    .action-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .audio-control-bar {
        padding: 8px 12px;
        gap: 8px;
    }

    .audio-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}


.flashcard-app {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-screen {
    position: relative;
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-blue-dark) 25%, var(--az-red) 50%, var(--az-red-dark) 75%, var(--az-green) 100%);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    overflow: hidden;
    animation: fadeInScale 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.welcome-screen::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: floatCard 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.welcome-screen h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.welcome-screen p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.get-started-btn {
    background: white;
    color: var(--az-blue);
    border: none;
    padding: 14px 42px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.get-started-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

body.dark-mode .loading-screen {
    background: var(--gray-800);
}

.loading-content {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader::before {
    background: var(--az-blue);
    animation-delay: 0s;
}

.loader::after {
    background: var(--az-red);
    animation-delay: 0.5s;
    transform: scale(0.6);
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.loading-screen p {
    margin-top: 20px;
    color: var(--gray-600);
    font-size: 1rem;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-red) 50%, var(--az-green) 100%);
    padding: 16px 24px;
    border-radius: 60px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

body.dark-mode .pill {
    background: var(--gray-800);
    color: var(--gray-300);
}

.pill:hover {
    transform: translateY(-2px);
    border-color: var(--az-blue);
}

.pill.active {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.flashcard-container {
    perspective: 1500px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.flashcard {
    width: var(--card-width);
    min-height: 420px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    box-sizing: border-box;
}

.flashcard-front {
    background: linear-gradient(135deg, var(--az-blue) 0%, var(--az-red) 50%, var(--az-green) 100%);
    background-size: 200% 200%;
    color: white;
    transform: rotateY(0deg);
    animation: waveGradient 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flashcard-back {
    background: white;
    color: var(--gray-800);
    transform: rotateY(180deg);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

body.dark-mode .flashcard-back {
    background: var(--gray-800);
    color: white;
    border-color: var(--gray-700);
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.flashcard-back::-webkit-scrollbar {
    width: 4px;
}

.flashcard-back::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.flashcard-back::-webkit-scrollbar-thumb {
    background: var(--az-blue);
    border-radius: 4px;
}

.flashcard-front .card-word {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    word-break: break-word;
    line-height: 1.3;
    width: 100%;
}

.flashcard-front .card-pronunciation {
    font-size: 0.9rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 20px;
}

.flashcard-front .card-hint {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 20px;
}

.flashcard-back .card-word {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.3;
    margin-top: 0;
    width: 100%;
}

.flashcard-back .card-pronunciation {
    font-size: 0.85rem;
    font-family: monospace;
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gray-600);
}

body.dark-mode .flashcard-back .card-pronunciation {
    background: var(--gray-700);
    color: var(--gray-300);
}

.card-translation-en {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--az-green);
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.card-translation-ur {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--az-red);
    font-weight: 600;
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
    text-align: left;
    width: 100%;
}

.card-example {
    font-size: 0.85rem;
    margin: 12px 0;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: 16px;
    font-style: italic;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
}

body.dark-mode .card-example {
    background: var(--gray-700);
}

.rating-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rating-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.85rem;
}

.rating-btn.easy {
    background: linear-gradient(135deg, var(--az-green), var(--az-green-dark));
    color: white;
}

.rating-btn.medium {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
}

.rating-btn.hard {
    background: linear-gradient(135deg, var(--az-red), var(--az-red-dark));
    color: white;
}

.rating-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.prev {
    background: var(--gray-200);
    color: var(--gray-700);
}

.action-btn.next {
    background: linear-gradient(135deg, var(--az-blue), var(--az-blue-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.action-btn.speak {
    background: linear-gradient(135deg, var(--az-green), var(--az-green-dark));
    color: white;
}

.action-btn.reset {
    background: linear-gradient(135deg, var(--az-red), var(--az-red-dark));
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-counter {
    background: linear-gradient(135deg, var(--az-gold), #e6a800);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card-counter {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--gray-900);
}

.progress-bar-container {
    background: var(--gray-200);
    border-radius: 30px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

body.dark-mode .progress-bar-container {
    background: var(--gray-700);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--az-blue), var(--az-red), var(--az-green));
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 30px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerProgress 2s infinite;
}

@keyframes shimmerProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 32px;
    border: 2px dashed var(--az-green);
}

body.dark-mode .empty-state {
    background: var(--gray-800);
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--az-blue);
}

.flashcard.slide-out-left {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-out-right {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flashcard.slide-in-left {
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) rotateY(-15deg);
        opacity: 0;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%) rotateY(15deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotateY(15deg);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%) rotateY(-15deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@media (max-width: 550px) {
    :root {
        --card-width: 340px;
    }

    .flashcard {
        min-height: 400px;
    }

    .flashcard-front .card-word {
        font-size: 1.5rem;
    }

    .flashcard-back .card-word {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .stats-bar {
        padding: 12px 16px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .welcome-screen {
        padding: 40px 24px;
    }

    .welcome-screen h2 {
        font-size: 1.6rem;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 20px;
    }
}


.profile-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 10px !important;
    margin: 0 !important;
}

.form-panel,
.items-panel,
.admin-sub-tabs,
.admin-tabs-dropdown {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.admin-sub-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tabs-dropdown {
    display: none;
    margin-bottom: 30px;
    width: 100%;
}

.tabs-dropdown-toggle {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.tabs-dropdown-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.tabs-dropdown-menu {
    display: none;
    background: white;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    width: 100%;
}

body.dark-mode .tabs-dropdown-menu {
    background: #1E293B;
    border-color: #334155;
}

.tabs-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .tabs-dropdown-menu a {
    color: #CBD5E1;
    border-bottom-color: #334155;
}

.tabs-dropdown-menu a:last-child {
    border-bottom: none;
}

.tabs-dropdown-menu a:hover {
    background: rgba(0, 180, 216, 0.1);
    padding-left: 28px;
}

.tabs-dropdown-menu a.active {
    background: rgba(0, 180, 216, 0.15);
    color: #00B4D8;
    font-weight: 700;
}

.tabs-dropdown-menu a.active:before {
    content: "✓ ";
    color: #00B4D8;
}

@media (max-width: 768px) {
    .admin-sub-tabs {
        display: none !important;
    }

    .admin-tabs-dropdown {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .tabs-dropdown-toggle {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .tabs-dropdown-menu a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

.admin-sub-tab {
    padding: 10px 24px;
    background: white;
    color: #5A6C7E;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

body.dark-mode .admin-sub-tab {
    background: rgba(30, 41, 59, 0.8);
    color: #94A3B8;
    border-color: #334155;
}

.admin-sub-tab:hover {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.admin-sub-tab.active {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border-color: transparent;
}

.form-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .form-panel {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00B4D8;
}

.panel-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .panel-title {
    color: white;
}

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

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 0.9rem;
}

body.dark-mode .form-group label {
    color: #CBD5E1;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

body.dark-mode .form-input {
    background: #1E293B;
    border-color: #334155;
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: #00B4D8;
}

.full-width {
    grid-column: span 2;
}

.btn-submit {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.items-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .items-panel {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

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

.items-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
}

body.dark-mode .items-title {
    color: white;
}

.items-count {
    background: rgba(0, 180, 216, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #00B4D8;
    font-weight: 600;
}

.items-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.items-table th {
    text-align: left;
    padding: 15px 10px;
    background: #f8f9fa;
    font-weight: 600;
    color: #2C3E50;
    border-bottom: 2px solid #e2e8f0;
}

body.dark-mode .items-table th {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border-bottom-color: #334155;
}

.items-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

body.dark-mode .items-table td {
    border-bottom-color: #334155;
}

.items-table tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

.audio-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.audio-badge.yes {
    background: rgba(42, 157, 143, 0.15);
    color: #2A9D8F;
}

.audio-badge.no {
    background: rgba(214, 40, 40, 0.15);
    color: #D62828;
}

.action-buttons-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-play {
    background: #2A9D8F;
    color: white;
}

.btn-edit {
    background: #00B4D8;
    color: white;
}

.btn-delete {
    background: #D62828;
    color: white;
}

.btn-icon:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #95A5A6;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .form-panel,
    .items-panel {
        padding: 20px 16px !important;
    }

    .action-buttons-cell {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .btn-icon {
        min-width: 55px !important;
        width: auto !important;
    }

    .items-table {
        font-size: 0.8rem;
    }

    .items-table th,
    .items-table td {
        padding: 10px 6px;
    }

    .items-table th:nth-child(3),
    .items-table td:nth-child(3),
    .items-table th:nth-child(4),
    .items-table td:nth-child(4) {
        display: none;
    }
}

@media (min-width: 769px) {

    .items-table th:nth-child(3),
    .items-table td:nth-child(3),
    .items-table th:nth-child(4),
    .items-table td:nth-child(4) {
        display: table-cell !important;
    }
}
