@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ========================================
   COLOR PALETTE - MÀU SẮC PREMIUM
   ======================================== */
:root {
    /* Primary Colors - Xanh Y khoa */
    --primary: #0f5a8b;
    --primary-light: #1a7db8;
    --primary-dark: #0a3d5c;
    
    /* Secondary - Cam/Hồng y khoa */
    --secondary: #ff6b6b;
    --secondary-light: #ff8c8c;
    --secondary-dark: #ee5a52;
    
    /* Accent - Teal/Cyan sáng */
    --accent: #00d4d4;
    --accent-light: #1ee0d4;
    --accent-dark: #00a0a0;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Backgrounds */
    --bg-primary: #0a0f1f;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252d45;
    --bg-light: #f0f4f9;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d0d8e8;
    --text-muted: #8b92a9;
    --text-dark: #2d3436;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f5a8b 0%, #1a7db8 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ff8c8c 100%);
    --gradient-accent: linear-gradient(135deg, #00d4d4 0%, #1ee0d4 100%);
    --gradient-premium: linear-gradient(135deg, #0f5a8b 0%, #00d4d4 100%);
}

* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    letter-spacing: -0.3px;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

.hidden {
    display: none !important;
}

/* ========================================
   SCROLL BAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ========================================
   LOGIN SCREEN - PREMIUM GRADIENT
   ======================================== */
#login-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #0f3456 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeInLogin 0.8s ease-out;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

#login-screen::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes fadeInLogin {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 60px 50px;
    border-radius: 24px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideUpLogin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
    border-radius: 24px;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    pointer-events: none;
}

@keyframes slideUpLogin {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-icon {
    font-size: 56px;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.login-card h2 {
    color: var(--text-primary);
    margin: 15px 0 40px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(0, 212, 212, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.input-group:focus-within {
    border-color: var(--accent);
    background: rgba(0, 212, 212, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.input-group i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 16px;
}

.input-group input {
    border: none;
    flex: 1;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 212, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 212, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.error-text {
    color: var(--secondary-light);
    font-size: 13px;
    margin-top: 12px;
    animation: shake 0.5s ease-in-out;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ========================================
   HOME VIEW - MODERN DESIGN
   ======================================== */
#home-view {
    height: 100vh;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f2540 50%, var(--bg-secondary) 100%);
    animation: fadeIn 0.6s ease-out;
    position: relative;
}

#home-view::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

#home-view::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.home-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.home-header h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin: 0;
    animation: slideDown 0.7s ease-out;
    letter-spacing: -0.8px;
    font-weight: 800;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-logout {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(255, 107, 107, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--secondary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
    font-size: 18px;
    z-index: 3;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(255, 107, 107, 0.3));
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-logout:active {
    transform: translateY(-1px) rotate(10deg);
}

/* HOME GRID */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    flex: 1;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-card {
    height: 60vh;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    border-radius: 20px;
}

.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.home-card:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 212, 212, 0.05) 100%);
    border-color: rgba(0, 212, 212, 0.3);
    box-shadow: 0 25px 70px rgba(0, 212, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-tkb {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-schedule {
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.card-header {
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.1) 0%, rgba(15, 90, 139, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    letter-spacing: 0px;
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 17px;
}

.card-header h3 i {
    font-size: 20px;
}

.expand-btn {
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.2), rgba(0, 212, 212, 0.1));
    border: 1px solid rgba(0, 212, 212, 0.3);
    color: var(--accent);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.expand-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.3), rgba(0, 212, 212, 0.2));
    border-color: var(--accent);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 20px rgba(0, 212, 212, 0.3);
    color: var(--accent-light);
}

.card-body {
    flex: 1;
    overflow: hidden;
    background: transparent;
    position: relative;
}

.full-height-body {
    display: flex;
    align-items: stretch;
}

.pdf-frame,
.sheet-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-secondary);
}

/* START BUTTON */
.start-btn-container {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.btn-start-large {
    padding: 18px 70px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    border: none;
    background: var(--gradient-premium);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 212, 212, 0.35);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    animation: slideUpBtn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    border: 2px solid transparent;
    font-family: inherit;
}

@keyframes slideUpBtn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-start-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.btn-start-large:hover::before {
    left: 100%;
}

.btn-start-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 212, 212, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-start-large:active {
    transform: translateY(-2px);
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    transform: scale(1.25) rotate(15deg);
    color: var(--accent-light);
    filter: drop-shadow(0 0 10px rgba(0, 212, 212, 0.4));
}

/* ========================================
   FULLSCREEN MODAL - GLASSMORPHISM
   ======================================== */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 31, 0.95) 0%, rgba(10, 63, 86, 0.95) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: fadeInFullscreen 0.5s ease-out;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 212, 0.1);
}

@keyframes fadeInFullscreen {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(15px); }
}

.fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.1), rgba(15, 90, 139, 0.1));
    border-bottom: 1px solid rgba(0, 212, 212, 0.2);
    color: var(--text-primary);
}

.fullscreen-header h3 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.close-btn-large {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(255, 107, 107, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--secondary-light);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 20px;
}

.close-btn-large:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(255, 107, 107, 0.25));
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.fullscreen-iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: var(--bg-secondary);
}

/* ========================================
   LEARNING VIEW - DARK MODE PREMIUM
   ======================================== */
#learning-view {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    animation: fadeIn 0.6s ease-out;
}

.learning-header {
    height: 65px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid rgba(0, 212, 212, 0.15);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 18px;
    justify-content: space-between;
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box-learning {
    flex: 1;
    max-width: 350px;
    display: flex;
    justify-content: center;
}

.search-box-learning input {
    width: 100%;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 212, 212, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-align: center;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
}

.search-box-learning input::placeholder {
    color: var(--text-muted);
}

.search-box-learning input:focus {
    border-color: var(--accent);
    background: rgba(0, 212, 212, 0.1);
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.learning-grid {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* CỘT GIỮA (MAIN) */
.col-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    background: var(--bg-primary);
    padding: 12px;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* VIEWER BOX - PREMIUM GLASS */
.viewer-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 212, 212, 0.03) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 212, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 0;
}

.viewer-box:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.08) 0%, rgba(0, 212, 212, 0.04) 100%);
    box-shadow: 0 20px 70px rgba(0, 212, 212, 0.25), inset 0 1px 0 rgba(0, 212, 212, 0.2);
    transform: translateY(-3px);
}

.video-box {
    flex: 1;
}

.doc-box {
    flex: 1;
}

.viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 212, 212, 0.1);
    align-items: center;
    font-weight: 600;
}

.viewer-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    width: 85%;
    pointer-events: none;
    animation: fadeIn 0.6s ease-out;
    letter-spacing: -0.3px;
}

.btn-xs {
    padding: 8px 14px;
    font-size: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.2), rgba(0, 212, 212, 0.1));
    backdrop-filter: blur(10px);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 212, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-family: inherit;
}

.btn-xs:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 212, 212, 0.4);
}

/* CỘT BÊN (SIDEBAR) */
.col-side {
    width: 0;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 212, 212, 0.15);
    border-left: 1px solid rgba(0, 212, 212, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.col-side.open {
    width: 340px;
    opacity: 1;
}

/* TOGGLE BUTTON */
.toggle-btn {
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.1), rgba(0, 212, 212, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 212, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-family: inherit;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.2), rgba(0, 212, 212, 0.1));
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 212, 0.25);
}

.toggle-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 212, 0.4);
}

/* CIRCULAR BUTTON */
.btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-circle.dark-theme {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-circle.dark-theme:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-circle.success {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 212, 212, 0.3);
}

.btn-circle.success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 212, 0.45);
}

.btn-circle.ai-btn {
    background: linear-gradient(135deg, #a8c0ff, #3f2b96);
    color: white;
    border-color: #a8c0ff;
    box-shadow: 0 8px 20px rgba(168, 192, 255, 0.3);
}

.btn-circle.ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 192, 255, 0.4);
}

.btn-circle:active {
    transform: scale(0.95);
}

.divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 212, 0.3), transparent);
}

/* ========================================
   SIDEBAR LIST ITEMS - FIX TRÙNG MÀU
   ======================================== */
.card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.08), rgba(15, 90, 139, 0.08));
    border-bottom: 1px solid rgba(0, 212, 212, 0.12);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.header-select-mini {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-family: inherit;
}

.header-select-mini:hover {
    color: var(--accent-light);
}

.scroll-y {
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 212, 212, 0.02) 100%);
}

/* ===== CHECKLIST ITEMS - SỬA LỖI TRÙNG MÀU ===== */
.todo-item {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: #e8ecf1;
    background: transparent;
    font-size: 13px;
}

.todo-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.12), transparent);
    padding-left: 20px;
    color: #ffffff;
}

/* Checkbox styling */
.todo-item input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.todo-item span {
    flex: 1;
    color: #e8ecf1;
    margin-left: 10px;
}

/* ===== DATABASE ITEMS - SỬA LỖI TRÙNG MÀU ===== */
.db-item {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: #e8ecf1;
    background: transparent;
}

.db-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.12), transparent);
    padding-left: 20px;
    color: #ffffff;
}

.db-item.active-item {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.2), rgba(0, 212, 212, 0.05));
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    color: #ffffff;
}

.db-tag {
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.25), rgba(0, 212, 212, 0.15));
    color: var(--accent);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 212, 212, 0.3);
    letter-spacing: -0.2px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 6px;
}

.db-item:hover .db-tag {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.db-title {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1.4;
}

.db-item > div:last-child {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    padding: 25px;
    font-size: 13px;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: -0.2px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   MODAL & FORM
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 31, 0.85) 0%, rgba(10, 63, 86, 0.85) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s ease-out;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 212, 0.1);
}

@keyframes fadeInModal {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.modal-content {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 212, 212, 0.03) 100%);
    backdrop-filter: blur(20px);
    width: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUpModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 212, 212, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.1), rgba(15, 90, 139, 0.1));
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-light);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.close-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(255, 107, 107, 0.15));
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.modal-tabs {
    padding: 14px;
    display: flex;
    gap: 8px;
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.05), rgba(15, 90, 139, 0.05));
    border-bottom: 1px solid rgba(0, 212, 212, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 11px;
    border: 1px solid rgba(0, 212, 212, 0.2);
    cursor: pointer;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent;
    font-size: 13px;
    font-family: inherit;
}

.tab-btn:hover {
    background: rgba(0, 212, 212, 0.08);
    border-color: rgba(0, 212, 212, 0.3);
    color: var(--accent);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(0, 212, 212, 0.3);
}

.modal-body {
    padding: 24px;
}

.form-section {
    animation: fadeIn 0.4s ease-out;
}

.inp-full {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 13px;
    border: 1.5px solid rgba(0, 212, 212, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.inp-full:focus {
    border-color: var(--accent);
    background: rgba(0, 212, 212, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    outline: none;
}

.inp-full::placeholder {
    color: var(--text-muted);
}

.btn-square {
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    font-family: inherit;
}

.btn-square.success {
    background: var(--gradient-accent);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 212, 212, 0.3);
}

.btn-square.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 212, 0.4);
}

.btn-square:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-square:active {
    transform: scale(0.95);
}

/* ========================================
   RESPONSIVE - TABLET & MOBILE
   ======================================== */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .home-card {
        height: 45vh;
    }

    .col-side.open {
        position: absolute;
        z-index: 100;
        height: 100%;
    }

    .col-left.open {
        left: 0;
    }

    .col-right.open {
        right: 0;
    }

    .col-main {
        padding: 8px;
        flex-direction: column;
    }

    .viewer-box {
        border-radius: 12px;
    }

    .search-box-learning {
        max-width: none;
        flex: 0.8;
    }

    .learning-header {
        height: auto;
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }

    .header-left,
    .header-right {
        gap: 8px;
    }

    .modal-content {
        width: 95vw;
    }
}

@media (max-width: 768px) {
    .home-header h1 {
        font-size: 28px;
    }

    .btn-start-large {
        padding: 14px 50px;
        font-size: 15px;
    }

    .toggle-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .learning-header {
        height: auto;
    }

    .search-box-learning {
        display: none;
    }

    .btn-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .col-side.open {
        width: 280px;
    }
}
/* ========================================
   SIDEBAR LIST ITEMS - HIGH CONTRAST COLORS
   ======================================== */

/* Card Header */
.card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.12), rgba(15, 90, 139, 0.12));
    border-bottom: 2px solid rgba(0, 212, 212, 0.25);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.header-select-mini {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 800;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.header-select-mini:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px rgba(0, 212, 212, 0.5);
}

.scroll-y {
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* ===== CHECKLIST ITEMS - HIGH CONTRAST ===== */
.todo-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 212, 212, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: #ffffff;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.todo-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.15), rgba(0, 212, 212, 0.05));
    padding-left: 18px;
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.todo-item.checked {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Checkbox styling */
.todo-item input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.todo-item span {
    flex: 1;
    color: #ffffff;
    margin-left: 2px;
}

/* ===== DATABASE ITEMS - HIGH CONTRAST ===== */
.db-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 212, 212, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: #ffffff;
    background: transparent;
}

.db-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.15), rgba(0, 212, 212, 0.05));
    padding-left: 18px;
    border-left: 3px solid var(--accent);
}

.db-item.active-item {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.25), rgba(0, 212, 212, 0.08));
    border-left: 4px solid var(--accent-light);
    padding-left: 11px;
}

.db-tag {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-primary);
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--accent-light);
    letter-spacing: 0.2px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.db-item:hover .db-tag {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    box-shadow: 0 0 12px rgba(0, 212, 212, 0.6);
    transform: scale(1.05);
}

.db-title {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    margin-top: 4px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.db-item > div:last-child {
    font-size: 11px;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== WEB LINKS - HIGH CONTRAST ===== */
.todo-item a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.todo-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.todo-item i.fa-globe {
    color: var(--accent);
    margin-right: 8px;
    font-size: 14px;
}

.todo-item i.fa-trash {
    color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-item i.fa-trash:hover {
    color: var(--danger);
    transform: scale(1.15);
}

/* ===== DELETE BUTTON - HIGH CONTRAST ===== */
.btn-del {
    color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
    padding: 6px;
}

.btn-del:hover {
    color: var(--danger);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.5));
}

.loading-text {
    text-align: center;
    color: var(--accent);
    padding: 25px;
    font-size: 13px;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.2px;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}
/* ========================================
   SIDEBAR LIST ITEMS - CYAN TEXT EVERYWHERE
   ======================================== */

/* Card Header - Checklist & Resources */
.card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.12), rgba(15, 90, 139, 0.12));
    border-bottom: 2px solid rgba(0, 212, 212, 0.25);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.header-select-mini {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 800;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.header-select-mini:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px rgba(0, 212, 212, 0.5);
}

.scroll-y {
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* ===== CHECKLIST ITEMS - CYAN TEXT ===== */
.todo-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 212, 212, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: var(--accent);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.todo-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.15), rgba(0, 212, 212, 0.05));
    padding-left: 18px;
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.todo-item.checked {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Checkbox styling */
.todo-item input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.todo-item span {
    flex: 1;
    color: var(--accent);
    margin-left: 2px;
    font-weight: 600;
}

/* ===== DATABASE ITEMS - CYAN TEXT ===== */
.db-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 212, 212, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: var(--accent);
    background: transparent;
}

.db-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.15), rgba(0, 212, 212, 0.05));
    padding-left: 18px;
    border-left: 3px solid var(--accent);
}

.db-item.active-item {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.25), rgba(0, 212, 212, 0.08));
    border-left: 4px solid var(--accent-light);
    padding-left: 11px;
}

.db-tag {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-primary);
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--accent-light);
    letter-spacing: 0.2px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.db-item:hover .db-tag {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    box-shadow: 0 0 12px rgba(0, 212, 212, 0.6);
    transform: scale(1.05);
}

.db-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
    margin-top: 4px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.db-item > div:last-child {
    font-size: 11px;
    color: var(--accent-light);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== WEB LINKS - CYAN TEXT & STYLED LIKE CATEGORY ===== */
.todo-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.todo-item a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.todo-item i.fa-globe {
    color: var(--accent);
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.todo-item:hover i.fa-globe {
    color: var(--accent-light);
    transform: rotate(15deg);
}

.todo-item i.fa-trash {
    color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.todo-item i.fa-trash:hover {
    color: var(--danger);
    transform: scale(1.15);
}

/* ===== DELETE BUTTON - STYLED ===== */
.btn-del {
    color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
    padding: 6px;
}

.btn-del:hover {
    color: var(--danger);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.5));
}

/* ===== WEB LINKS CONTAINER - STYLED LIKE CARD HEADER ===== */
#list-web {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Make the "Web Tra Cứu" header look like category filter */
#colRes .card-header:last-of-type {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.12), rgba(15, 90, 139, 0.12));
    border-bottom: 2px solid rgba(0, 212, 212, 0.25);
    font-weight: 800;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    height: auto;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.loading-text {
    text-align: center;
    color: var(--accent);
    padding: 25px;
    font-size: 13px;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.2px;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}