/* Vantablack Raporlama Paneli - Stiller */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f9fafb;
    --light-gray: #f3f4f6;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --dark: #1f2937;
    --table-sticky-top: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    gap: 18px;
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.header-logo a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    align-items: center;
    background: var(--dark);
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
}

.logo-subtitle {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Navigation */
.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.08);
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.18);
    font-weight: 600;
}

.nav-item i {
    font-size: 14px;
}

/* User Menu */
.header-user {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 72px;
}

.user-role {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
}

.logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--light-gray);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 76px);
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.card-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card p {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Tables */
.table-responsive {
    overflow: visible;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-gray);
}

.table-responsive table,
.report-table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive thead th,
.report-table thead th {
    position: sticky;
    top: var(--table-sticky-top);
    z-index: 25;
    background: var(--light-gray);
    box-shadow: 0 2px 0 var(--border), 0 -1px 0 var(--light-gray);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tbody tr:hover {
    background-color: var(--light);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: var(--danger);
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: var(--warning);
    color: #78350f;
}

.alert-info {
    background-color: #eff6ff;
    border-color: var(--primary);
    color: #1e40af;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert a {
    font-weight: 600;
    text-decoration: underline;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 40px;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
    font-size: 24px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.demo-info {
    color: var(--text);
    font-size: 12px;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --table-sticky-top: 126px;
    }

    .header-container {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
    }

    .header-logo {
        flex: 1;
        min-width: 160px;
    }

    .header-nav {
        width: 100%;
        order: 3;
        flex: 0 0 100%;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .nav-item {
        flex: 0 0 auto;
        justify-content: center;
        min-width: 42px;
        padding: 8px 11px;
    }

    .nav-item span {
        font-size: 12px;
    }

    .header-user {
        flex: 0 0 auto;
        border-left: none;
        padding-left: 0;
    }

    .user-copy {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 24px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    :root {
        --table-sticky-top: 112px;
    }

    .logo-subtitle {
        display: none;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        height: 36px;
        width: 36px;
    }

    .nav-item span {
        display: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
