/* Modern Header & Footer Styles */
/* Font imports already included in header-modern.php */

/* Modern Header */
#header_modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(51, 57, 83, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 8, 40, 0.2);
    transition: all 0.3s ease;
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header_left {
    display: flex;
    align-items: center;
}

#logo_modern {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 16px;
}

#logo_modern a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.3s ease;
}

#logo_modern a:hover {
    transform: scale(1.02);
}

#logo_modern img {
    height: 32px;
    width: auto;
}

.logo_text {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav_links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav_user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav_link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav_link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav_link:visited {
    color: rgba(255, 255, 255, 0.9);
}

.nav_link:hover:visited {
    color: #fff;
}

.nav_link i {
    font-size: 16px;
    opacity: 0.8;
}

.dashboard_link:hover {
    background: rgba(0, 226, 186, 0.2);
    color: #00E2BA;
}

.login_btn {
    background: linear-gradient(135deg, #FF7196, #FF5722);
    color: #fff !important;
    font-weight: 600;
}

.login_btn:hover {
    background: linear-gradient(135deg, #FF5722, #FF7196);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.3);
}

.logout_btn:hover {
    background: rgba(255, 87, 34, 0.2);
    color: #FF5722;
}

.points_display {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    font-weight: 600;
}

.points_display:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.work_badge {
    background: #FF5722;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Menu */
.mobile_menu_btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
    z-index: 10000;
    position: relative;
}

.mobile_menu_btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile_menu_btn:focus {
    outline: 2px solid #FF7196;
    outline-offset: 2px;
}

.mobile_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile_menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile_menu_content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    max-width: 85vw;
    background: #333953;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile_menu.active .mobile_menu_content {
    transform: translateX(0);
}

.mobile_menu_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile_menu_title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 18px;
}

.mobile_menu_close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile_menu_close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile_nav {
    padding: 20px 0;
}

.mobile_nav_link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile_nav_link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile_nav_link.login {
    background: linear-gradient(135deg, #FF7196, #FF5722);
    margin: 0 20px;
    border-radius: 8px;
    color: #fff !important;
}

.mobile_nav_link.logout {
    color: #FF5722;
}

.mobile_nav_divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

/* Modern Footer */
#footer_modern {
    background: linear-gradient(135deg, #1a1f3a, #2d3561);
    color: #fff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

#footer_modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 20px;
    position: relative;
    z-index: 1;
}

.footer_content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer_brand {
    max-width: 400px;
}

.footer_logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer_logo img {
    height: 32px;
    width: auto;
}

.footer_brand_text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(135deg, #fff, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer_description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer_links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer_section h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section li {
    margin-bottom: 8px;
}

.footer_section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer_section a:hover {
    color: #FF7196;
}

.footer_bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer_bottom_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer_copyright {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0;
}

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

.footer_made_with {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer_made_with i {
    color: #FF7196;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modern Cookie Banner */
.cookie_banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 57, 83, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie_banner[style*="flex"] {
    transform: translateY(0);
}

.cookie_content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie_text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    flex: 1;
    min-width: 200px;
}

.cookie_text i {
    color: #FFD700;
    font-size: 20px;
}

.cookie_text a {
    color: #FF7196;
    text-decoration: none;
}

.cookie_text a:hover {
    text-decoration: underline;
}

.cookie_actions {
    display: flex;
    gap: 12px;
}

.cookie_btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie_btn.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie_btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie_btn.primary {
    background: linear-gradient(135deg, #FF7196, #FF5722);
    color: #fff;
}

.cookie_btn.primary:hover {
    background: linear-gradient(135deg, #FF5722, #FF7196);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.3);
}

/* Modern Flashcard System - Completely Independent */
.modern-flashcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding: 0;
}

.modern-flashcard-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.modern-flashcard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 113, 150, 0.3);
}

.modern-flashcard-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.2s ease;
}

.modern-flashcard-content {
    position: relative;
    padding: 28px 24px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.modern-flashcard-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF7196 0%, #FF5722 50%, #FF7196 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.modern-flashcard-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-flashcard-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
}

.modern-flashcard-icon {
    color: #64748b;
    font-size: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.modern-flashcard-card:hover .modern-flashcard-icon {
    color: #FF7196;
    opacity: 1;
    transform: scale(1.1);
}

.modern-flashcard-card:hover .modern-flashcard-title {
    color: #0f172a;
}

.modern-flashcard-card:hover .modern-flashcard-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 113, 150, 0.5);
}

/* Modern Login Page Styling */
.modern-login-container {
    max-width: 500px;
    padding: 40px;
    text-align: center;
    margin: auto !important;
    }

.modern-login-header {
    position: relative;
    z-index: 1;
}

.modern-login-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-login-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.modern-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.modern-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.modern-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.modern-auth-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.modern-auth-button.google:hover {
    border-color: rgba(219, 68, 55, 0.6);
    background: rgba(219, 68, 55, 0.1);
}

.modern-auth-button.microsoft:hover {
    border-color: rgba(0, 120, 212, 0.6);
    background: rgba(0, 120, 212, 0.1);
}

.modern-auth-button i {
    font-size: 1.2em;
}

.modern-auth-button.google i {
    color: #ff6b6b;
}

.modern-auth-button.microsoft i {
    color: #4dabf7;
}

/* Modern Toast Messages */
.modern-toast {
    max-width: 500px;
    margin: 20px auto;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.modern-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.modern-toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Modern Login Chip Styling */
.modern-login-chip-container {
    max-width: 600px;
    margin: auto!important;
    text-align: center;
}

.modern-login-chip-header {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.modern-login-chip-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-login-chip-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modern-login-chip-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.modern-login-chip-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.modern-login-chip-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.modern-login-chip-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Analytics Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0px!important;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 113, 150, 0.3);
}

.stat-icon {
    font-size: 2.5em;
    color: #FF7196;
    background: linear-gradient(135deg, #FF7196, #FF9EBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
}

.stat-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #FF7196, #FF9EBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.analytics-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.analytics-container table.view-set-work{min-width: 100%}

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

.summary-card {
    padding: 25px !important;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-card .section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 113, 150, 0.2);
}

.summary-card .section-header h2 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.summary-card .section-header p {
    font-size: 0.8em;
    margin: 0;
}

.summary-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.summary-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #FF7196, #FF9EBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.analytics-section {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.analytics-section.full-width {
    width: 100%;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 113, 150, 0.2);
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #FF7196;
    font-size: 1.1em;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: #fff;
    margin: 0;
}

.modern-table {
    border-collapse: collapse;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.modern-table th {
    background: linear-gradient(135deg, rgba(255, 113, 150, 0.1), rgba(255, 158, 186, 0.05));
    color: #333;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 113, 150, 0.2);
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table tr:hover {
    background: rgba(255, 113, 150, 0.05);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7196, #FF9EBA);
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.rank-badge.month {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.rank-badge.trending {
    background: linear-gradient(135deg, #F093FB, #F5576C);
}

.qualification-cell {
    position: relative;
}

.qualification-cell strong {
    display: block;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF7196, #FF9EBA);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar.month .progress-fill {
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
}

.qualification-cell small {
    font-size: 0.8em;
}

.count-cell {
    text-align: center;
    font-weight: 600;
    color: #FF7196;
    font-size: 1.1em;
}

.activity-cell {
    max-width: 400px;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-details {
    font-size: 0.85em;
}

.month-cell {
    font-weight: 600;
}

.count-with-bar {
    position: relative;
    min-width: 200px;
}

.activity-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    height: 24px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF7196, #FF9EBA);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.bar-text {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    color: white;
    font-weight: 600;
    font-size: 0.8em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.growth-cell {
    text-align: center;
}

.growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.growth.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.growth.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.growth.neutral {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 15px;
    }
    
    .analytics-section {
        padding: 20px;
    }
    
    .grid-container-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .activity-cell {
        max-width: 250px;
    }
    
    .count-with-bar {
        min-width: 150px;
    }
}


.modern-login-chip-button.google:hover {
    border-color: rgba(219, 68, 55, 0.6);
    background: rgba(219, 68, 55, 0.1);
}

.modern-login-chip-button.microsoft:hover {
    border-color: rgba(0, 120, 212, 0.6);
    background: rgba(0, 120, 212, 0.1);
}

.modern-login-chip-button i {
    font-size: 1.1em;
}

.modern-login-chip-button.google i {
    color: #ff6b6b;
}

.modern-login-chip-button.microsoft i {
    color: #4dabf7;
}

/* Modern Alternative Options Section */
.modern-alternative-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.modern-alternative-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-alternative-section p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.modern-revision-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 113, 150, 0.3);
    border-radius: 14px;
    background: rgba(255, 113, 150, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(255, 113, 150, 0.2);
    backdrop-filter: blur(10px);
}

.modern-revision-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 113, 150, 0.3);
    border-color: rgba(255, 113, 150, 0.5);
    background: rgba(255, 113, 150, 0.15);
}

.modern-revision-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.modern-revision-button i {
    font-size: 1.1em;
    color: #FF7196;
}

/* Modern Details Components - Streamlined Pink Design */
.details, .details_swap {
    background: linear-gradient(135deg, #FF7196 0%, #FF5E88 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

/* Modern Details Components - Streamlined Pink Design */
.details, .details_swap {
    background: linear-gradient(135deg, #FF7196 0%, #FF5E88 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

/* .details:hover, .details_swap:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 113, 150, 0.3);
} */

/* Breadcrumbs Styling */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.breadcrumbs a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.breadcrumbs i {
    font-size: 11px;
}

.breadcrumbs .fa-chevron-right {
    color: rgba(255, 255, 255, 0.7);
    /* margin: 0 2px; */
}

.breadcrumbs .fa-house {
    font-size: 12px;
}

/* Title Styles */
.details h1, .details_swap h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.details_swap h1 {
    margin-bottom: 6px;
}

/* Description/Breadcrumb text in details_swap */
.details_swap .breadcrumb {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .details, .details_swap {
        padding: 14px 16px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .details h1, .details_swap h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .breadcrumbs {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .details_swap .breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .details, .details_swap {
        padding: 12px 14px;
        border-radius: 8px;
    }
    
    .details h1, .details_swap h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .breadcrumbs {
        font-size: 11px;
        gap: 4px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .header_nav {
        display: none;
    }
    
    .mobile_menu_btn {
        display: block;
    }
    
    .mobile_menu {
        display: block;
    }
    
    .footer_content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer_links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header_container {
        padding: 0 15px;
    }
    
    .footer_links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer_bottom_content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie_content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie_actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Modern Flashcard Responsive */
    .modern-flashcard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .modern-flashcard-content {
        padding: 24px 20px;
        min-height: 140px;
    }
    
    .modern-flashcard-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .modern-flashcard-badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .modern-flashcard-icon {
        font-size: 1.25rem;
    }
    
    /* Login Page Responsive Design */

    
    .modern-login-header h1 {
        font-size: 2em;
    }
    
    .modern-login-subtitle {
        font-size: 1em;
        margin-bottom: 32px;
    }
    
    .modern-auth-button {
        padding: 14px 20px;
        font-size: 0.95em;
    }
    
    .modern-signup-note {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .footer_container {
        padding: 40px 15px 15px;
    }
    
    .cookie_banner {
        padding: 15px;
    }
    
    .cookie_actions {
        flex-direction: column;
    }
    
    .cookie_btn {
        width: 100%;
    }
    
    #flashcard_topic_grid {
        grid-template-columns: 1fr;
    }

    
    .modern-login-header h1 {
        font-size: 1.8em;
    }
    
    .modern-auth-button {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .modern-auth-button span {
        font-size: 0.9em;
    }
    
    .modern-signup-note {
        font-size: 0.8em;
        gap: 6px;
    }
}

/* Signup Note and Footer Section */
.modern-login-footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-signup-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.modern-signup-note i {
    color: #4dabf7;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Modern Quiz System */
#quiz {
    position: fixed;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    top: 0;
    left: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 50%, #1a1f3a 100%);
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

#quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="quiz-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.3" fill="rgba(255,113,150,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23quiz-grain)"/></svg>');
    opacity: 0.8;
    pointer-events: none;
}

/* Modern Quiz Header */
#quiz .quiz_header {
    height: 80px;
    width: calc(100% - 40px);
    margin: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}

#quiz .quiz_header #logo {
    display: flex;
    align-items: center;
    margin: 0;
}

#quiz .quiz_header #logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

#quiz .quiz_header #logo a:hover {
    transform: scale(1.05);
}

#quiz .quiz_header #logo img {
    height: 36px;
    width: auto;
    margin: 0;
    filter: brightness(1.1);
}

/* Modern Progress Bar */
#quiz .quiz_header #quiz_progress {
    width: 450px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

#quiz .quiz_header #quiz_progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

#quiz .quiz_header #quiz_progress #quiz_correct {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00E2BA 0%, #00C4A1 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 226, 186, 0.4);
}

#quiz .quiz_header #quiz_progress #quiz_incorrect {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF5722 0%, #E53E3E 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

/* Modern Question Container */
#quiz .mc_question {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#quiz .mc_question.selected {
    display: block;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Question Display */
#quiz .big_display {
    height: 65%;
    width: calc(100% - 40px);
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

#quiz .big_display .mc_question_title {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    min-height: 120px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#quiz .big_display .mc_question_title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF7196 0%, #FF5722 50%, #FF7196 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

#quiz .big_display .mc_question_title span {
    position: relative;
    z-index: 1;
}

/* Evil Question Styling */
#quiz .big_display .mc_question_title span i.fa-skull-crossbones {
    color: #FF5722;
    margin-right: 8px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.6));
}

/* Modern Answer Options */
#quiz .answer_options {
    height: 35%;
    width: calc(100% - 40px);
    margin: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

#quiz .answer_options div {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#quiz .answer_options div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

#quiz .answer_options div:hover::before {
    left: 100%;
}

#quiz .answer_options div span {
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* Option States */
#quiz .answer_options .option:hover,
#quiz .answer_options .optionmulti:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 113, 150, 0.6);
    background: rgba(255, 113, 150, 0.15);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 113, 150, 0.3);
}

#quiz .answer_options .optionmulti[selected="true"] {
    border-color: #FF7196;
    background: rgba(255, 113, 150, 0.2);
    box-shadow: 
        0 4px 12px rgba(255, 113, 150, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Disabled state for answered questions */
#quiz .disableInput .answer_options .option:hover,
#quiz .disableInput .answer_options .optionmulti:hover {
    transform: none;
    cursor: default;
}

/* Correct/Incorrect Answer Feedback */
#quiz .answer_options div[style*="background-color: rgb(0, 226, 186)"],
#quiz .answer_options div[style*="background-color: #00E2BA"] {
    background: linear-gradient(135deg, #00E2BA 0%, #00C4A1 100%) !important;
    border-color: #00E2BA !important;
    color: #000 !important;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(0, 226, 186, 0.4),
        0 0 20px rgba(0, 226, 186, 0.6) !important;
    animation: correctPulse 0.6s ease-out;
}

#quiz .answer_options div[style*="background-color: rgb(255, 0, 0)"],
#quiz .answer_options div[style*="background-color: #f00"] {
    background: linear-gradient(135deg, #FF5722 0%, #E53E3E 100%) !important;
    border-color: #FF5722 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(255, 87, 34, 0.4),
        0 0 20px rgba(255, 87, 34, 0.6) !important;
    animation: incorrectShake 0.6s ease-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Submit Button Styling */
#quiz .answer_options .submit_individual_answer {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%) !important;
    color: #fff !important;
    font-weight: 600;
    border: 2px solid #FF7196 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#quiz .answer_options .submit_individual_answer:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%) !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 113, 150, 0.4),
        0 0 20px rgba(255, 113, 150, 0.6);
}

/* Additional Modern Quiz Enhancements */

/* Smooth transitions for quiz elements */
#quiz * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern loading state for quiz */
#quiz.loading {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 50%, #1a1f3a 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Enhanced evil question styling */
#quiz .mc_question_title span:has(i.fa-skull-crossbones) {
    background: linear-gradient(135deg, #FF5722, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Improved code styling in answers */
#quiz .answer_options code {
    background: rgba(0, 0, 0, 0.4);
    color: #00E2BA;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid rgba(0, 226, 186, 0.3);
    font-size: 0.9em;
}

/* Modern tooltip styles for quiz */
.hint--top:before {
    background: rgba(51, 57, 83, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hint--top:after {
    border-top-color: rgba(51, 57, 83, 0.95) !important;
}

/* Enhanced progress animation */
#quiz .quiz_header #quiz_progress #quiz_correct {
    background: linear-gradient(90deg, #00E2BA 0%, #00C4A1 50%, #00E2BA 100%);
    background-size: 200% 100%;
    animation: progress-glow 2s ease-in-out infinite;
}

#quiz .quiz_header #quiz_progress #quiz_incorrect {
    background: linear-gradient(90deg, #FF5722 0%, #E53E3E 50%, #FF5722 100%);
    background-size: 200% 100%;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Modern focus states for accessibility */
#quiz .answer_options div:focus {
    outline: 2px solid #FF7196;
    outline-offset: 2px;
    border-color: #FF7196 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #quiz .big_display .mc_question_title {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #fff;
    }
    
    #quiz .answer_options div {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #quiz,
    #quiz *,
    #quiz::before {
        animation: none !important;
        transition: none !important;
    }
    
    #quiz .mc_question.selected {
        animation: none;
    }
    
    @keyframes none {
        0%, 100% { transform: none; }
    }
}

/* Modern Inline Quiz System (activity-modules/quiz.php) */

/* Question Container */


.mc_question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF7196 0%, #FF5722 50%, #FF7196 100%);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.mc_question:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 113, 150, 0.3);
}

/* Question Title */
.mc_question .mc_question_title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

/* Evil Question Styling */
.mc_question .mc_question_title .evil {
    background: linear-gradient(135deg, #FF5722, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mc_question .mc_question_title .evil i.fa-skull-crossbones {
    color: #FF5722;
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.6));
    animation: evil-pulse 2s infinite;
}

@keyframes evil-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Question Media Elements */
.mc_question .question_image {
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin:auto;
}

.mc_question .displayCode {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 226, 186, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #00E2BA;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Answer Options */
.mc_question .option,
.mc_question .optionmulti {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    margin: 8px 0;
    text-align: center;
    line-height: 1.5;
    /* min-height: 50px; */
    box-sizing: border-box;
}


.mc_question .option:hover,
.mc_question .optionmulti:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Selected Multi-choice Options */
.mc_question .optionmulti[selected="true"] {
    border-color: rgba(255, 113, 150, 0.6);
    background: rgba(255, 113, 150, 0.2);
    box-shadow: 
        0 4px 12px rgba(255, 113, 150, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Correct/Incorrect Answer States (for JavaScript color changes) */
.mc_question .option[style*="background-color: rgb(0, 226, 186)"],
.mc_question .optionmulti[style*="background-color: rgb(0, 226, 186)"] {
    background: linear-gradient(135deg, #00E2BA 0%, #00C4A1 100%) !important;
    border-color: #00E2BA !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 
        0 6px 20px rgba(0, 226, 186, 0.4),
        0 0 20px rgba(0, 226, 186, 0.6) !important;
    animation: correct-glow 0.6s ease-out;
}

.mc_question .option[style*="background-color: rgb(255, 0, 0)"],
.mc_question .optionmulti[style*="background-color: rgb(255, 0, 0)"],
.mc_question .option[style*="background-color: #aaa"],
.mc_question .optionmulti[style*="background-color: #aaa"] {
    background: linear-gradient(135deg, #FF5722 0%, #E53E3E 100%) !important;
    border-color: #FF5722 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 
        0 6px 20px rgba(255, 87, 34, 0.4),
        0 0 20px rgba(255, 87, 34, 0.6) !important;
    animation: incorrect-shake 0.6s ease-out;
}

@keyframes correct-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes incorrect-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Code in Answer Options */
.mc_question .option code,
.mc_question .optionmulti code {
    background: rgba(0, 0, 0, 0.4);
    color: #00E2BA;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid rgba(0, 226, 186, 0.3);
    font-size: 0.85em;
}

/* Action Buttons Section */
.mc_question .play_action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: none;
}

.mc_question .play_action .generic_button,
.mc_question .play_action .generic_button_small {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 4px 8px 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 113, 150, 0.3);
}

.mc_question .play_action .generic_button:hover,
.mc_question .play_action .generic_button_small:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.4);
}

/* Saved Flashcard State */
.mc_question .play_action .save[style*="Saved"],
.mc_question .play_action .save:contains("Saved") {
    background: linear-gradient(135deg, #00E2BA 0%, #00C4A1 100%);
    color: #000;
}



/* Teacher Tools */
.teacher_tools {
    background: rgba(255, 113, 150, 0.1);
    border: 1px solid rgba(255, 113, 150, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.teacher_tools .generic_button {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 8px 12px 8px 0;
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 113, 150, 0.3);
}

.teacher_tools .generic_button:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.4);
}

/* Statistics Box */
.statistics {

    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.statistics .statistic-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.statistics .flex-item1 {
    flex: 1;
    min-width: 200px;
}

.statistics .flex-item2 {
    flex: 1;
    min-width: 200px;
}

.statistics .box_plot {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    margin-top: 10px;
}

.statistics .box_plot .whisker1,
.statistics .box_plot .whisker2 {
    position: absolute;
    width: 2px;
    height: 50%;
    background: #fff;
    top: 25%;
}

.statistics .box_plot .box_line {
    position: absolute;
    height: 2px;
    background: #fff;
    top: 50%;
    transform: translateY(-50%);
}

.statistics .box_plot .q1 {
    position: absolute;
    height: 60%;
    background: rgba(0, 226, 186, 0.7);
    top: 20%;
    border-radius: 4px 0 0 4px;
}

.statistics .box_plot .q3 {
    position: absolute;
    height: 60%;
    background: rgba(255, 113, 150, 0.7);
    top: 20%;
    border-radius: 0 4px 4px 0;
}

/* Responsive Design for Inline Quiz */
@media (max-width: 768px) {
    .mc_question {
        padding: 20px;
        margin-bottom: 30px;
        border-radius:  16px;
    }
    
    .mc_question .mc_question_title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .mc_question .option,
    .mc_question .optionmulti {
        padding: 12px 16px;
        margin: 6px 0;
        border-radius: 12px;
        font-size: 0.9em;
    }
    
    .mc_question .play_action {
        padding: 12px;
        margin-top: 20px;
    }
    
    .mc_question .play_action .generic_button,
    .mc_question .play_action .generic_button_small {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 4px 6px 4px 0;
    }
    
    .teacher_tools {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .teacher_tools .generic_button {
        padding: 10px 16px;
        margin: 6px 8px 6px 0;
        font-size: 0.9rem;
    }
    
    .statistics {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .statistics .statistic-container {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .mc_question {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .mc_question .mc_question_title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .mc_question .option,
    .mc_question .optionmulti {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .mc_question .displayCode {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .teacher_tools .generic_button {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
}

/* Modern Inline Quiz Styles */
.mc_question {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 8, 40, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mc_question_title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.option, .optionmulti {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.option.draggable {
    display: inline-block;
    width: auto;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top:5px;
    margin-bottom:5px;
}

.option.draggable:hover{
    box-shadow:none;
}

.drop_zone{
    background: rgba(255, 113, 150, 0.15);
    border: 2px dashed rgba(255, 113, 150, 0.6);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

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

.option:hover, .optionmulti:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.option:hover:before, .optionmulti:hover:before {
    left: 100%;
}

/* Quiz Answer States */
.option.selected-answer, .optionmulti.selected-answer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4) !important;
    transform: translateY(-2px) !important;
}

.option.unselected-answer, .optionmulti.unselected-answer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1) !important;
    opacity: 0.6 !important;
}

.option.correct-answer, .optionmulti.correct-answer {
    background: linear-gradient(135deg, #00E2BA 0%, #00C4A1 100%) !important;
    border-color: #00E2BA !important;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4) !important;
    transform: translateY(-2px) !important;
}

.option.incorrect-answer, .optionmulti.incorrect-answer {
    background: rgb(255,0,0) !important;
    border-color: rgba(250, 112, 154, 0.6) !important;
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4) !important;
}

/* Quiz Action Buttons */
.play_action {
    display: inline-block;
    margin: 20px 10px 20px 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.play_action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.play_action:hover:before {
    left: 100%;
}



/* Reusable Floating Box Component - Same as .mc_question */
.floating_box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 8, 40, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.floating_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF7196 0%, #FF5722 50%, #FF7196 100%);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

.floating_box:hover {
    /* transform: translateY(-2px); */
    border-color: rgba(255, 113, 150, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 8, 40, 0.1);
}

/* Toast Component - Same as .floating_box but with blue gradient top */
.toast {
    margin: 30px 0;
    padding: 25px 25px 20px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 8, 40, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

/* Toast Variants */
.toast.info::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
}

.toast.success::before {
    background: linear-gradient(90deg, #00E2BA 0%, #00C4A1 50%, #00E2BA 100%);
}

.toast.warning::before {
    background: linear-gradient(90deg, #ffa726 0%, #ff9800 50%, #ffa726 100%);
}

.toast.error::before {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 50%, #f44336 100%);
}

.toast.info:hover {
    border-color: rgba(79, 172, 254, 0.3);
}

.toast.success:hover {
    border-color: rgba(0, 226, 186, 0.3);
}

.toast.warning:hover {
    border-color: rgba(255, 167, 38, 0.3);
}

.toast.error:hover {
    border-color: rgba(244, 67, 54, 0.3);
}

/* Info Box Component - Identical to .toast */
.info_box {
    margin: 30px 0;
    padding: 25px 25px 20px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 8, 40, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

/* Info Box Variants */
.info_box.info::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
}

.info_box.success::before {
    background: linear-gradient(90deg, #00E2BA 0%, #00C4A1 50%, #00E2BA 100%);
}

.info_box.warning::before {
    background: linear-gradient(90deg, #ffa726 0%, #ff9800 50%, #ffa726 100%);
}

.info_box.error::before {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 50%, #f44336 100%);
}

.info_box.info:hover {
    border-color: rgba(79, 172, 254, 0.3);
}

.info_box.success:hover {
    border-color: rgba(0, 226, 186, 0.3);
}

.info_box.warning:hover {
    border-color: rgba(255, 167, 38, 0.3);
}

.info_box.error:hover {
    border-color: rgba(244, 67, 54, 0.3);
}



/* Reusable Action Box Component - Based on .teacher_tools */
.action_box {
    background: rgba(255, 113, 150, 0.1);
    border: 1px solid rgba(255, 113, 150, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.action_box .generic_button {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 8px 12px 8px 0;
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 113, 150, 0.3);
}

.action_box .generic_button:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.4);
}

/* Standalone Generic Button - Reusable across the site */
.generic_button {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 8px 12px 8px 0;
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 113, 150, 0.3);
    font-family: 'Inter', sans-serif;
    text-align: center;
    min-width: 200px;
    -webkit-user-select: none;
}

.generic_button:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.4);
}

.generic_button[enabled="false"] {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: #BDBDBD;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.2);
    pointer-events: none;
}

.generic_button[enabled="false"]:hover {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    transform: none;
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.2);
}



/* Responsive Quiz Styles */
@media (max-width: 768px) {
    .mc_question {
        margin: 20px 0;
        padding: 20px;
        border-radius: 12px;
    }
    
    .mc_question .mc_question_title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .mc_question .option,
    .mc_question .optionmulti {
        padding: 14px 16px;
        font-size: 0.95rem;
        margin: 10px 0;
    }
    
    .play_action {
        padding: 12px 24px;
        font-size: 0.95rem;
        margin: 16px 8px 16px 0;
    }
}

@media (max-width: 480px) {
    .mc_question {
        margin: 16px 0;
        padding: 16px;
    }
    
    .mc_question .option,
    .mc_question .optionmulti {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .play_action {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Modern Image Grid Styling - For Activities & Flashcards */
.image_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.image_grid a {
    position: relative;
    display: block;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image_grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 113, 150, 0.3);
}

/* Add a gradient overlay to make text readable */
.image_grid a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}



/* Add subtle shine effect on hover */
.image_grid a:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
}

/* Style the content div */
.image_grid a div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    z-index: 3;
    min-height: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Style the activity count */
.image_grid a div .activity_count {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF7196 0%, #FF5E88 100%);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image_grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .image_grid a div {
        padding: 20px;
        font-size: 18px;
    }
}

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

/* Revise Topics styling - specifically for revise.php */
.image_grid.revise-topics {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image_grid.revise-topics a:before {
    background: none;
}


.image_grid.revise-topics a {
    height: auto;
    min-height: 220px;
    background:linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%)
}

.image_grid.revise-topics a div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    bottom: auto;
    position: relative;
}

.image_grid.revise-topics a img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.image_grid.revise-topics a h3 {
    margin: 15px 0;
    padding: 0 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    color: #fff;
}

/* Responsive adjustments for revise topics */
@media (max-width: 768px) {
    .image_grid.revise-topics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image_grid.revise-topics {
        grid-template-columns: 1fr;
    }
}

/* Modern Blog Styling */
.blog_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.blog_container a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.blog_container a:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 113, 150, 0.3);
}

.blog_container .blog_section {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.blog_container .cover_image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.blog_container .blog_header {
    padding: 16px 16px 0;
    box-sizing: border-box;
}

.blog_container .blog_header h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
}

.blog_container .blog_content {
    padding: 2px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
    position: relative;
    max-height: 6em; /* line-height * number of lines (1.5 * 4) */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add a fade effect at the bottom for better visual appearance */
/* .blog_container .blog_content::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(25, 30, 45, 0.8));
    pointer-events: none; }*/

.blog_container small {
    display: block;
    padding: 10px 16px 16px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Blog Layout */
@media (max-width: 1024px) {
    .blog_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Text Grid Styling - for school management pages */
.text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.text-grid a {
    position: relative;
    display: block;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 113, 150, 0.3);
}

.text-grid a div {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
    background: none;
    box-sizing: border-box;
}

.text-grid a div .activity_count {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF7196 0%, #FF5E88 100%);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
    width: auto; 
    margin-top:10px;
}

/* Individual Blog Post Styling */
.blog_post_container {
    margin: 30px auto;
}

.individual_blog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.post_title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fff, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post_date, .post_category {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
}

.post_date {
    color: #FF7196;
}

.post_date i, .post_category i {
    margin-right: 6px;
}

.post_category a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post_category a:hover {
    color: #FF7196;
    text-decoration: underline;
}

.post_content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.post_content h2, 
.post_content h3,
.post_content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 600;
}

.post_content p {
    margin-bottom: 20px;
}

.post_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.post_content a {
    color: #FF7196;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post_content a:hover {
    color: #FF8CAC;
    text-decoration: underline;
}

.post_content ul,
.post_content ol {
    margin: 20px 0 20px 20px;
}

.post_content li {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog_post_container {
        padding: 0 15px;
    }
    
    .individual_blog {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .text-grid {
        grid-template-columns: 1fr;
    }
    
    .individual_blog {
        padding: 15px;
    }
}

/* Product Page Styling - extends Individual Blog Post Styling */
.product_cover_container {
    margin: 24px 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product_cover {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.product_actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}





@media (max-width: 768px) {
    .product_cover {
        max-width: 100%;
    }
}

/* Modern Dashboard Table Container */
.table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', sans-serif;
}

.table-container th {
    background: rgba(255, 255, 255, 0.1);
    color: #000828;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.table-container td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: background 0.2s ease;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.table-container td.actions {
    text-align: right;
    white-space: nowrap;
}

.table-container td.actions a {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255, 113, 150, 0.8);
    transition: all 0.2s ease;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-container td.actions a:first-child {
    margin-left: 0;
}

.table-container td.actions a:hover {
    background: rgba(255, 113, 150, 0.4);
    border-color: #FF7196;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Modern Progress Bar Styling for Tables */
.graphTotal {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2px 0;
    min-width: 80px;
}

.graphTotal .bar {
    height: 100%;
    background: linear-gradient(90deg, #FF7196, #FF9EBA);
    border-radius: 6px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px rgba(255, 113, 150, 0.3);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.graphTotal .bar:empty {
    min-width: 0;
}

/* Hover effect for progress bars in tables */
a:hover .graphTotal {
    border-color: rgba(255, 113, 150, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 113, 150, 0.2);
}

a:hover .graphTotal .bar {
    box-shadow: 0 0 12px rgba(255, 113, 150, 0.5);
}

.table-container .small {
    width: 100px;
    text-align: center;
}

.table-container .tiny {
    width: 80px;
    text-align: center;
}

/* Additional class for links that need to be highlighted */
.table-container td a.highlight-link {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 113, 150, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border-bottom: none;
}

.table-container td a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: all 0.2s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.table-container td a:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

/* Dashboard Grid Container */
.grid-container-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.grid-container-dashboard a {
    text-decoration: none;
}

.grid-container-dashboard a div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    color: #fff;
    text-align: center;
    height: 100px;
}

.grid-container-dashboard a div:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 113, 150, 0.3);
}

.grid-container-dashboard a div i {
    font-size: 24px;
    margin-bottom: 12px;
    color: #FF7196;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-container-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Floating Box Heading and Icon Styling */
.floating_box h1 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, #fff, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating_box h1 i,
.floating_box h2 i {
    color: #FF7196;
    margin-right: 10px;
    font-size: 0.9em;
}

.floating_box h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

/* Modern Form Styling for floating_box containers */
.floating_box .modern-form {
    margin: 0;
}

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

.floating_box .modern-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.floating_box .modern-form textarea:focus {
    outline: none;
    border-color: rgba(255, 113, 150, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 113, 150, 0.1);
}

.floating_box .modern-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Form Styling for floating_box containers */
.floating_box .modern-form label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
}

.floating_box .modern-form input[type="text"],
.floating_box .modern-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.floating_box .modern-form input[type="text"]:focus,
.floating_box .modern-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 113, 150, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 113, 150, 0.1);
}

.floating_box .modern-select {
    position: relative;
}

.floating_box .modern-select select,
.floating_box .modern-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    height: 44px;
    line-height: 1.5;
}

.floating_box .modern-select select:focus,
.floating_box .modern-form select:focus {
    outline: none;
    border-color: rgba(255, 113, 150, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 113, 150, 0.1);
}

.floating_box .modern-select select option,
.floating_box .modern-form select option {
    background: #fff;
    color: #333;
    padding: 8px 12px;
}

.floating_box .modern-select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.floating_box .modern-form input[type="submit"] {
    /* background: linear-gradient(135deg, #FF7196, #FF9EBA); */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.25);
    font-size: 14px;
}

.floating_box .modern-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 113, 150, 0.35);
}

/* Teacher List Styling */
.teacher-list {
    margin: 16px 0;
}

.teacher-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.teacher-info i {
    color: #FF7196;
    font-size: 14px;
}

.teacher-info span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.owner-badge {
    background: linear-gradient(135deg, #FF7196, #FF9EBA);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.teacher-item .text-action {
    font-size: 13px;
}

/* Learn Section Styling */
.learn_section_modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 24px 0;
    padding: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.learn_section_modern:hover {
    border-color: rgba(255, 113, 150, 0.3);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 12px 40px, rgba(0, 8, 40, 0.1) 0px 8px 32px;
}


.learn_section_modern .section_title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.learn_section_modern .section_title h2 {
    /* margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 10px; */
}

.learn_section_modern .section_title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn_section_modern .section_title h2 a:hover {
    color: #FF7196;
}

.learn_section_modern .section_content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.learn_section_modern .section_content img {
    max-width: 100%;
    height: auto;
}

.learn_section_modern .section_content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 20px 0 12px 0;
    font-size: 16px;
}

.learn_section_modern .section_content p {
    margin: 12px 0;
}

.learn_section_modern .section_tags {
    margin: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.learn_section_modern .section_actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.learn_section_modern .section_actions small {
    color: rgba(255, 255, 255, 0.6);
}

.learn_section_modern .section_actions a {
    color: #FF7196;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn_section_modern .section_actions a:hover {
    color: #FF9EBA;
    text-decoration: underline;
}

/* Floating Box List Styling */
.topic_contents_nav ol {
    margin: 16px 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    counter-reset: item;
}

.topic_contents_nav ol li {
    margin-bottom: 0;
    line-height: 1;
    position: relative;
    counter-increment: item;
}

.topic_contents_nav ol li::before {
    content: counter(item) ".";
    color: #FF7196;
    font-weight: 600;
    margin-right: 6px;
}

.topic_contents_nav ol li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    white-space: nowrap;
}

.topic_contents_nav ol li a:hover {
    color: #fff;
    background: rgba(255, 113, 150, 0.2);
    border-color: rgba(255, 113, 150, 0.3);
    transform: translateY(-1px);
}

/* Generic Tag Styling - Identical to floating box links */
.generic_tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: normal;
    display: inline-block;
    margin: 4px 6px 4px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.generic_tag:hover {
    background: rgba(255, 113, 150, 0.2);
    border-color: rgba(255, 113, 150, 0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Modern Image Header Styling - Glassmorphic Design */
#image_header {
    background: url(/resources/default-images/abstract_1.jpg) center/cover;
    width: 100%;
    height: 350px;
    position: relative;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background-attachment: fixed;
}

#image_header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

#image_header h2 {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    margin: 0 auto;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    min-height: 120px;
}

#image_header h2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 16px;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #image_header {
        height: 280px;
        margin: 20px 0;
        background-attachment: scroll;
        border-radius: 16px;
    }
    
    #image_header h2 {
        width: 85%;
        padding: 30px 25px;
        font-size: 24px;
        border-radius: 12px;
        min-height: 100px;
    }
    
    #image_header h2::before {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    #image_header {
        height: 220px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    #image_header h2 {
        width: 90%;
        padding: 25px 20px;
        font-size: 20px;
        border-radius: 10px;
        letter-spacing: 0;
        min-height: 80px;
    }
    
    #image_header h2::before {
        border-radius: 10px;
    }
}

/* Modern Activities Topics Page Styling */
.modern-activities-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Form Styling */
.modern-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

.modern-form-container h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
    color: #fff;
}

.modern-form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-form-group label {
    font-weight: 500;
    color: #fff;
    min-width: 100px;
}

.modern-form-group input[type="date"] {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
}

/* Modern Work Selection */
.modern-work-selection {
    margin: 0 0 30px 0;
}

/* Override old styles within modern container */


.modern-activities-container h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 0 0;
}

.modern-progress-section {
    background: linear-gradient(135deg, rgba(255, 113, 150, 0.1), rgba(255, 158, 186, 0.05));
    border: 1px solid rgba(255, 113, 150, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.1);
    color:#fff;
}

.modern-progress-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-progress-section h3 i {
    color: #fff;
}

.modern-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF7196, #FF9EBA);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modern-helper-section {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(68, 160, 141, 0.05));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.1);
}

.modern-helper-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-helper-section h4::before {
    content: '✨';
    font-style: normal;
}

.modern-helper-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modern-topic-section {
   background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    margin-bottom:25px;
}

.modern-topic-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 113, 150, 0.3);
}

.modern-topic-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.modern-topic-header h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fff, #FF7196);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 113, 150, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 113, 150, 0.1);
}

.modern-subtopic-section {
    padding-top:25px;
    padding-bottom:25px;
}

.modern-subtopic-section:hover {

}

.modern-subtopic-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-subtopic-header strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-subtopic-header strong::before {
    content: '📝';
    font-size: 0.9em;
}

.modern-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.modern-activity-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #cccccc;
    color: #333333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.modern-activity-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 204, 204, 0.3);
    border-color: #aaa;
    background: #d4d4d4;
}

.modern-activity-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.modern-activity-button i {
    font-size: 1.1em;
    color: #666666;
    min-width: 16px;
}

.modern-activity-button .chip {
    /* font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
    min-width: auto; */
}

.modern-activity-button .chip.chipgreen {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modern-activity-button .chip.chiporange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.modern-activity-button .chip.chipred {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.modern-activity-button .chip.chipgrey {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.modern-empty-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed rgba(255, 113, 150, 0.3);
    border-radius: 12px;
    background: rgba(255, 113, 150, 0.1);
    color: rgba(255, 113, 150, 0.8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.modern-empty-button:hover {
    border-color: rgba(255, 113, 150, 0.5);
    color: #FF7196;
}

.modern-learn-button {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
}

.modern-learn-button:hover {
    background: linear-gradient(135deg, #45b7b8, #3d8b7a);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.modern-learn-button i {
    color: #fff;
}

/* Admin Debug Info */
.modern-debug-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-activities-container {
        padding: 16px;
    }
    
    .modern-activity-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-helper-buttons {
        flex-direction: column;
    }
    
    .modern-topic-actions {
        flex-direction: column;
    }
    
    .modern-topic-header h3 {
        font-size: 1.2em;
    }
    
    .modern-subtopic-header strong {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .modern-activities-container {
        padding: 12px;
    }
    
    .modern-topic-header {
        padding: 16px 20px;
    }
    
    .modern-topic-content {
        padding: 16px;
    }
    
    .modern-subtopic-section {
        padding: 16px;
    }
}


.progress{background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);border-radius: 16px;padding: 30px;box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);border: 1px solid rgba(255, 255, 255, 0.1);font-family: 'Inter', sans-serif;margin-bottom: 25px;}


.school-info-header {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.school-info-header h2 {
    margin: 0 0 8px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.school-info-header .school-id {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.settings-form-group {
    margin-bottom: 25px;
}

.settings-form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.settings-form-group .help-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.5;
}

.settings-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: rgba(255, 113, 150, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 113, 150, 0.1);
}

.settings-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.current-value {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.empty-value {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button {
    background: linear-gradient(135deg, #FF7196 0%, #FF5722 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 113, 150, 0.3);
}

.save-button:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF7196 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 113, 150, 0.4);
}

.cancel-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}



/* Responsive design */
@media (max-width: 768px) {
    
    .floating_box {
        padding: 25px 20px;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .settings-button {
        width: 100%;
        justify-content: center;
    }
}

.table-container-scroll {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#questionReviewForm label{width:100%;}