/* DeepGuard - Professional Theme */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a8e;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-width: 260px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* Navbar */
.navbar {
    background: var(--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: 100;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-brand span { color: var(--accent); }

.navbar-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.navbar-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.navbar-nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body { padding: 1.25rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-control {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Alerts */
.alert {
    padding: .85rem 1.15rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
    border-left: 4px solid;
}
.alert-success { background: #ecfdf5; border-color: var(--success); color: #065f46; }
.alert-danger { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.alert-info { background: #eff6ff; border-color: var(--info); color: #1e40af; }

/* Tables */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table th { background: #f8fafc; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
table tr:hover { background: #f8fafc; }

/* Badges */
.badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e2e8f0; color: #475569; }

/* Landing Page */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: .9; max-width: 650px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

.features { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: .5rem; color: var(--primary); }
.features .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .5rem; color: var(--primary); }

.stats-bar {
    background: var(--primary);
    color: #fff;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; font-weight: 800; }
.stat-item p { opacity: .8; font-size: .95rem; }

.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg), #e2e8f0);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }

.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    padding: 3rem 2rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto 2rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,.7); display: block; margin-bottom: .5rem; }
.footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Auth */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}
.auth-card h2 { text-align: center; color: var(--primary); margin-bottom: .5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }

/* Dashboard Layout */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 200;
    transition: transform .3s;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 1.15rem;
    font-weight: 700;
}

.sidebar-header span { color: #93c5fd; }

.sidebar-nav { padding: 1rem 0; }
.sidebar-section { padding: .5rem 1.5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-top: .5rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.5rem;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: #93c5fd;
}

.sidebar-link .icon { width: 20px; text-align: center; opacity: .8; }

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.top-bar {
    background: var(--card);
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-content { padding: 1.5rem; }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; color: var(--primary); }
.page-header p { color: var(--text-muted); font-size: .9rem; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-icon.blue { background: #dbeafe; color: var(--accent); }
.stat-card .stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-card .stat-icon.red { background: #fee2e2; color: var(--danger); }
.stat-card .stat-icon.orange { background: #fef3c7; color: var(--warning); }
.stat-card .stat-icon.purple { background: #ede9fe; color: #7c3aed; }

.stat-card h3 { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-card p { color: var(--text-muted); font-size: .85rem; }

/* Result display */
.result-banner {
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1.5rem;
}
.result-banner.real { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.result-banner.fake { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.result-banner h2 { font-size: 2rem; margin-bottom: .5rem; }
.confidence-bar {
    height: 8px;
    background: rgba(0,0,0,.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}
.confidence-fill { height: 100%; border-radius: 4px; transition: width .5s; }
.confidence-fill.real { background: var(--success); }
.confidence-fill.fake { background: var(--danger); }

/* Pagination */
.pagination { display: flex; gap: .5rem; margin-top: 1rem; justify-content: center; }
.pagination a, .pagination span {
    padding: .4rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: .85rem;
}
.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
}
