@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.75);
    --bg-card-hover: rgba(30, 41, 69, 0.85);
    --border-glow: rgba(59, 130, 246, 0.25);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #60a5fa, #3b82f6);
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --text-bright: #ffffff;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navbar */
.navbar {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.user-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    border-color: var(--border-glow);
}

/* Hero Section */
.hero {
    padding: 70px 0 50px 0;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Upload Dropzone */
.dropzone-container {
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.01);
}

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

.dropzone-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dropzone-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.selected-files-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading Modal / Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(59, 130, 246, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 28px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-step-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 15px;
    color: var(--text-muted);
}

/* Score Badges */
.badge-verdict {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verdict-alinir {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.verdict-pazarlikli {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.verdict-riskli {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
}

.verdict-uzakdur {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f87171;
}

/* Tables */
.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

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

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    margin: 20px 0 6px 0;
    color: var(--text-bright);
}

.price-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(11, 15, 25, 0.95);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Print Styles for PDF export */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .navbar, footer, .btn-action-bar, .no-print {
        display: none !important;
    }
    .glass-card {
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        color: #000000 !important;
    }
    .data-table th {
        background: #f1f5f9 !important;
        color: #000 !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column !important;
    }
    .admin-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding: 16px !important;
        gap: 14px !important;
    }
    .admin-menu {
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .admin-menu-link {
        white-space: nowrap;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    .admin-content {
        padding: 16px !important;
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 12px;
    }
    .brand-logo {
        font-size: 20px;
    }
    .nav-links {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        font-size: 13px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-link {
        white-space: nowrap;
    }
    .hero {
        padding: 36px 0 24px 0;
    }
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-tag {
        font-size: 12px;
        padding: 6px 14px;
    }
    .glass-card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }
    .dropzone {
        padding: 24px 14px;
    }
    .dropzone-icon {
        font-size: 36px;
    }
    .dropzone-title {
        font-size: 16px;
    }
    .dropzone-desc {
        font-size: 12px;
    }
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .price-card {
        padding: 24px 18px;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .report-header-card {
        padding: 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .btn-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .btn-action-bar > div {
        width: 100%;
        justify-content: center;
    }
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 22px;
    }
    .btn {
        width: 100%;
    }
}

/* Touch & Zoom Prevention */
html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: pan-x pan-y;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    -webkit-tap-highlight-color: transparent;
}

