/* DeepGuard AI - Professional Business Theme */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #6366f1;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-width: 260px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== LANDING PAGE ===== */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 2rem;
}
.landing-nav .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.landing-nav .logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 700; color: #fff;
}
.landing-nav .logo-icon {
    width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.landing-nav .nav-links { display: flex; align-items: center; gap: 2rem; }
.landing-nav .nav-links a { color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500; }
.landing-nav .nav-links a:hover { color: #fff; }

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 2rem 80px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 40%);
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}
.hero-content h1 {
    font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-content h1 span {
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px);
}
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #60a5fa; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.features { padding: 100px 2rem; background: #fff; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature-card {
    background: var(--bg); border-radius: var(--radius); padding: 2rem;
    border: 1px solid var(--border); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.25rem; color: #fff;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

.how-it-works {
    padding: 100px 2rem; background: var(--bg);
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.step-card { text-align: center; position: relative; }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.step-card h4 { font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

.cta-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

.landing-footer {
    background: var(--secondary); color: rgba(255,255,255,0.7);
    padding: 3rem 2rem; text-align: center; font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.65rem 1.5rem; border-radius: 8px; font-size: 0.95rem;
    font-weight: 600; border: none; cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,64,175,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0891b2; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width); background: var(--secondary);
    color: #fff; position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column; z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-header {
    padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 700;
}
.sidebar-logo .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.sidebar-badge {
    font-size: 0.65rem; background: var(--accent); padding: 2px 8px;
    border-radius: 20px; margin-left: auto; font-weight: 600;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-section { padding: 0.5rem 1.25rem; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.35); font-weight: 600; margin-top: 0.5rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0.75rem 1.5rem; color: rgba(255,255,255,0.65);
    font-size: 0.92rem; font-weight: 500; transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-link.active {
    color: #fff; background: rgba(59,130,246,0.15);
    border-left-color: var(--primary-light);
}
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer {
    padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.sidebar-user .info .name { font-size: 0.85rem; font-weight: 600; }
.sidebar-user .info .role { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

.main-content {
    margin-left: var(--sidebar-width); flex: 1;
    display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 0 2rem; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}
.topbar h1 { font-size: 1.25rem; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.page-content { padding: 2rem; flex: 1; }

/* ===== CARDS & STATS ===== */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    display: flex; align-items: flex-start; gap: 1rem;
}
.stat-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-icon.blue { background: #eff6ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }
.stat-icon.purple { background: #f5f3ff; color: var(--info); }
.stat-info .value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-info .label { font-size: 0.85rem; color: var(--text-muted); }

.card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
    text-align: left; padding: 0.85rem 1rem; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
    font-weight: 600; border-bottom: 2px solid var(--border); background: #f8fafc;
}
table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table tr:hover td { background: #f8fafc; }

/* ===== BADGES ===== */
.badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
}
.badge-real { background: #ecfdf5; color: #059669; }
.badge-fake { background: #fef2f2; color: #dc2626; }
.badge-failed { background: #fef3c7; color: #d97706; }
.badge-completed { background: #eff6ff; color: #2563eb; }
.badge-image { background: #f0fdf4; color: #16a34a; }
.badge-video { background: #faf5ff; color: #9333ea; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.88rem; font-weight: 600;
    margin-bottom: 0.4rem; color: var(--text);
}
.form-control {
    width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
    transition: var(--transition); background: #fff;
}
.form-control:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 16px; height: 16px; }

.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    padding: 2rem;
}
.auth-card {
    background: #fff; border-radius: 16px; padding: 2.5rem;
    width: 100%; max-width: 460px; box-shadow: var(--shadow-lg);
}
.auth-card .auth-logo {
    text-align: center; margin-bottom: 2rem;
}
.auth-card .auth-logo h2 { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.auth-card .auth-logo p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== UPLOAD ===== */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 3rem 2rem; text-align: center; cursor: pointer;
    transition: var(--transition); background: #fafbfc;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-light); background: #eff6ff;
}
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-zone h4 { font-weight: 600; margin-bottom: 0.5rem; }
.upload-zone p { color: var(--text-muted); font-size: 0.88rem; }

.file-type-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.file-type-tab {
    flex: 1; padding: 0.75rem; text-align: center; border-radius: 8px;
    border: 2px solid var(--border); cursor: pointer; font-weight: 600;
    font-size: 0.9rem; transition: var(--transition); background: #fff;
}
.file-type-tab.active {
    border-color: var(--primary); background: #eff6ff; color: var(--primary);
}

/* ===== RESULT ===== */
.result-banner {
    border-radius: var(--radius); padding: 2.5rem; text-align: center;
    margin-bottom: 2rem;
}
.result-banner.real { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; }
.result-banner.fake { background: linear-gradient(135deg, #fef2f2, #fecaca); border: 1px solid #fca5a5; }
.result-banner .result-label { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.result-banner.real .result-label { color: #059669; }
.result-banner.fake .result-label { color: #dc2626; }

.confidence-bar { margin: 1rem 0; }
.confidence-bar .bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.3rem; }
.confidence-bar .bar-track { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.confidence-bar .bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.confidence-bar .bar-fill.real { background: var(--success); }
.confidence-bar .bar-fill.fake { background: var(--danger); }

/* ===== ALERTS ===== */
.alert {
    padding: 0.85rem 1.25rem; border-radius: 8px; margin-bottom: 1rem;
    font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
    padding: 0.5rem 0.85rem; border-radius: 6px; font-size: 0.88rem;
    border: 1px solid var(--border); background: #fff;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .landing-nav .nav-links { display: none; }
}
