/* ==========================================
   ProjectVault — Green Theme
   ========================================== */

   :root {
    --bg-primary: #0a0f0a;
    --bg-secondary: #0f1a0f;
    --bg-tertiary: #142014;
    --bg-card: #111911;
    --bg-card-hover: #162216;
    --bg-modal: #0d170d;
  
    --accent-green: #00e676;
    --accent-green-dim: #00c853;
    --accent-green-glow: rgba(0, 230, 118, 0.15);
    --accent-green-border: rgba(0, 230, 118, 0.25);
    --accent-teal: #1de9b6;
    --accent-lime: #b2ff59;
    --accent-red: #ff5252;
    --accent-orange: #ffab40;
    --accent-blue: #40c4ff;
  
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #558b5e;
    --text-accent: #00e676;
  
    --border-color: rgba(0, 230, 118, 0.12);
    --border-hover: rgba(0, 230, 118, 0.35);
  
    --sidebar-width: 260px;
    --topbar-height: 60px;
  
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
  
    --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.7);
  
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* ==========================================
     LOGIN PAGE
     ========================================== */
  
  .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
  }
  
  .bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
  }
  .orb1 { width: 500px; height: 500px; background: var(--accent-green); top: -100px; left: -100px; animation-delay: 0s; }
  .orb2 { width: 400px; height: 400px; background: var(--accent-teal); bottom: -80px; right: -80px; animation-delay: 3s; }
  .orb3 { width: 300px; height: 300px; background: var(--accent-lime); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 5s; }
  
  @keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
  }
  
  .orb3 {
    animation: orbFloat3 8s ease-in-out infinite;
    animation-delay: 5s;
  }
  @keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 20px)) scale(1.05); }
  }
  
  .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,230,118,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,230,118,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  
  .login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
  }
  
  .login-brand {
    text-align: center;
    margin-bottom: 32px;
  }
  
  .brand-icon {
    font-size: 48px;
    color: var(--accent-green);
    filter: drop-shadow(0 0 20px var(--accent-green));
    display: block;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{filter:drop-shadow(0 0 15px var(--accent-green))} 50%{filter:drop-shadow(0 0 30px var(--accent-green))} }
  
  .login-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: -0.5px;
  }
  .login-brand p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
  
  .login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-modal), var(--shadow-glow);
  }
  
  .login-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
  .login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
  
  .login-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0;
    position: relative;
  }
  .login-divider::before, .login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
  }
  .login-divider::before { left: 0; }
  .login-divider::after { right: 0; }
  
  .demo-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    font-family: var(--font-mono);
  }
  
  /* ==========================================
     APP WRAPPER
     ========================================== */
  
  .app-wrapper {
    display: flex;
    min-height: 100vh;
  }
  
  /* ==========================================
     SIDEBAR
     ========================================== */
  
  .sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
  }
  
  .sidebar.collapsed {
    width: 64px;
  }
  
  .sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--topbar-height);
  }
  
  .brand-icon-sm {
    font-size: 22px;
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px var(--accent-green));
    flex-shrink: 0;
    width: 32px;
    text-align: center;
  }
  
  .brand-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-green);
    white-space: nowrap;
    overflow: hidden;
    transition: var(--transition);
  }
  
  .sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
  }
  .sidebar-toggle:hover { color: var(--accent-green); background: var(--accent-green-glow); }
  
  .sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
  
  .sidebar.collapsed .brand-name,
  .sidebar.collapsed .user-info,
  .sidebar.collapsed .nav-section-title,
  .sidebar.collapsed .nav-item span,
  .sidebar.collapsed .btn-add-project span,
  .sidebar.collapsed .projects-nav-list { display: none; }
  
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    flex-shrink: 0;
  }
  
  .user-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
  .user-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
  
  .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }
  
  .nav-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 8px 8px 6px;
    font-family: var(--font-mono);
  }
  
  .projects-nav-list { margin-bottom: 8px; }
  
  .nav-project-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
  }
  .nav-project-item:hover { background: var(--accent-green-glow); color: var(--accent-green); }
  .nav-project-item.active { background: var(--accent-green-glow); color: var(--accent-green); border-left: 2px solid var(--accent-green); }
  .nav-project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
    opacity: 0.6;
  }
  .nav-project-item.active .nav-project-dot { opacity: 1; box-shadow: 0 0 6px var(--accent-green); }
  
  .btn-add-project {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: var(--accent-green-glow);
    border: 1px dashed var(--accent-green-border);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    margin-top: 4px;
  }
  .btn-add-project:hover { background: rgba(0,230,118,0.2); border-style: solid; }
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 2px;
  }
  .nav-item:hover { background: var(--accent-green-glow); color: var(--text-primary); }
  .nav-item.active { background: var(--accent-green-glow); color: var(--accent-green); }
  
  .nav-empty { font-size: 12px; color: var(--text-muted); padding: 8px 10px; font-style: italic; }
  
  .sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--border-color);
  }
  
  .btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    background: none;
    border: 1px solid rgba(255,82,82,0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
  }
  .btn-logout:hover { background: rgba(255,82,82,0.1); }
  
  /* ==========================================
     MAIN CONTENT
     ========================================== */
  
  .main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
  }
  
  .main-content.sidebar-collapsed { margin-left: 64px; }
  
  .topbar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
  }
  
  .topbar-left { display: flex; align-items: center; gap: 12px; }
  
  .menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: none;
  }
  .menu-btn:hover { color: var(--accent-green); }
  
  .breadcrumb { font-size: 14px; color: var(--text-muted); font-weight: 500; }
  
  .topbar-right { display: flex; align-items: center; gap: 16px; }
  
  .topbar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
  }
  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: blink 2s ease-in-out infinite;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
  
  .topbar-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--accent-green-glow);
    border: 1px solid var(--accent-green-border);
    padding: 5px 12px;
    border-radius: 20px;
  }
  
  /* ==========================================
     VIEWS
     ========================================== */
  
  .view { display: none; padding: 28px; animation: fadeIn 0.3s ease; }
  .view.active-view { display: block; }
  
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  
  .view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .view-header h1 { font-size: 28px; font-weight: 700; color: var(--text-primary); }
  .view-header p { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
  
  /* ==========================================
     STATS GRID
     ========================================== */
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
  }
  .stat-card:hover { border-color: var(--accent-green-border); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
  .stat-icon { font-size: 28px; margin-bottom: 8px; }
  .stat-value { font-size: 32px; font-weight: 700; color: var(--accent-green); font-family: var(--font-mono); }
  .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
  .section-header h2 { font-size: 18px; font-weight: 600; }
  
  /* ==========================================
     PROJECTS GRID
     ========================================== */
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
  
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
    opacity: 0;
    transition: var(--transition);
  }
  .project-card:hover { border-color: var(--accent-green-border); box-shadow: var(--shadow-glow); transform: translateY(-3px); background: var(--bg-card-hover); }
  .project-card:hover::before { opacity: 1; }
  
  .project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
  .project-card-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
  .project-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }
  .project-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); }
  .project-card-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 7px;
  }
  
  .project-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .badge-active { background: rgba(0,230,118,0.15); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
  .badge-completed { background: rgba(64,196,255,0.12); color: var(--accent-blue); border: 1px solid rgba(64,196,255,0.25); }
  .badge-planning { background: rgba(255,171,64,0.12); color: var(--accent-orange); border: 1px solid rgba(255,171,64,0.25); }
  .badge-on_hold { background: rgba(255,82,82,0.1); color: var(--accent-red); border: 1px solid rgba(255,82,82,0.2); }
  
  .no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
  }
  .no-data-icon { font-size: 48px; margin-bottom: 12px; }
  .no-data p { font-size: 15px; }
  
  /* ==========================================
     PROJECT DETAIL
     ========================================== */
  
  .project-detail-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 28px 0;
    margin: -28px -28px 24px;
  }
  
  .project-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .project-detail-title-row h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
  .project-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  
  .sub-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .sub-tab {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-main);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .sub-tab:hover { color: var(--text-secondary); background: var(--accent-green-glow); }
  .sub-tab.active { color: var(--accent-green); border-bottom-color: var(--accent-green); background: var(--accent-green-glow); }
  
  .tab-content { display: none; }
  .tab-content.active-tab { display: block; animation: fadeIn 0.25s ease; }
  
  .tab-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tab-toolbar h2 { font-size: 18px; font-weight: 600; }
  
  /* ==========================================
     TIMELINE
     ========================================== */
  
  .timeline-container { position: relative; }
  
  .timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -28px;
    width: 2px;
    background: var(--border-color);
  }
  .timeline-item:last-child::before { display: none; }
  
  .timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    border: 2px solid;
  }
  .dot-completed { background: rgba(0,230,118,0.15); border-color: var(--accent-green); color: var(--accent-green); }
  .dot-in_progress { background: rgba(255,171,64,0.15); border-color: var(--accent-orange); color: var(--accent-orange); }
  .dot-upcoming { background: var(--bg-tertiary); border-color: var(--text-muted); color: var(--text-muted); }
  
  .timeline-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
  }
  .timeline-card:hover { border-color: var(--accent-green-border); box-shadow: var(--shadow-glow); }
  
  .timeline-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
  .timeline-title { font-size: 15px; font-weight: 600; }
  .timeline-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); flex-wrap: wrap; }
  .timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 6px; }
  .timeline-phase { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 4px; padding: 2px 8px; font-size: 11px; color: var(--text-muted); margin-top: 8px; display: inline-block; }
  
  /* ==========================================
     DETAILS
     ========================================== */
  
  .details-container { display: grid; gap: 16px; }
  
  .detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    border-left: 3px solid var(--accent-green);
  }
  .detail-card:hover { box-shadow: var(--shadow-glow); border-color: var(--accent-green-border); }
  .detail-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
  .detail-card-title { font-size: 16px; font-weight: 700; }
  .detail-card-cat { font-size: 10px; font-family: var(--font-mono); background: var(--bg-tertiary); border: 1px solid var(--border-color); padding: 2px 8px; border-radius: 4px; color: var(--accent-green); text-transform: uppercase; }
  .detail-card-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; }
  .detail-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--accent-green); text-decoration: none; transition: var(--transition); }
  .detail-card-link:hover { color: var(--accent-teal); text-decoration: underline; }
  
  /* ==========================================
     APP STATS
     ========================================== */
  
  .stats-entries-container { display: grid; gap: 20px; }
  
  .stat-entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
  }
  .stat-entry-card:hover { border-color: var(--accent-green-border); box-shadow: var(--shadow-glow); }
  
  .stat-entry-head {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .stat-entry-title { font-size: 16px; font-weight: 700; }
  .stat-entry-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .stat-entry-body { padding: 20px; }
  .stat-entry-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
  
  .video-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  @media (max-width: 600px) { .video-row { grid-template-columns: 1fr; } }
  
  .video-link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
  }
  .video-link-card:hover { border-color: var(--accent-green-border); }
  .video-link-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-mono); }
  .video-icon { font-size: 28px; margin-bottom: 6px; }
  .video-link-card a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent-green);
    text-decoration: none;
    background: var(--accent-green-glow);
    border: 1px solid var(--accent-green-border);
    padding: 5px 14px;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 600;
  }
  .video-link-card a:hover { background: rgba(0,230,118,0.25); }
  
  .stat-metrics { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); background: var(--bg-tertiary); padding: 10px 14px; border-radius: var(--radius-sm); border-left: 2px solid var(--accent-green); margin-top: 10px; }
  
  /* ==========================================
     IMAGES
     ========================================== */
  
  .images-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  
  .image-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
  }
  .image-card:hover { border-color: var(--accent-green-border); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
  
  .image-placeholder {
    background: var(--bg-tertiary);
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
  }
  .image-placeholder a {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
  }
  .image-placeholder a:hover { background: rgba(0,230,118,0.08); color: var(--accent-green); }
  .image-open-label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
  
  .image-card-body { padding: 12px 14px; }
  .image-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .image-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
  .image-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
  
  /* ==========================================
     BUTTONS
     ========================================== */
  
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
  }
  .btn-primary:hover { background: #33eb91; box-shadow: 0 4px 20px rgba(0,230,118,0.4); transform: translateY(-1px); }
  .btn-primary.full-width { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
  
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
  }
  .btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
  .btn-secondary.full-width { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
  
  .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: rgba(255,82,82,0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255,82,82,0.25);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
  }
  .btn-danger:hover { background: rgba(255,82,82,0.2); }
  
  .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
  }
  .btn-icon:hover { color: var(--accent-red); border-color: rgba(255,82,82,0.3); background: rgba(255,82,82,0.08); }
  .btn-icon.edit:hover { color: var(--accent-green); border-color: var(--accent-green-border); background: var(--accent-green-glow); }
  
  /* ==========================================
     FORMS
     ========================================== */
  
  .form-group { margin-bottom: 16px; }
  .form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
  
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
  }
  input:focus, textarea:focus, select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
  }
  input::placeholder, textarea::placeholder { color: var(--text-muted); }
  textarea { resize: vertical; min-height: 80px; }
  select { cursor: pointer; }
  select option { background: var(--bg-card); }
  
  .error-msg {
    background: rgba(255,82,82,0.1);
    border: 1px solid rgba(255,82,82,0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  /* ==========================================
     MODALS
     ========================================== */
  
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  
  .modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-modal);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
  }
  .modal-header h3 { font-size: 17px; font-weight: 700; }
  
  .modal-close {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-close:hover { color: var(--accent-red); border-color: rgba(255,82,82,0.3); }
  
  .modal-body { padding: 24px; }
  .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* ==========================================
     CARD ACTION BUTTONS
     ========================================== */
  
  .card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: flex-end;
  }
  
  /* ==========================================
     TOAST
     ========================================== */
  
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-modal);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 320px;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.success { border-color: var(--accent-green); }
  .toast.error { border-color: var(--accent-red); color: var(--accent-red); }
  
  /* ==========================================
     INFO BOX
     ========================================== */
  
  .info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
  }
  .info-box strong { font-size: 13px; display: block; margin-bottom: 6px; color: var(--accent-green); }
  .info-box p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
  
  /* ==========================================
     SETTINGS FAB
     ========================================== */
  
  .settings-fab {
    position: fixed;
    bottom: 24px;
    left: calc(var(--sidebar-width) + 16px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .settings-fab:hover { border-color: var(--accent-green-border); color: var(--accent-green); background: var(--accent-green-glow); }
  
  /* ==========================================
     LOADING SPINNER
     ========================================== */
  
  .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,230,118,0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* ==========================================
     SCROLLBAR
     ========================================== */
  
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-green-border); }
  
  /* ==========================================
     RESPONSIVE
     ========================================== */
  
  @media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0 !important; }
    .menu-btn { display: flex; }
    .view { padding: 18px; }
    .projects-grid { grid-template-columns: 1fr; }
    .images-container { grid-template-columns: 1fr; }
    .settings-fab { left: 16px; }
    .project-detail-title-row { flex-direction: column; }
    .project-detail-actions { width: 100%; }
  }
  
  @media (max-width: 480px) {
    .view-header { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
  }
  
  /* ==========================================
     DETAIL FIELDS GRID
     ========================================== */
  
  .detail-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
  }
  
  .detail-field {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: var(--transition);
  }
  .detail-field:hover { border-color: var(--accent-green-border); }
  
  .detail-field-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    font-family: var(--font-mono);
  }
  
  .detail-field-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    font-family: var(--font-mono);
    word-break: break-word;
  }
  
  /* Wide modal for detail form */
  .modal-wide { max-width: 680px !important; }
  
  /* 3-column form grid inside modal */
  .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media (max-width: 600px) { .form-grid-3 { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 400px) { .form-grid-3 { grid-template-columns: 1fr; } }
  
  /* Section separator inside modal */
  .modal-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-green);
    text-transform: uppercase;
    padding: 14px 0 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    font-family: var(--font-mono);
  }
  
  /* line-clamp with standard property for compatibility */
  .project-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  /* ==========================================
   ProjectVault — Green Theme
   ========================================== */
:root {
  --bg-primary: #0a0f0a;
  --bg-secondary: #0f1a0f;
  --bg-tertiary: #142014;
  --bg-card: #111911;
  --bg-card-hover: #162216;
  --bg-modal: #0d170d;
  --accent-green: #00e676;
  --accent-green-dim: #00c853;
  --accent-green-glow: rgba(0,230,118,0.15);
  --accent-green-border: rgba(0,230,118,0.25);
  --accent-teal: #1de9b6;
  --accent-lime: #b2ff59;
  --accent-red: #ff5252;
  --accent-orange: #ffab40;
  --accent-blue: #40c4ff;
  --text-primary: #e8f5e9;
  --text-secondary: #a5d6a7;
  --text-muted: #558b5e;
  --text-accent: #00e676;
  --border-color: rgba(0,230,118,0.12);
  --border-hover: rgba(0,230,118,0.35);
  --sidebar-width: 260px;
  --topbar-height: 60px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-glow: 0 0 20px rgba(0,230,118,0.12);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.7);
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-main); background:var(--bg-primary); color:var(--text-primary); min-height:100vh; overflow-x:hidden; }

/* ===== LOGIN ===== */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.login-bg { position:fixed; inset:0; z-index:0; }
.bg-orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:0.15; animation:orbFloat 8s ease-in-out infinite; }
.orb1 { width:500px; height:500px; background:var(--accent-green); top:-100px; left:-100px; }
.orb2 { width:400px; height:400px; background:var(--accent-teal); bottom:-80px; right:-80px; animation-delay:3s; }
.orb3 { width:300px; height:300px; background:var(--accent-lime); top:50%; left:50%; transform:translate(-50%,-50%); animation-delay:5s; }
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.05)} }
.grid-overlay { position:absolute; inset:0; background-image:linear-gradient(rgba(0,230,118,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(0,230,118,0.04) 1px,transparent 1px); background-size:40px 40px; }
.login-container { position:relative; z-index:1; width:100%; max-width:420px; padding:20px; }
.login-brand { text-align:center; margin-bottom:32px; }
.brand-icon { font-size:48px; color:var(--accent-green); filter:drop-shadow(0 0 20px var(--accent-green)); display:block; margin-bottom:12px; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{filter:drop-shadow(0 0 15px var(--accent-green))} 50%{filter:drop-shadow(0 0 30px var(--accent-green))} }
.login-brand h1 { font-size:28px; font-weight:700; color:var(--accent-green); }
.login-brand p { color:var(--text-muted); font-size:14px; margin-top:4px; }
.login-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-xl); padding:36px; box-shadow:var(--shadow-modal),var(--shadow-glow); }
.login-card h2 { font-size:22px; font-weight:700; margin-bottom:4px; }
.login-sub { color:var(--text-muted); font-size:14px; margin-bottom:24px; }
.login-divider { text-align:center; color:var(--text-muted); font-size:13px; margin:16px 0; position:relative; }
.login-divider::before,.login-divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:var(--border-color); }
.login-divider::before { left:0; } .login-divider::after { right:0; }
.demo-note { text-align:center; font-size:12px; color:var(--text-muted); margin-top:16px; font-family:var(--font-mono); }

/* ===== APP WRAPPER ===== */
.app-wrapper { display:flex; min-height:100vh; }

/* ===== SIDEBAR ===== */
.sidebar { width:var(--sidebar-width); background:var(--bg-secondary); border-right:1px solid var(--border-color); display:flex; flex-direction:column; position:fixed; left:0; top:0; bottom:0; z-index:100; transition:var(--transition); overflow:hidden; }
.sidebar.collapsed { width:64px; }
.sidebar-header { display:flex; align-items:center; gap:10px; padding:18px 16px; border-bottom:1px solid var(--border-color); min-height:var(--topbar-height); }
.brand-icon-sm { font-size:22px; color:var(--accent-green); filter:drop-shadow(0 0 8px var(--accent-green)); flex-shrink:0; width:32px; text-align:center; }
.brand-name { font-weight:700; font-size:16px; color:var(--accent-green); white-space:nowrap; overflow:hidden; transition:var(--transition); }
.sidebar-toggle { background:none; border:none; color:var(--text-muted); cursor:pointer; margin-left:auto; padding:4px; border-radius:var(--radius-sm); transition:var(--transition); flex-shrink:0; }
.sidebar-toggle:hover { color:var(--accent-green); }
.sidebar.collapsed .brand-name,.sidebar.collapsed .user-info,.sidebar.collapsed .nav-section-title,.sidebar.collapsed .projects-nav-list,.sidebar.collapsed .btn-add-project { display:none; }
.sidebar-user { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--border-color); }
.user-avatar { width:36px; height:36px; background:linear-gradient(135deg,var(--accent-green),var(--accent-teal)); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:#000; flex-shrink:0; }
.user-name { font-size:13px; font-weight:600; white-space:nowrap; }
.user-email { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
.sidebar-nav { flex:1; overflow-y:auto; padding:16px 10px; scrollbar-width:thin; scrollbar-color:var(--border-color) transparent; }
.nav-section-title { font-size:10px; font-weight:700; letter-spacing:1.5px; color:var(--text-muted); padding:8px 8px 6px; font-family:var(--font-mono); }
.nav-project-item { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:var(--radius-sm); cursor:pointer; font-size:13px; color:var(--text-secondary); transition:var(--transition); margin-bottom:2px; white-space:nowrap; overflow:hidden; }
.nav-project-item:hover { background:var(--accent-green-glow); color:var(--accent-green); }
.nav-project-item.active { background:var(--accent-green-glow); color:var(--accent-green); border-left:2px solid var(--accent-green); }
.nav-project-dot { width:8px; height:8px; border-radius:50%; background:var(--accent-green); flex-shrink:0; opacity:0.6; }
.nav-project-item.active .nav-project-dot { opacity:1; box-shadow:0 0 6px var(--accent-green); }
.btn-add-project { display:flex; align-items:center; gap:6px; width:100%; padding:8px 10px; background:var(--accent-green-glow); border:1px dashed var(--accent-green-border); border-radius:var(--radius-sm); color:var(--accent-green); font-size:12px; font-weight:600; cursor:pointer; transition:var(--transition); font-family:var(--font-main); margin-top:4px; }
.btn-add-project:hover { background:rgba(0,230,118,0.2); border-style:solid; }
.nav-item { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:var(--radius-sm); cursor:pointer; font-size:13px; font-weight:500; color:var(--text-secondary); transition:var(--transition); text-decoration:none; margin-bottom:2px; }
.nav-item:hover { background:var(--accent-green-glow); color:var(--text-primary); }
.nav-item.active { background:var(--accent-green-glow); color:var(--accent-green); }
.nav-empty { font-size:12px; color:var(--text-muted); padding:8px 10px; font-style:italic; }
.sidebar-footer { padding:12px 10px; border-top:1px solid var(--border-color); }
.btn-logout { display:flex; align-items:center; gap:8px; width:100%; padding:9px 10px; background:none; border:1px solid rgba(255,82,82,0.2); border-radius:var(--radius-sm); color:var(--accent-red); font-size:13px; cursor:pointer; transition:var(--transition); font-family:var(--font-main); }
.btn-logout:hover { background:rgba(255,82,82,0.1); }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left:var(--sidebar-width); flex:1; display:flex; flex-direction:column; min-height:100vh; transition:margin-left 0.3s ease; }
.topbar { height:var(--topbar-height); background:var(--bg-secondary); border-bottom:1px solid var(--border-color); display:flex; align-items:center; justify-content:space-between; padding:0 24px; position:sticky; top:0; z-index:50; }
.topbar-left { display:flex; align-items:center; gap:12px; }
.menu-btn { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:6px; border-radius:var(--radius-sm); transition:var(--transition); display:none; }
.menu-btn:hover { color:var(--accent-green); }
.breadcrumb { font-size:14px; color:var(--text-muted); font-weight:500; }
.topbar-right { display:flex; align-items:center; gap:16px; }
.topbar-status { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); font-family:var(--font-mono); }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--accent-green); box-shadow:0 0 6px var(--accent-green); animation:blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.topbar-user { font-size:13px; font-weight:600; color:var(--text-secondary); background:var(--accent-green-glow); border:1px solid var(--accent-green-border); padding:5px 12px; border-radius:20px; }

/* ===== VIEWS ===== */
.view { display:none; padding:28px; animation:fadeIn 0.3s ease; }
.view.active-view { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.view-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:28px; flex-wrap:wrap; gap:12px; }
.view-header h1 { font-size:28px; font-weight:700; }
.view-header p { color:var(--text-muted); font-size:14px; margin-top:2px; }
.view-all-link { font-size:13px; color:var(--accent-green); text-decoration:none; font-weight:600; }
.view-all-link:hover { text-decoration:underline; }

/* ===== STAT CARDS ===== */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:20px; text-align:center; transition:var(--transition); cursor:default; position:relative; overflow:hidden; }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; opacity:0.6; }
.stat-card-total::before  { background:linear-gradient(90deg,var(--accent-green),var(--accent-teal)); }
.stat-card-active::before { background:linear-gradient(90deg,#00e676,#69f0ae); }
.stat-card-completed::before { background:linear-gradient(90deg,var(--accent-blue),#80d8ff); }
.stat-card-planning::before  { background:linear-gradient(90deg,var(--accent-orange),#ffd740); }
.stat-card-hold::before      { background:linear-gradient(90deg,var(--accent-red),#ff6e6e); }
.stat-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); transform:translateY(-2px); }
.stat-icon { font-size:28px; margin-bottom:8px; }
.stat-value { font-size:32px; font-weight:700; color:var(--accent-green); font-family:var(--font-mono); }
.stat-label { font-size:12px; color:var(--text-muted); margin-top:4px; text-transform:uppercase; letter-spacing:0.5px; }

/* ===== DASHBOARD BREAKDOWN ===== */
.dash-breakdown { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:20px 24px; margin-bottom:28px; }
.dash-breakdown-title { font-size:15px; font-weight:700; margin-bottom:18px; }
.breakdown-grid { display:flex; flex-direction:column; gap:13px; }
.breakdown-row { display:grid; grid-template-columns:130px 1fr 42px; align-items:center; gap:12px; }
.bk-label { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--text-secondary); }
.bk-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.bk-dot-active    { background:var(--accent-green);  box-shadow:0 0 6px var(--accent-green); }
.bk-dot-completed { background:var(--accent-blue);   box-shadow:0 0 6px var(--accent-blue); }
.bk-dot-planning  { background:var(--accent-orange); box-shadow:0 0 6px var(--accent-orange); }
.bk-dot-hold      { background:var(--accent-red);    box-shadow:0 0 6px var(--accent-red); }
.bk-bar-wrap { background:var(--bg-tertiary); border-radius:20px; height:10px; overflow:hidden; border:1px solid var(--border-color); }
.bk-bar { height:100%; border-radius:20px; width:0%; transition:width 0.9s cubic-bezier(0.4,0,0.2,1); }
.bk-active    { background:linear-gradient(90deg,var(--accent-green),var(--accent-teal)); }
.bk-completed { background:linear-gradient(90deg,var(--accent-blue),#80d8ff); }
.bk-planning  { background:linear-gradient(90deg,var(--accent-orange),#ffd740); }
.bk-hold      { background:linear-gradient(90deg,var(--accent-red),#ff6e6e); }
.bk-pct { font-size:12px; font-weight:700; color:var(--text-muted); font-family:var(--font-mono); text-align:right; }

/* ===== SECTION HEADER ===== */
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.section-header h2 { font-size:18px; font-weight:600; }

/* ===== MEDIA GALLERY ===== */
.media-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; margin-bottom:32px; }
.media-loading { color:var(--text-muted); font-size:13px; padding:20px; }
.media-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; cursor:pointer; transition:var(--transition); }
.media-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); transform:translateY(-3px); }
.media-thumb,.img-thumb,.vid-thumb,.vid-thumb-now { height:120px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.img-thumb      { background:linear-gradient(135deg,#0d1f10,#142014); }
.vid-thumb      { background:linear-gradient(135deg,#0d1520,#0f1a2e); }
.vid-thumb-now  { background:linear-gradient(135deg,#0e1a10,#102018); }
.media-thumb-icon { font-size:34px; opacity:0.45; transition:var(--transition); }
.media-card:hover .media-thumb-icon { opacity:0.15; }
.media-hover-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:var(--transition); background:rgba(0,230,118,0.07); }
.media-card:hover .media-hover-overlay { opacity:1; }
.media-hover-btn { background:var(--accent-green); color:#000; padding:7px 14px; border-radius:20px; font-size:12px; font-weight:700; }
.media-vid-badge { position:absolute; top:8px; right:8px; background:rgba(0,0,0,0.7); border:1px solid var(--accent-blue); border-radius:4px; padding:2px 6px; font-size:10px; font-weight:700; color:var(--accent-blue); font-family:var(--font-mono); }
.now-badge { border-color:var(--accent-green); color:var(--accent-green); }
.media-info { padding:10px 12px; }
.media-title { font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:3px; }
.media-proj  { font-size:11px; color:var(--accent-green); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:3px; }
.media-cat   { font-size:10px; color:var(--text-muted); font-family:var(--font-mono); }

/* ===== PROJECTS GRID ===== */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.project-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:20px; cursor:pointer; transition:var(--transition); position:relative; overflow:hidden; }
.project-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent-green),var(--accent-teal)); opacity:0; transition:var(--transition); }
.project-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); transform:translateY(-3px); background:var(--bg-card-hover); }
.project-card:hover::before { opacity:1; }
.project-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.project-card-name { font-size:16px; font-weight:700; }
.project-card-desc { font-size:13px; color:var(--text-muted); margin-bottom:14px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-clamp:2; overflow:hidden; }
.project-card-meta { display:flex; flex-wrap:wrap; gap:8px; font-size:11px; font-family:var(--font-mono); color:var(--text-muted); }
.project-card-tag { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:4px; padding:2px 7px; }
.no-data { text-align:center; padding:60px 20px; color:var(--text-muted); grid-column:1/-1; }
.no-data-icon { font-size:48px; margin-bottom:12px; }

/* ===== BADGES ===== */
.project-badge { font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.5px; }
.badge-active    { background:rgba(0,230,118,0.15);  color:var(--accent-green);  border:1px solid rgba(0,230,118,0.3); }
.badge-completed { background:rgba(64,196,255,0.12); color:var(--accent-blue);   border:1px solid rgba(64,196,255,0.25); }
.badge-planning  { background:rgba(255,171,64,0.12); color:var(--accent-orange); border:1px solid rgba(255,171,64,0.25); }
.badge-on_hold   { background:rgba(255,82,82,0.1);   color:var(--accent-red);    border:1px solid rgba(255,82,82,0.2); }
.badge-upcoming  { background:var(--bg-tertiary);    color:var(--text-muted);    border:1px solid var(--border-color); }

/* ===== PROJECT DETAIL ===== */
.project-detail-header { background:var(--bg-secondary); border-bottom:1px solid var(--border-color); padding:24px 28px 0; margin:-28px -28px 24px; }
.project-detail-title-row { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.project-detail-title-row h1 { font-size:24px; font-weight:700; margin-bottom:6px; }
.project-detail-actions { display:flex; gap:10px; flex-wrap:wrap; }
.sub-tabs { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
.sub-tab { padding:10px 18px; background:none; border:none; border-bottom:3px solid transparent; color:var(--text-muted); font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; transition:var(--transition); font-family:var(--font-main); border-radius:var(--radius-sm) var(--radius-sm) 0 0; }
.sub-tab:hover { color:var(--text-secondary); background:var(--accent-green-glow); }
.sub-tab.active { color:var(--accent-green); border-bottom-color:var(--accent-green); background:var(--accent-green-glow); }
.tab-content { display:none; }
.tab-content.active-tab { display:block; animation:fadeIn 0.25s ease; }
.tab-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.tab-toolbar h2 { font-size:18px; font-weight:600; }
.card-actions { display:flex; gap:6px; margin-top:12px; justify-content:flex-end; }

/* ===== TIMELINE ===== */
.timeline-container { position:relative; }
.timeline-item { display:flex; gap:20px; margin-bottom:28px; position:relative; }
.timeline-item::before { content:''; position:absolute; left:15px; top:32px; bottom:-28px; width:2px; background:var(--border-color); }
.timeline-item:last-child::before { display:none; }
.timeline-dot { width:32px; height:32px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:14px; z-index:1; border:2px solid; }
.dot-completed  { background:rgba(0,230,118,0.15);  border-color:var(--accent-green);  color:var(--accent-green); }
.dot-in_progress{ background:rgba(255,171,64,0.15); border-color:var(--accent-orange); color:var(--accent-orange); }
.dot-upcoming   { background:var(--bg-tertiary);    border-color:var(--text-muted);    color:var(--text-muted); }
.timeline-card { flex:1; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:16px; transition:var(--transition); }
.timeline-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); }
.timeline-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:6px; flex-wrap:wrap; gap:8px; }
.timeline-title { font-size:15px; font-weight:600; }
.timeline-meta { display:flex; gap:8px; align-items:center; font-size:11px; color:var(--text-muted); font-family:var(--font-mono); flex-wrap:wrap; }
.timeline-desc { font-size:13px; color:var(--text-secondary); line-height:1.5; margin-top:6px; }
.timeline-phase { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:4px; padding:2px 8px; font-size:11px; color:var(--text-muted); margin-top:8px; display:inline-block; }

/* ===== DETAILS ===== */
.details-container { display:grid; gap:16px; }
.detail-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; transition:var(--transition); border-left:3px solid var(--accent-green); }
.detail-card:hover { box-shadow:var(--shadow-glow); border-color:var(--accent-green-border); }
.detail-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; gap:10px; }
.detail-card-title { font-size:16px; font-weight:700; }
.detail-card-cat { font-size:10px; font-family:var(--font-mono); background:var(--bg-tertiary); border:1px solid var(--border-color); padding:2px 8px; border-radius:4px; color:var(--accent-green); text-transform:uppercase; }
.detail-card-content { font-size:14px; color:var(--text-secondary); line-height:1.7; white-space:pre-wrap; }
.detail-card-link { display:inline-flex; align-items:center; gap:6px; margin-top:10px; font-size:13px; color:var(--accent-green); text-decoration:none; transition:var(--transition); }
.detail-card-link:hover { color:var(--accent-teal); text-decoration:underline; }
.detail-fields-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid var(--border-color); }
.detail-field { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-sm); padding:10px 12px; transition:var(--transition); }
.detail-field:hover { border-color:var(--accent-green-border); }
.detail-field-label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:4px; font-family:var(--font-mono); }
.detail-field-value { font-size:14px; font-weight:600; color:var(--accent-green); font-family:var(--font-mono); word-break:break-word; }

/* ===== APP STATS - VIDEO PLAYER CARDS ===== */
.stats-entries-container { display:grid; gap:20px; }
.stat-entry-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); overflow:hidden; transition:var(--transition); }
.stat-entry-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); }
.stat-entry-head { background:var(--bg-tertiary); padding:16px 20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--border-color); }
.stat-entry-title { font-size:16px; font-weight:700; }
.stat-entry-meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.stat-entry-body { padding:20px; }
.stat-entry-desc { font-size:14px; color:var(--text-secondary); line-height:1.6; margin-bottom:16px; }
.stat-metrics { font-size:13px; color:var(--text-muted); font-family:var(--font-mono); background:var(--bg-tertiary); padding:10px 14px; border-radius:var(--radius-sm); border-left:2px solid var(--accent-green); margin-top:12px; }

.video-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .video-row { grid-template-columns:1fr; } }

.video-player-card { background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; transition:var(--transition); }
.video-player-card.has-video { cursor:pointer; }
.video-player-card.has-video:hover { border-color:var(--accent-green-border); box-shadow:0 4px 16px rgba(0,230,118,0.15); transform:translateY(-2px); }
.video-player-card.no-video { opacity:0.5; cursor:default; }
.video-player-thumb {
  height: 140px;
  background: linear-gradient(135deg,#0d1520,#0f1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.now-video .video-player-thumb { background: linear-gradient(135deg,#0e1a10,#102018); }

/* Dark overlay on top of thumbnail */
.vp-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: var(--transition);
}
.video-player-card.has-video:hover .vp-thumb-overlay { background: rgba(0,0,0,0.55); }

/* Gradient at bottom for readability */
.vp-thumb-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Fallback icon when no thumbnail */
.vp-thumb-bg-icon {
  font-size: 40px;
  opacity: 0.25;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: var(--transition);
}
.video-player-card.has-video:hover .vp-thumb-bg-icon { opacity: 0.1; }

/* Badge top-left */
.vp-thumb-info {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
}
.vp-thumb-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.badge-prev { background: rgba(64,196,255,0.25); color: var(--accent-blue);  border: 1px solid rgba(64,196,255,0.4); }
.badge-now  { background: rgba(0,230,118,0.25);  color: var(--accent-green); border: 1px solid rgba(0,230,118,0.4); }

/* Big centered play button */
.vp-play-btn {
  position: absolute;
  width: 52px; height: 52px;
  background: rgba(0,230,118,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 0 0 8px rgba(0,230,118,0.15), 0 6px 24px rgba(0,230,118,0.5);
  z-index: 3;
}
.video-player-card.has-video:hover .vp-play-btn {
  opacity: 1;
  transform: scale(1.08);
}

/* No video placeholder */
.vp-no-video-msg {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.5;
  font-family: var(--font-mono);
}

/* Footer row */
.vp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  gap: 8px;
}
.video-player-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-muted); font-family:var(--font-mono); }
.video-player-cta   { font-size:12px; color:var(--accent-green); font-weight:600; }
.video-player-none  { font-size:12px; color:var(--text-muted); }

/* ===== IMAGES - PREVIEW CARDS ===== */
.images-container { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.image-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; transition:var(--transition); }
.image-card:hover { border-color:var(--accent-green-border); box-shadow:var(--shadow-glow); transform:translateY(-2px); }
.image-preview-thumb { height:160px; background:var(--bg-tertiary); cursor:pointer; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.img-thumb-icon { font-size:40px; opacity:0.4; transition:var(--transition); }
.image-preview-thumb:hover .img-thumb-icon { opacity:0.15; }
.img-preview-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:var(--transition); background:rgba(0,230,118,0.07); }
.image-preview-thumb:hover .img-preview-overlay { opacity:1; }
.img-preview-btn { background:var(--accent-green); color:#000; padding:8px 18px; border-radius:20px; font-size:13px; font-weight:700; }
.image-card-body { padding:12px 14px; }
.image-card-title { font-size:14px; font-weight:600; margin-bottom:4px; }
.image-card-desc  { font-size:12px; color:var(--text-muted); line-height:1.5; margin-bottom:8px; }
.image-card-meta  { display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--text-muted); font-family:var(--font-mono); }

/* ===== BUTTONS ===== */
.btn-primary { display:inline-flex; align-items:center; gap:7px; padding:9px 18px; background:var(--accent-green); color:#000; border:none; border-radius:var(--radius-sm); font-size:13px; font-weight:700; cursor:pointer; transition:var(--transition); font-family:var(--font-main); white-space:nowrap; text-decoration:none; }
.btn-primary:hover { background:#33eb91; box-shadow:0 4px 20px rgba(0,230,118,0.4); transform:translateY(-1px); }
.btn-primary.full-width { width:100%; justify-content:center; padding:12px; font-size:15px; }
.btn-secondary { display:inline-flex; align-items:center; gap:7px; padding:9px 18px; background:var(--bg-tertiary); color:var(--text-primary); border:1px solid var(--border-color); border-radius:var(--radius-sm); font-size:13px; font-weight:600; cursor:pointer; transition:var(--transition); font-family:var(--font-main); white-space:nowrap; text-decoration:none; }
.btn-secondary:hover { border-color:var(--border-hover); background:var(--bg-card-hover); }
.btn-secondary.full-width { width:100%; justify-content:center; padding:12px; font-size:15px; }
.btn-danger { display:inline-flex; align-items:center; gap:7px; padding:9px 18px; background:rgba(255,82,82,0.1); color:var(--accent-red); border:1px solid rgba(255,82,82,0.25); border-radius:var(--radius-sm); font-size:13px; font-weight:600; cursor:pointer; transition:var(--transition); font-family:var(--font-main); white-space:nowrap; }
.btn-danger:hover { background:rgba(255,82,82,0.2); }
.btn-icon { width:30px; height:30px; border-radius:var(--radius-sm); border:1px solid var(--border-color); background:var(--bg-tertiary); color:var(--text-muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:var(--transition); }
.btn-icon:hover { color:var(--accent-red); border-color:rgba(255,82,82,0.3); background:rgba(255,82,82,0.08); }
.btn-icon.edit:hover { color:var(--accent-green); border-color:var(--accent-green-border); background:var(--accent-green-glow); }

/* ===== FORMS ===== */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:12px; font-weight:600; color:var(--text-secondary); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.4px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:600px) { .form-grid-3 { grid-template-columns:1fr 1fr; } }
@media (max-width:400px) { .form-grid-3,.form-row { grid-template-columns:1fr; } }
input[type="text"],input[type="email"],input[type="password"],input[type="url"],input[type="date"],input[type="number"],textarea,select {
  width:100%; padding:10px 14px; background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-sm); color:var(--text-primary); font-size:14px; font-family:var(--font-main); transition:var(--transition); outline:none;
}
input:focus,textarea:focus,select:focus { border-color:var(--accent-green); box-shadow:0 0 0 3px var(--accent-green-glow); }
input::placeholder,textarea::placeholder { color:var(--text-muted); }
textarea { resize:vertical; min-height:80px; }
select { cursor:pointer; } select option { background:var(--bg-card); }
.error-msg { background:rgba(255,82,82,0.1); border:1px solid rgba(255,82,82,0.3); border-radius:var(--radius-sm); padding:10px 14px; color:var(--accent-red); font-size:13px; margin-bottom:16px; }

/* ===== MODALS ===== */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.8); backdrop-filter:blur(6px); z-index:1000; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.open { display:flex; }
.modal { background:var(--bg-modal); border:1px solid var(--border-color); border-radius:var(--radius-xl); width:100%; max-width:540px; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-modal); animation:modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modalIn { from{opacity:0;transform:scale(0.9) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-wide   { max-width:680px !important; }
.modal-player { max-width:880px !important; width:95vw !important; max-height:95vh !important; overflow:hidden !important; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:18px 24px; border-bottom:1px solid var(--border-color); gap:12px; }
.modal-header h3 { font-size:17px; font-weight:700; }
.modal-close { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-sm); color:var(--text-muted); width:30px; height:30px; cursor:pointer; font-size:14px; transition:var(--transition); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.modal-close:hover { color:var(--accent-red); border-color:rgba(255,82,82,0.3); }
.modal-body { padding:24px; }
.modal-footer { padding:16px 24px; border-top:1px solid var(--border-color); display:flex; justify-content:flex-end; gap:10px; }
.modal-section-title { font-size:11px; font-weight:700; letter-spacing:1px; color:var(--accent-green); text-transform:uppercase; padding:14px 0 10px; border-top:1px solid var(--border-color); margin-top:6px; font-family:var(--font-mono); }
.info-box { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:16px; margin-top:16px; }
.info-box strong { font-size:13px; display:block; margin-bottom:6px; color:var(--accent-green); }
.info-box p { font-size:12px; color:var(--text-muted); margin-bottom:8px; }

/* ===== VIDEO PLAYER MODAL ===== */
.vp-header-info { flex:1; min-width:0; }
.vp-project-label { font-size:12px; color:var(--accent-green); margin-top:2px; }
.vp-header-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vp-type-badge { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; font-family:var(--font-mono); white-space:nowrap; }
.prev-badge    { background:rgba(64,196,255,0.12); color:var(--accent-blue);  border:1px solid rgba(64,196,255,0.3); }
.now-badge-vp  { background:rgba(0,230,118,0.12);  color:var(--accent-green); border:1px solid var(--accent-green-border); }
.vp-ctrl-btn { width:32px; height:32px; background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-sm); color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:15px; transition:var(--transition); text-decoration:none; flex-shrink:0; }
.vp-ctrl-btn:hover { border-color:var(--accent-green-border); color:var(--accent-green); background:var(--accent-green-glow); }
.vp-screen { background:#000; line-height:0; }
.vp-iframe { width:100%; height:480px; display:block; border:none; background:#000; }
.vp-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; background:var(--bg-secondary); border-top:1px solid var(--border-color); flex-wrap:wrap; gap:10px; }
.vp-bar-left,.vp-bar-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vp-chip { background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:20px; padding:4px 10px; font-size:11px; color:var(--text-muted); font-family:var(--font-mono); }
.vp-action-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; background:var(--bg-tertiary); border:1px solid var(--border-color); border-radius:var(--radius-sm); color:var(--text-secondary); font-size:12px; font-weight:600; cursor:pointer; transition:var(--transition); font-family:var(--font-main); text-decoration:none; }
.vp-action-btn:hover { border-color:var(--accent-green-border); color:var(--accent-green); background:var(--accent-green-glow); }

/* ===== IMAGE VIEWER MODAL ===== */
.iv-screen { background:#111; min-height:360px; max-height:65vh; display:flex; align-items:center; justify-content:center; overflow:auto; position:relative; }
.iv-loading { display:flex; flex-direction:column; align-items:center; gap:12px; color:var(--text-muted); font-size:14px; }
.iv-spinner { width:36px; height:36px; border:3px solid var(--border-color); border-top-color:var(--accent-green); border-radius:50%; animation:spin 0.8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.iv-img { max-width:100%; max-height:65vh; object-fit:contain; display:block; transition:transform 0.25s ease; transform-origin:center center; cursor:zoom-in; }
.iv-error { flex-direction:column; align-items:center; justify-content:center; padding:40px; text-align:center; color:var(--text-muted); font-size:14px; display:none; }

/* ===== SETTINGS FAB ===== */
.settings-fab { position:fixed; bottom:24px; left:calc(var(--sidebar-width) + 16px); width:40px; height:40px; border-radius:50%; background:var(--bg-card); border:1px solid var(--border-color); color:var(--text-muted); font-size:16px; cursor:pointer; transition:var(--transition); z-index:90; display:flex; align-items:center; justify-content:center; }
.settings-fab:hover { border-color:var(--accent-green-border); color:var(--accent-green); background:var(--accent-green-glow); }

/* ===== TOAST ===== */
.toast { position:fixed; bottom:24px; right:24px; background:var(--bg-card); border:1px solid var(--accent-green-border); border-radius:var(--radius-md); padding:12px 20px; font-size:14px; color:var(--text-primary); font-weight:500; box-shadow:var(--shadow-modal); z-index:9999; opacity:0; transform:translateY(20px); transition:all 0.3s ease; max-width:320px; }
.toast.show { opacity:1; transform:translateY(0); }
.toast.error { border-color:var(--accent-red); color:var(--accent-red); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-color); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--accent-green-border); }

/* ===== RESPONSIVE ===== */
@media (max-width:768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.mobile-open { transform:translateX(0); }
  .main-content { margin-left:0 !important; }
  .menu-btn { display:flex; }
  .view { padding:16px; }
  .projects-grid,.images-container { grid-template-columns:1fr; }
  .media-gallery { grid-template-columns:1fr 1fr; }
  .settings-fab { left:16px; }
  .vp-iframe { height:280px; }
  .project-detail-title-row { flex-direction:column; }
  .breakdown-row { grid-template-columns:100px 1fr 36px; }
}
@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .media-gallery { grid-template-columns:1fr; }
  .vp-iframe { height:220px; }
}