:root {
    --primary-color: #003366;
    /* Dark Blue from logo approximation */
    --accent-color: #D32F2F;
    /* Red from logo approximation */
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --input-bg: #FAFAFA;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: 'Roboto', sans-serif;
    --primary-dark: #002244;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease;
}

.logo-section {
    margin-bottom: 24px;
}

.logo {
    max-width: 200px;
    height: auto;
}

.welcome-text {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Google Button */
.google-btn {
    width: 100%;
    height: 48px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.google-btn:hover {
    background-color: #F8F9FA;
    box-shadow: var(--shadow-sm);
}

.google-icon-wrapper {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.btn-text {
    flex-grow: 1;
    text-align: center;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form */
.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.forgot-password {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #002244;
}

.login-footer {
    margin-top: auto;
    padding: 24px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
        box-shadow: none;
        background-color: transparent;
    }

    body {
        background-color: #fff;
        align-items: flex-start;
    }

    .login-container {
        padding: 0;
    }
}

/* --- Dashboard & General Layout --- */

/* Navbar */
.navbar {
    background-color: #FFFFFF;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-search {
    flex-grow: 1;
    max-width: 480px;
    margin: 0 24px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    font-size: 14px;
}

.nav-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

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

.upload-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

/* User Dropdown Menu */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.user-dropdown.active {
    display: block;
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: 8px 8px 0 0;
}

.user-info-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.user-info-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-item {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Export Dropdown */
.export-dropdown-container {
    position: relative;
    display: inline-block;
}

.export-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.export-menu.active {
    display: block;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.export-btn:hover,
.export-btn.active {
    background-color: var(--primary-dark);
}

.export-btn.active {
    background-color: #004080;
    /* Lighter/Different to show active state as requested */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.export-btn::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
}

/* Main Content Area */
.main-content {
    padding: 24px 0;
    width: 75%;
    max-width: 1600px;
    /* Reasonable cap */
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.see-all {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Card Grid/Slider */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resource-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Card Thumbnail - Cleaned Up */
.card-thumbnail {
    height: 160px;
    position: relative;
    overflow: hidden;
    background-color: #888;
    background-size: cover;
    background-position: center;
}

/* Thematic Images - Diverse Options */
/* We use a linear-gradient to force grayscale/tinting on the background image itself */
/* Thematic Images - Clean URLs without gradients */
.card-thumbnail.thumb-video {
    background-image: url('https://images.unsplash.com/photo-1587620962725-abab7fe55159?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-video-2 {
    background-image: url('https://images.unsplash.com/photo-1515879218367-8466d910aaa4?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-video-3 {
    background-image: url('https://images.unsplash.com/photo-1531482615713-2afd69097998?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-pdf {
    background-image: url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-pdf-2 {
    background-image: url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-ova {
    background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-ova-2 {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-audio {
    background-image: url('assets/img/ai_podcast_thumb.png');
}

.card-thumbnail.thumb-audio-2 {
    background-image: url('https://images.unsplash.com/photo-1590602847861-f357a9332bbc?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-img {
    background-image: url('https://images.unsplash.com/photo-1552168324-d612d77725e3?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-thevenin {
    background-image: url('assets/img/thevenin_norton_thumb.png');
}

.card-thumbnail.thumb-photography {
    background-image: url('assets/img/photography_techniques_thumb.png');
}

.card-thumbnail.thumb-cost-structures {
    background-image: url('assets/img/cost_structures_thumb.png');
}

.card-thumbnail.thumb-cloud-storage {
    background-image: url('assets/img/cloud_storage_thumb.png');
}

.card-thumbnail.thumb-kanban {
    background-image: url('https://images.unsplash.com/photo-1531403009284-440f080d1e12?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-thesis {
    background-image: url('assets/img/thesis_preparation_thumb.png');
}

.card-thumbnail.thumb-edu-podcast {
    background-image: url('assets/img/educational_innovation_podcast_thumb.png');
}

.card-thumbnail.thumb-peace {
    background-image: url('assets/img/peace_building_infographic_thumb.png');
}

.card-thumbnail.thumb-ted-ai {
    background-image: url('assets/img/ted_ai_talk_thumb.png');
}

.card-thumbnail.thumb-data-structures {
    background-image: url('assets/img/data_structures_thumb.png');
}

.card-thumbnail.thumb-python-variables {
    background-image: url('assets/img/python_variables_y_tipos_thumb.png');
}

.card-thumbnail.thumb-tech-podcast {
    background-image: url('assets/img/tech_podcast_thumb.png');
}

/* Public Catalog Thumbnails */
.card-thumbnail.thumb-python-intro {
    background-image: url('https://images.unsplash.com/photo-1526379095098-d400fd0bf935?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-sustainability {
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-physics-lab {
    background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-ml-course {
    background-image: url('https://images.unsplash.com/photo-1555949963-aa79dcee981c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}

.card-thumbnail.thumb-edu-podcast-public {
    background-image: url('assets/img/educational_innovation_podcast_thumb.png');
}

.card-thumbnail.thumb-peace-public {
    background-image: url('assets/img/peace_building_infographic_thumb.png');
}

/* Learning Paths Thumbnails */
.card-thumbnail.thumb-python-fullstack {
    background-image: url('assets/img/python_fullstack_thumb.png');
}

.card-thumbnail.thumb-data-science-fundamentals {
    background-image: url('assets/img/data_science_fundamentals_thumb.png');
}

.card-thumbnail.thumb-ai-applied {
    background-image: url('assets/img/ai_applied_thumb.png');
}

.card-thumbnail.thumb-ux-ui-design {
    background-image: url('assets/img/ux_ui_design_system_thumb.png');
}

.card-thumbnail.thumb-flutter-mobile {
    background-image: url('assets/img/flutter_mobile_dev_thumb.png');
}

.card-thumbnail.thumb-digital-marketing {
    background-image: url('assets/img/digital_marketing_analytics_thumb.png');
}

/* Math Search Results Thumbnails */
.card-thumbnail.thumb-discrete-math {
    background-image: url('assets/img/discrete_math_thumb.png');
}

.card-thumbnail.thumb-applied-economics-math {
    background-image: url('assets/img/applied_economics_math_thumb.png');
}

.card-thumbnail.thumb-interactive-calculator {
    background-image: url('assets/img/interactive_calculator_thumb.png');
}

.card-thumbnail.thumb-linear-algebra {
    background-image: url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
}


/* Overlay Effect (Tonality Matching) */
/* --- Thumbnail Overlays & Colors (Refactored) --- */

/* Base Thumbnail Style */
.card-thumbnail {
    height: 160px;
    position: relative;
    overflow: hidden;
    background-color: #888;
    /* Fallback */
    background-size: cover;
    background-position: center;
    /* Removed complex background-blend-mode */
}

/* Overlay Base */
.card-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    /* Consistent tinting */
    opacity: 0.6;
    /* User requested 60% */
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Resource Type Colors (Consolidated) */

/* PDF - Red */
.card-thumbnail.thumb-pdf::after,
.resource-card:has(.pdf) .card-thumbnail::after {
    background-color: #ef4444;
}

/* DOCX - Blue */
.card-thumbnail.thumb-docx::after,
.resource-card:has(.docx) .card-thumbnail::after {
    background-color: #3b82f6;
}

/* PPTX - Orange */
.card-thumbnail.thumb-pptx::after,
.resource-card:has(.pptx) .card-thumbnail::after {
    background-color: #f97316;
}

/* Video - Cyan */
.card-thumbnail.thumb-video::after,
.resource-card:has(.video) .card-thumbnail::after {
    background-color: #06b6d4;
}

/* Image - Olive */
.card-thumbnail.thumb-img::after,
.resource-card:has(.image) .card-thumbnail::after {
    background-color: #008000;
}

/* Audio - Mustard */
.card-thumbnail.thumb-audio::after,
.resource-card:has(.audio) .card-thumbnail::after {
    background-color: #ceb301;
}

/* OVA - Purple */
.card-thumbnail.thumb-ova::after,
.resource-card:has(.ova) .card-thumbnail::after {
    background-color: #8b5cf6;
}

/* Faculty Thumbnails (No Overlay) */
.card-thumbnail.thumb-faculty {
    background-image: none !important;
}

.card-thumbnail.thumb-faculty::after {
    display: none;
}

/* Faculty Background Colors */
.card-thumbnail.thumb-faculty.ing {
    background-color: #e3f2fd;
}

.card-thumbnail.thumb-faculty.adm {
    background-color: #e8f5e9;
}

.card-thumbnail.thumb-faculty.edu {
    background-color: #fff3e0;
}

.card-thumbnail.thumb-faculty.hum {
    background-color: #f3e5f5;
}

/* Faculty Icon Badges (Restored) */
.faculty-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}

.faculty-badge svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

/* Badges (Ensure visibility above overlay) */
.card-type-badge,
.faculty-badge {
    z-index: 2;
}

/* Card Type Badges with Solid Icons */
.card-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px 4px 30px;
    /* Left padding for icon */
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Icons using ::before pseudo-element */
.card-type-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 14px;
    height: 14px;
    background-color: white;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Video Icon (Solid) */
.card-type-badge.video {
    background-color: #06b6d4;
    /* Cian */
}

.card-type-badge.video::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z'/%3E%3C/svg%3E");
}

/* PDF Icon (Solid) */
.card-type-badge.pdf {
    background-color: #ef4444;
    /* Rojo */
}

.card-type-badge.pdf::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z'/%3E%3C/svg%3E");
}

/* OVA Icon (Solid) */
.card-type-badge.ova {
    background-color: #8b5cf6;
    /* Púrpura */
}

.card-type-badge.ova::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z'/%3E%3C/svg%3E");
}

/* Audio Icon (Waveform - Thicker) */
.card-type-badge.audio {
    background-color: #ceb301;
    /* Mostaza */
}

.card-type-badge.audio::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M8 7v10M16 9v6M4 11v2M20 11v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M8 7v10M16 9v6M4 11v2M20 11v2'/%3E%3C/svg%3E");
}

/* Image Icon (Solid) */
.card-type-badge.image {
    background-color: #008000;
    /* Verde */
}

.card-type-badge.image::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
}

/* DOCX Icon (Solid Document with W) */
.card-type-badge.docx {
    background-color: #3b82f6;
    /* Azul */
}

.card-type-badge.docx::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

/* PPTX Icon (Projection Screen with Angled Tripod) */
.card-type-badge.pptx {
    background-color: #f97316;
    /* Naranja */
}

.card-type-badge.pptx::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='2' width='18' height='11' rx='1' fill='black'/%3E%3Cpath d='M12 13 L12 18' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M12 18 L8 22' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M12 18 L16 22' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M6 22 L18 22' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='2' width='18' height='11' rx='1' fill='black'/%3E%3Cpath d='M12 13 L12 18' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M12 18 L8 22' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M12 18 L16 22' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M6 22 L18 22' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

/* Filter Sidebar (for Search Page) */
.page-layout {
    display: flex;
    gap: 32px;
    padding-top: 24px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-option input {
    margin-right: 8px;
}

.results-area {
    flex-grow: 1;
}

/* Detail Page */
.resource-viewer {
    background-color: black;
    height: 480px;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: var(--radius-md);
}

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

.resource-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.resource-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background-color: var(--input-bg);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Admin Styles --- */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    /* Minus navbar */
}

.admin-sidebar {
    width: 220px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background-color: #e3f2fd;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.admin-content {
    flex-grow: 1;
    padding: 32px;
}

/* Data Table */
.data-table-container {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.data-table th,
.data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.data-table td {
    font-size: 14px;
    color: var(--text-main);
}

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

.data-table tr:hover {
    background-color: #fafafa;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background-color: #ffebee;
    color: #c62828;
}

.status-draft {
    background-color: #f5f5f5;
    color: #616161;
}

.status-review {
    background-color: #fff8e1;
    color: #f57c00;
}

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #002244;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 32px;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Universal Viewer */
.viewer-container {
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.viewer-screen {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: white;
    position: relative;
}

.viewer-controls-demo {
    background-color: #333;
    padding: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid #444;
}

.demo-btn {
    background-color: #444;
    color: #ccc;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-btn:hover,
.demo-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.demo-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #eee;
    color: #999;
}

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

.sidebar-actions {
    display: flex;
    gap: 8px;
}

.sidebar-header .filter-title {
    margin-bottom: 0;
}

.edit-metadata-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    transition: all 0.2s;
}

.edit-metadata-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #f0f4f8;
    text-decoration: none;
}

.edit-metadata-link::before {
    content: '✎';
    font-size: 12px;
}

/* Viewer Modes */
.view-video {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-video.thumb-python-intro {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1526379095098-d400fd0bf935?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
    background-size: cover;
    background-position: center;
    justify-content: center;
    color: white;
}

.video-play-icon:hover {
    fill: #FDB71A !important;
}

.view-pdf {
    width: 100%;
    height: 100%;
    background-color: #525659;
    display: flex;
    flex-direction: column;
}

.pdf-toolbar {
    height: 40px;
    background-color: #323639;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    color: white;
    font-size: 12px;
}

.pdf-page {
    flex: 1;
    background-color: white;
    margin: 24px auto;
    width: 60%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.view-audio {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.audio-wave {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 60px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.audio-bar {
    width: 4px;
    background-color: #FDB71A;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

@keyframes wave {

    0%,
    100% {
        height: 20px;
        opacity: 0.5;
    }

    50% {
        height: 50px;
        opacity: 1;
    }
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Playback Controls (RF-05) */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.viewer-screen:hover .player-controls {
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #003366;
    border-radius: 2px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background-color: #FDB71A;
    border-radius: 2px;
    width: 30%;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #FDB71A;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #FDB71A;
}

.time-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    min-width: 110px;
}

.control-spacer {
    flex: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background-color: #003366;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-filled {
    height: 100%;
    background-color: #FDB71A;
    border-radius: 2px;
    width: 70%;
}

.settings-menu {
    position: relative;
}

.settings-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    margin-bottom: 8px;
    min-width: 150px;
    display: none;
}

.settings-menu:hover .settings-dropdown {
    display: block;
}

.settings-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: white;
    transition: background-color 0.2s;
}

.settings-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.settings-item.active {
    color: #FDB71A;
}

/* Flat Icon Styles for Player Controls */
.control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.control-btn.play-btn svg {
    width: 28px;
    height: 28px;
}

/* PDF Controls */
.pdf-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: white;
    font-size: 13px;
}

.pdf-nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    white-space: nowrap;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pdf-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* Audio Controls */
.audio-controls {
    width: 100%;
    max-width: 500px;
    margin-top: 24px;
}



.audio-control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Dublin Core Form Sections */
.form-section-header {
    grid-column: span 2;
    margin-top: 24px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.form-section-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dc-badge {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.help-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.required-indicator {
    color: #d32f2f;
    margin-left: 4px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-main);
}

/* Advanced Search Features */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 48px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

.autocomplete-item .icon {
    color: var(--text-secondary);
}

.spell-correction {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.spell-correction a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.suggestions-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-tag {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-tag:hover {
    background: #bbdefb;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.sort-dropdown {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.advanced-filters-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.advanced-filters-toggle:hover {
    background: #f5f5f5;
}

.advanced-filters-panel {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

.advanced-filters-panel.active {
    display: block;
}

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

.filter-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.highlight {
    background-color: #ffeb3b;
    font-weight: 500;
    padding: 0 2px;
}

/* Active Filters */
.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.active-filter-tag {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bbdefb;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.active-filter-tag button:hover {
    color: #d32f2f;
}

.filter-counter {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
}

.filter-option:hover {
    color: var(--primary-color);
}

.filter-option input {
    margin-right: 8px;
}

/* Version History Timeline */
.version-timeline {
    position: relative;
    padding-left: 40px;
    margin: 24px 0;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #e0e0e0);
}

.version-item {
    position: relative;
    margin-bottom: 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s ease;
}

.version-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.version-item.current-version {
    border-color: var(--primary-color);
    background: #f5f9ff;
}

.version-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.version-item.current-version::before {
    background: var(--primary-color);
    width: 16px;
    height: 16px;
    left: -34px;
    top: 22px;
}

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

.version-info {
    flex: 1;
}

.version-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.version-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.version-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.version-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.version-status {
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 500;
}

.version-status.published {
    background: #e8f5e9;
    color: #2e7d32;
}

.version-status.draft {
    background: #fff3e0;
    color: #e65100;
}

.version-status.archived {
    background: #f5f5f5;
    color: #757575;
}

.version-summary {
    color: var(--text-primary);
    line-height: 1.5;
    margin: 12px 0;
}

.version-changes {
    background: #f8f9fa;
    border-left: 3px solid #2196f3;
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 13px;
}

.version-changes-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.version-changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-changes-list li {
    padding: 2px 0;
    color: var(--text-secondary);
}

.version-changes-list li::before {
    content: '•';
    color: #2196f3;
    font-weight: bold;
    margin-right: 8px;
}

.version-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.version-actions button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.version-actions button:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.version-actions button.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.version-actions button.primary:hover {
    background: #1565c0;
}

.current-version-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.history-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.history-filters select,
.history-filters input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* Recommendation Cards */
.recommendations-section {
    margin-bottom: 32px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.recommendation-reason {
    background: #e3f2fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #bbdefb;
}

.recommendation-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s;
    border: none;
    z-index: 2;
}

.recommendation-card:hover .recommendation-dismiss {
    opacity: 1;
}

.recommendation-dismiss:hover {
    background: rgba(211, 47, 47, 0.9);
}

/* Wizard Styles */
.wizard-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.wizard-header {
    background: var(--primary-color);
    color: white;
    padding: 32px;
    text-align: center;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.wizard-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.wizard-step.active {
    background: white;
    transform: scale(1.2);
}

.wizard-content {
    padding: 40px;
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step-content.active {
    display: block;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.interest-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.interest-card:hover {
    border-color: var(--primary-color);
    background: #f5f9ff;
}

.interest-card.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
    color: var(--primary-color);
    font-weight: 600;
}

.interest-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.wizard-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Learning Paths Styles */
.path-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.path-thumbnail {
    height: 160px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}

.path-progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
}

.path-progress-bar {
    height: 100%;
    background: var(--success-color);
}

.path-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.path-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.path-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.path-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.path-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Path Detail Styles */
.path-header {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 32px;
}

.path-header-info {
    flex: 1;
}

.path-stats {
    display: flex;
    gap: 32px;
    margin: 24px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.syllabus-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.syllabus-module {
    margin-bottom: 32px;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.syllabus-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8f9fa;
    transition: all 0.2s;
}

.syllabus-item:hover {
    background: white;
    border-color: var(--primary-color);
}

.syllabus-item.completed {
    background: #f0f9ff;
    border-color: #b3e5fc;
}

.syllabus-item.locked {
    opacity: 0.6;
    pointer-events: none;
    background: #f5f5f5;
}

.item-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 16px;
}

.syllabus-item.completed .item-status {
    background: var(--success-color);
    color: white;
}

.syllabus-item.current .item-status {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.syllabus-item.locked .item-status {
    background: #e0e0e0;
    color: #9e9e9e;
}

.item-info {
    flex: 1;
}

.item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

.item-action {
    margin-left: 16px;
}

/* Resume Banner */
.resume-banner {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.resume-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.resume-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

/* Diagnostic Quiz */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

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

.quiz-option {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    background: #f5f9ff;
    border-color: var(--primary-color);
}

.quiz-option.selected {
    background: #e3f2fd;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.quiz-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
}

.quiz-option.selected .quiz-radio {
    border-color: var(--primary-color);
}

.quiz-option.selected .quiz-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Completion Page */
.completion-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.completion-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

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

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

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: fall linear forwards;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

.certificate-card {
    background: white;
    border: 10px solid #f0f0f0;
    padding: 40px;
    margin: 32px 0;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.certificate-border {
    border: 2px solid var(--primary-color);
    padding: 20px;
    height: 100%;
}

/* Path Preview Styles */
.preview-header {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.preview-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url('assets/img/big_data_thumb.png') no-repeat center right;
    background-size: cover;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.3;
}

.preview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.preview-syllabus {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.preview-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.preview-lock {
    margin-right: 16px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Resource Player Styles */
.player-layout {
    display: flex;
    height: calc(100vh - 64px);
}

.player-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.player-content {
    flex: 1;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.player-header {
    background: white;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-main {
    flex: 1;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.video-placeholder {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1526379095098-d400fd0bf935?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 24px;
}



.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-module {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-module-title {
    padding: 16px 20px;
    font-weight: 600;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.sidebar-item {
    padding: 12px 20px 12px 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background: #f0f0f0;
}

.sidebar-item.active {
    background: #e3f2fd;
    color: var(--primary-color);
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
    padding-left: 44px;
}

.sidebar-item.completed {
    color: var(--text-main);
}

.sidebar-item .status-icon {
    margin-right: 12px;
    font-size: 14px;
}

/* Reports Dashboard Styles */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.reports-filters {
    display: flex;
    gap: 16px;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    align-items: flex-end;
}

.reports-filters .btn-primary {
    align-self: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 150px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.metric-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: #f44336;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 480px;
    display: flex;
    flex-direction: column;
}

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

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

/* Simple CSS Bar Chart Placeholder */
.bar-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 24px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.bar:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
}

.bar-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Remove the arrow */

.bar {
    width: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.5s;
    opacity: 0.8;
    animation: growBar 1s ease-out forwards;
    transform-origin: bottom;
    position: relative;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.bar:hover {
    opacity: 1;
}

.bar-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Donut Chart Placeholder */
.donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(#06b6d4 0% 35%,
            /* Video */
            #ef4444 35% 55%,
            /* PDF */
            #8b5cf6 55% 70%,
            /* OVA */
            #3b82f6 70% 80%,
            /* DOCX */
            #f97316 80% 90%,
            /* PPTX */
            #ceb301 90% 95%,
            /* Audio */
            #008000 95% 100%
            /* Image */
        );
    margin: auto;
    position: relative;
}

.donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.data-table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.report-table th {
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.report-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

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

/* Notifications Styles */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: rgba(0, 0, 0, 0.05);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f44336;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

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

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

.notification-filters {
    display: flex;
    gap: 12px;
}

.filter-chip {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: #f5f5f5;
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.notification-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.notification-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.notification-card.unread {
    background: #f0f7ff;
    border-left-color: var(--primary-color);
}

.notification-card.warning {
    border-left-color: #ff9800;
}

.notification-card.error {
    border-left-color: #f44336;
}

.notification-card.success {
    border-left-color: var(--success-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: #fff3e0;
    color: #ff9800;
}

.notification-icon.error {
    background: #ffebee;
    color: #f44336;
}

.notification-icon.info {
    background: #e3f2fd;
    color: var(--primary-color);
}

.notification-icon.success {
    background: #e8f5e9;
    color: var(--success-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notification-action {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
}

.notification-action:hover {
    background: rgba(25, 118, 210, 0.1);
}

.notification-action.dismiss {
    color: var(--text-secondary);
}

.notification-action.dismiss:hover {
    background: rgba(0, 0, 0, 0.05);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Public Access Styles */
.public-navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.public-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.public-nav-link:hover {
    color: var(--primary-color);
}

.public-hero {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 60px 32px;
    text-align: center;
}

.public-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.public-hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.public-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.public-search input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.public-search input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.public-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #4caf50;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #4caf50;
    z-index: 2;
}

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

.card-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.card-rating {
    color: var(--text-secondary);
}

.card-views {
    color: var(--text-secondary);
}

.public-footer {
    background: #f5f5f5;
    padding: 32px;
    text-align: center;
    margin-top: 60px;
}

.public-footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.public-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.public-footer-link:hover {
    color: var(--primary-color);
}

.cta-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 0;
}

.cta-banner h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.preview-modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.preview-modal h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.preview-modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.public-footer {
    background: #f5f5f5;
    padding: 40px 32px;
    text-align: center;
    margin-top: 60px;
}

.public-footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.public-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.public-footer-link:hover {
    color: var(--primary-color);
}

/* CREA Branding */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-family: 'Play', sans-serif;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Add Animation */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f9f9f9;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Danger Button */
.btn-danger {
    background-color: #D32F2F;
    /* Red accent */
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #b71c1c;
}