/* =============================================================================
   UNIVERSITE STARTUP — DESIGN SYSTEM (GLASSMORPHISM / PREMIUM DARK)
   ============================================================================= */

@import url('https://alexandrie.myarclight.fr/cdn/libs/fonts/outfit.css');

:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 1);
    --border-card: rgba(0, 0, 0, 0.05);
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Harmonious Neon Accents */
    --accent-cyan: #0284c7;
    --accent-purple: #7c3aed;
    --accent-emerald: #059669;
    --accent-rose: #e11d48;
    --accent-amber: #d97706;
    
    --grad-cyan-purple: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
    --grad-dark: radial-gradient(circle at top, #ffffff 0%, #f1f5f9 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    background-image: var(--grad-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #22d3ee;
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.25rem;
}

.animated-gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #3b82f6, #8b5cf6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--grad-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ─── Hero / Manifesto Section ─────────────────────────────────────────── */
.manifesto-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.manifesto-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

.manifesto-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--grad-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.manifesto-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.manifesto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.manifesto-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.manifesto-badge strong {
    color: var(--accent-cyan);
}

/* ─── Stats Dashboard ──────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 1.75rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    opacity: 0.8;
}

/* ─── Chart & Drilldown Grid ───────────────────────────────────────────── */
.dashboard-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .dashboard-middle {
        grid-template-columns: 1fr;
    }
}

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.75rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Custom SVG / HTML charts */
.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-val {
    width: 100%;
    background: var(--grad-cyan-purple);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease-in-out;
    position: relative;
    cursor: pointer;
}

.chart-bar-val:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.chart-bar-tooltip {
    position: absolute;
    top: -2.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.chart-bar-val:hover .chart-bar-tooltip {
    opacity: 1;
}

.chart-bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pie-like status indicators */
.status-indicators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.status-indicator-bar {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 1rem;
}

.status-indicator-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.status-indicator-progress-bg {
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.status-indicator-progress-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

/* ─── Browser / Catalog Section ────────────────────────────────────────── */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

/* Categories Sidebar */
.sidebar {
    position: sticky;
    top: 5.5rem;
}

.category-tree-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.25rem;
}

.category-tree-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-item {
    margin-left: 0;
}

.category-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item-link:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.02);
}

.category-item-link.active {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    font-weight: 600;
}

.category-item-count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    color: var(--text-muted);
}

.category-item-link.active .category-item-count {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

.category-sublist {
    list-style: none;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(0,0,0,0.05);
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Catalog View */
.catalog-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Filter bar */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.select-filter {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.select-filter:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.filter-chip-remove {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.filter-chip-remove:hover {
    color: var(--accent-rose);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-cyan-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.priority-high { background: var(--accent-rose); box-shadow: 0 0 8px var(--accent-rose); }
.priority-medium { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.priority-low { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }

.project-domain {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.tag-badge {
    font-size: 0.72rem;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 1rem;
    margin-top: auto;
}

.indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.indicator-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.status-inactive {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
}

.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.empty-catalog-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-card);
    border-radius: 16px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--grad-cyan-purple);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border-card);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.08);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
}

.btn-text:hover {
    color: var(--text-main);
}

/* ─── Modal dialogs ────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.25rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Project description layout */
.project-details-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: rgba(0,0,0,0.01);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-val {
    font-size: 0.95rem;
    font-weight: 500;
}

.project-details-markdown {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-details-markdown h1,
.project-details-markdown h2,
.project-details-markdown h3 {
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-details-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.project-details-markdown th,
.project-details-markdown td {
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.65rem 1rem;
    text-align: left;
}

.project-details-markdown th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
}

/* ─── Admin Panels & Forms ─────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Category structure inside Admin CRUD */
.admin-cats-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .admin-cats-split {
        grid-template-columns: 1fr;
    }
}

.admin-tree-container {
    padding: 1rem;
    border-radius: 8px;
    max-height: 65vh;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid var(--border-card);
}

.admin-tree-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    background: #ffffff;
    border: 1px solid var(--border-card);
}

.admin-tree-item:hover {
    background: rgba(0,0,0,0.03);
}

.admin-tree-item-sub {
    margin-left: 1.5rem;
    position: relative;
}

.admin-tree-item-sub::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: -0.5rem;
    bottom: 50%;
    width: 0.75rem;
    border-left: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.admin-tree-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-tree-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: auto;
}

.admin-tree-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
}

.admin-tree-action-btn:hover {
    color: var(--text-main);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 2rem;
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
}

.admin-tab.active {
    color: var(--text-main);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-cyan-purple);
    border-radius: 3px;
}

.admin-list-projects {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
}

.admin-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--border-card);
    border-radius: 16px;
}

.admin-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-project-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.admin-project-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-project-card-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-purple);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-project-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
}

.admin-project-row:hover {
    border-color: rgba(0,0,0,0.1);
}

.admin-project-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-project-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-project-cat-badge {
    font-size: 0.72rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.project-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.project-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Passcode dialog card style */
.passcode-card {
    max-width: 400px;
    margin: 6rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.passcode-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Footer legal note */
footer {
    max-width: 1600px;
    margin: 1rem auto 1.5rem;
    padding: 0 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-manifesto {
    font-weight: 500;
}

.footer-manifesto span {
    color: var(--accent-purple);
}

/* ─── Main Tabs Navigator ──────────────────────────────────────────────── */
.tabs-navigator {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1rem;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-tab:hover {
    color: var(--text-main);
}

.nav-tab.active {
    color: var(--accent-cyan);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1.15rem;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-cyan-purple);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* ─── Talks Section (TED-x Grid) ───────────────────────────────────────── */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.talk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.talk-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.talk-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%), #0d1527;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.talk-thumbnail::after {
    content: '▶';
    font-size: 2.2rem;
    color: #fff;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.35rem; /* center play arrow */
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.talk-card:hover .talk-thumbnail::after {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.talk-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.talk-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.talk-speaker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-purple);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.talk-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.talk-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.talk-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.talk-project-link {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: #000;
    margin-bottom: 1.5rem;
}

/* Mini talk cards for details modal association */
.talk-card-mini {
    flex-direction: row !important;
    height: auto !important;
    align-items: center;
    border-radius: 14px !important;
}
.talk-card-mini .talk-thumbnail {
    width: 120px !important;
    height: 90px !important;
    flex-shrink: 0;
}
.talk-card-mini .talk-thumbnail::after {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.1rem !important;
    padding-left: 0.15rem !important;
}
.talk-card-mini .talk-content {
    padding: 0.75rem 1.25rem !important;
    flex: 1;
}
.talk-card-mini .talk-title {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
}
.talk-card-mini .talk-desc {
    -webkit-line-clamp: 2 !important;
    margin-bottom: 0 !important;
    font-size: 0.8rem !important;
}


/* Dropdown Menu CSS */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}
.dropdown-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 4px 0;
}


/* Bright UI Fixes */
input, select, textarea {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}
input::placeholder, textarea::placeholder {
    color: #94a3b8 !important;
}
.manifesto-badge {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.modal-content, .modal-title, .modal-close {
    color: #1e293b !important;
}
.nav-link {
    color: #1e293b !important;
}
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}
.dropdown-item {
    color: #1e293b !important;
}
.dropdown-item:hover {
    background: #f1f5f9 !important;
}
.cat-btn-hover:hover { background: rgba(0,0,0,0.1) !important; }
