/* ═══════════════════════════════════════════════════════════════
   LIBRARYTURK DOWNLOADS - MAIN CSS
   Access tasarımına uygun güncellenmiş versiyon
   ═══════════════════════════════════════════════════════════════ */

/* ===== FONTS ===== */
@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/TitilliumWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/TitilliumWeb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/TitilliumWeb-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary: #FF6F0F;
    --primary-light: #ff8a3c;
    --primary-dark: #e65a00;
    /* Secondary Colors */
    --secondary: #1a2b3c;
    --secondary-light: #243447;
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    /* Status Colors */
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --purple: #8b5cf6;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    /* Transitions */
    --transition: all 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CONTAINER ===== */
.header-container,
.export-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER STYLES
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    position: relative;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    z-index: 100;
}

/* Header Top Bar */
.header-top {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 20px;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

    .header-info-item i {
        font-size: 16px;
        color: var(--primary);
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Admin User Info */
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px;
}

    .admin-user-name i {
        font-size: 14px;
    }

.admin-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    transition: var(--transition);
}

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

/* Header Main */
.header-main {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

    .nav-item:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }

    .nav-item.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        color: white;
    }

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    border: none;
    background: var(--bg-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

    .mobile-menu.open {
        display: block;
    }

.mobile-menu-content {
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
}

    .mobile-nav-item:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }

    .mobile-nav-item i {
        font-size: 20px;
        color: var(--text-muted);
    }

    .mobile-nav-item:hover i {
        color: var(--primary);
    }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.site-main {
    flex: 1;
    padding-bottom: 40px;
}

    .site-main.no-header {
        padding-top: 0;
    }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

    .page-title i {
        color: var(--primary);
    }

.page-subtitle {
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.uptime-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

    .connection-status .status-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #9ca3af;
    }

    .connection-status.connected .status-dot {
        background: var(--success);
        box-shadow: 0 0 10px var(--success);
        animation: pulse 2s infinite;
    }

    .connection-status.reconnecting .status-dot {
        background: var(--warning);
        animation: blink 1s infinite;
    }

    .connection-status.disconnected .status-dot {
        background: var(--danger);
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════════════════════ */

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

    .section-title i {
        color: var(--primary);
        font-size: 22px;
    }

/* ═══════════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 15px;
    color: white;
}

    .stat-icon.blue {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .stat-icon.green {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .stat-icon.red {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .stat-icon.orange {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .stat-icon.purple {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .stat-icon.cyan {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE STYLES
   ═══════════════════════════════════════════════════════════════ */

.table-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.table-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .table-title i {
        color: var(--primary);
        font-size: 20px;
    }

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

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

    .data-table th {
        background: var(--bg-secondary);
        padding: 14px 16px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid var(--border-color);
    }

    .data-table td {
        padding: 14px 16px;
        font-size: 14px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
    }

    .data-table tbody tr {
        transition: var(--transition);
    }

        .data-table tbody tr:hover {
            background: var(--bg-secondary);
        }

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

.loading-cell,
.empty-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
}

    .loading-cell i {
        font-size: 24px;
        margin-right: 10px;
    }

/* ═══════════════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════════════ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .status-badge.success {
        background: rgba(16, 185, 129, 0.1);
        color: var(--success);
    }

    .status-badge.failed,
    .status-badge.error {
        background: rgba(220, 38, 38, 0.1);
        color: var(--danger);
    }

    .status-badge.pending {
        background: rgba(245, 158, 11, 0.1);
        color: var(--warning);
    }

    .status-badge.active {
        background: rgba(59, 130, 246, 0.1);
        color: var(--info);
    }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

    .btn i {
        font-size: 16px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 111, 15, 0.3);
    }

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: white;
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

    .btn-sm i {
        font-size: 14px;
    }

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   SUMMARY GRID (Uploads/Downloads sayfaları için)
   ═══════════════════════════════════════════════════════════════ */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

    .summary-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

    .summary-icon.blue {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .summary-icon.green {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .summary-icon.red {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .summary-icon.orange {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .summary-icon.purple {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .summary-icon.cyan {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    }

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.summary-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE FOOTER & PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-wrap: wrap;
    gap: 15px;
}

.table-info {
    font-size: 13px;
    color: var(--text-muted);
}

.table-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .table-filters .form-select {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
        min-width: 120px;
    }

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

    .page-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(255, 111, 15, 0.05);
    }

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

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-btn i {
        font-size: 18px;
    }

/* ═══════════════════════════════════════════════════════════════
   BADGES (Time, Type, Status)
   ═══════════════════════════════════════════════════════════════ */

.time-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Consolas', monospace;
    color: var(--text-secondary);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

    .type-badge.pdc {
        background: rgba(139, 92, 246, 0.1);
        color: var(--purple);
    }

    .type-badge.pdf {
        background: rgba(239, 68, 68, 0.1);
        color: var(--danger);
    }

    .type-badge.other {
        background: var(--bg-secondary);
        color: var(--text-muted);
    }

.file-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL STYLES (Alternatif yapı)
   ═══════════════════════════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .modal.show {
        display: flex;
    }

    .modal > .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    z-index: 1;
}

    .modal-content .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-primary);
    }

        .modal-content .modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .modal-content .modal-header h3 i {
                color: var(--primary);
            }

    .modal-content .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-muted);
        padding: 5px;
        border-radius: var(--border-radius-sm);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }

        .modal-content .modal-close:hover {
            background: rgba(220, 38, 38, 0.1);
            color: var(--danger);
        }

    .modal-content .modal-body {
        padding: 24px;
        overflow-y: auto;
        max-height: calc(85vh - 80px);
    }

/* Detail Grid (Modal içi) */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .detail-item.full {
        grid-column: span 2;
    }

    .detail-item label {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .detail-item span {
        font-size: 14px;
        color: var(--text-primary);
    }

    .detail-item code {
        background: var(--bg-secondary);
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 13px;
        font-family: 'Consolas', monospace;
    }

    .detail-item .error-text {
        color: var(--danger);
        background: rgba(220, 38, 38, 0.08);
        padding: 10px 14px;
        border-radius: var(--border-radius-sm);
        border-left: 3px solid var(--danger);
    }

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.1);
    }

    .form-control::placeholder {
        color: var(--text-light);
    }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .card-title i {
        color: var(--primary);
    }

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 18px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--secondary);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand span {
    font-size: 24px;
    font-weight: 700;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--primary);
    }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

    .footer-bottom p {
        color: rgba(255,255,255,0.5);
        font-size: 13px;
    }

/* ═══════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Spin animation for icons */
.ri-spin {
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 10px !important;
}

.mt-2 {
    margin-top: 20px !important;
}

.mt-3 {
    margin-top: 30px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 20px !important;
}

.mb-3 {
    margin-bottom: 30px !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 0;
    }

    .page-title {
        font-size: 22px;
    }

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }

    .stat-icon {
        margin-bottom: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-container,
    .export-container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
/* ============================================
   YASAL UYARI - LEGAL NOTICE
   Site tasarımına uyumlu, minimal
   ============================================ */

.legal-notice {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFEBE0 100%);
    border: 1px solid #FFD5C0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .legal-notice-icon i {
        font-size: 24px;
        color: #FF6F0F;
    }

.legal-notice-body {
    flex: 1;
}

.legal-notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.legal-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

    .legal-notice-item:last-of-type {
        margin-bottom: 20px;
    }

    .legal-notice-item > i {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #64748b;
    }

    .legal-notice-item > div {
        flex: 1;
        padding-top: 4px;
    }

    .legal-notice-item strong {
        display: inline;
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

    .legal-notice-item p {
        font-size: 14px;
        line-height: 1.5;
        color: #64748b;
        margin: 0;
        display: inline;
    }

.legal-notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-legal-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #FF6F0F;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-legal-primary:hover {
        background: #e55a00;
        color: white;
    }

.btn-legal-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-legal-secondary:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #334155;
    }

    .btn-legal-primary i,
    .btn-legal-secondary i {
        font-size: 16px;
    }

/* Responsive */
@media (max-width: 768px) {
    .legal-notice {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .legal-notice-icon {
        width: 44px;
        height: 44px;
    }

        .legal-notice-icon i {
            font-size: 22px;
        }

    .legal-notice-actions {
        flex-direction: column;
    }

    .btn-legal-primary,
    .btn-legal-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GUIDE CARDS & HOW IT WORKS GRID
   Index sayfası için kart stilleri
   site.css'in SONUNA EKLE
   ═══════════════════════════════════════════════════════════════ */

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.guide-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

    .guide-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .guide-card.highlight {
        background: linear-gradient(135deg, #FFF9F5 0%, #FFF5EE 100%);
        border: 1px solid rgba(255, 111, 15, 0.2);
    }

.guide-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

    .guide-icon i {
        font-size: 26px;
        color: white;
    }

    .guide-icon.blue {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .guide-icon.green {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .guide-icon.purple {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .guide-icon.orange {
        background: linear-gradient(135deg, #FF6F0F 0%, #ff8a3c 100%);
    }

    .guide-icon.red {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .guide-icon.cyan {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    }

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.guide-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .guide-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        font-size: 14px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-color);
    }

        .guide-list li:last-child {
            border-bottom: none;
        }

        .guide-list li i {
            color: var(--success);
            font-size: 16px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .guide-list li strong {
            color: var(--text-primary);
            font-weight: 600;
        }

/* Responsive */
@media (max-width: 992px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        padding: 24px;
    }
}
