/**
 * Kurye Teslimat Sistemi - Ana Stil Dosyası
 * Modern, profesyonel ve responsive tasarım
 */

:root {
    /* Renk Paleti - Modern Kurumsal Renkler */
    --primary-color: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8C61;
    --secondary-color: #004E89;
    --success-color: #06D6A0;
    --danger-color: #EF476F;
    --warning-color: #FFB627;
    --info-color: #118AB2;
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;

    /* Gradient Renkler - Canlı ve Modern */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    --gradient-secondary: linear-gradient(135deg, #004E89 0%, #118AB2 100%);
    --gradient-success: linear-gradient(135deg, #06D6A0 0%, #00B894 100%);
    --gradient-danger: linear-gradient(135deg, #EF476F 0%, #D63864 100%);
    --gradient-warning: linear-gradient(135deg, #FFB627 0%, #FFA500 100%);
    --gradient-info: linear-gradient(135deg, #118AB2 0%, #06B6D4 100%);

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    transition: margin-left var(--transition-normal);
    overflow-x: hidden;
    width: 100%;
    max-width: calc(100vw - 280px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal);
    z-index: 2001;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    background: var(--gradient-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-user {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar-user small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.menu-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.menu-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

/* Login Sayfası */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35 0%, #004E89 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: pulse 4s ease-in-out infinite 2s;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-in-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.4);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 71, 111, 0.4);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 182, 39, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 182, 39, 0.4);
}

.btn-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 12px rgba(17, 138, 178, 0.3);
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 138, 178, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-user {
    font-size: 0.9rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 4px solid transparent;
    position: relative;
    margin: 0.25rem 0;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
    z-index: -1;
    opacity: 0.1;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--primary-color);
    color: white;
    padding-left: 2rem;
    transform: translateX(5px);
}

.menu-item.active {
    background: rgba(255, 107, 53, 0.15);
    border-left-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.2);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.menu-item i {
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--light-color);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    position: relative;
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.topbar-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-title i {
    color: var(--primary-color);
}

.topbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 140, 97, 0.08) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card.success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.15) 0%, rgba(0, 184, 148, 0.08) 100%);
    border-left-color: var(--success-color);
}

.stat-card.danger {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.15) 0%, rgba(214, 56, 100, 0.08) 100%);
    border-left-color: var(--danger-color);
}

.stat-card.warning {
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.15) 0%, rgba(255, 165, 0, 0.08) 100%);
    border-left-color: var(--warning-color);
}

.stat-card.info {
    background: linear-gradient(135deg, rgba(17, 138, 178, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-left-color: var(--info-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.05) rotate(-5deg);
}

.stat-card.success .stat-icon {
    background: var(--gradient-success);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.stat-card.danger .stat-icon {
    background: var(--gradient-danger);
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.3);
}

.stat-card.warning .stat-icon {
    background: var(--gradient-warning);
    box-shadow: 0 4px 12px rgba(255, 182, 39, 0.3);
}

.stat-card.info .stat-icon {
    background: var(--gradient-info);
    box-shadow: 0 4px 12px rgba(17, 138, 178, 0.3);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Card */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 107, 53, 0.02), transparent);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(0, 78, 137, 0.08) 100%);
}

.table th {
    padding: 1.125rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1.125rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--dark-color);
}

.table tbody tr {
    transition: all var(--transition-fast);
    background: white;
}

.table tbody tr:hover {
    background: linear-gradient(to right, rgba(255, 107, 53, 0.03), transparent);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.badge-success {
    background: var(--gradient-success);
}

.badge-danger {
    background: var(--gradient-danger);
}

.badge-warning {
    background: var(--gradient-warning);
}

.badge-info {
    background: var(--gradient-info);
}

.badge-primary {
    background: var(--gradient-primary);
}

/* Alert */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .login-card {
        padding: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Glow Animation */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Pagination (Sayfalama) */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.page-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    cursor: default;
}

.page-item.disabled .page-link {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

/* Pagination responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {

    /* Sidebar */
    .sidebar {
        transform: translateX(-100%) !important;
        z-index: 2001;
    }

    .sidebar.show {
        transform: translateX(0) !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* Main Content */
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 80px;
        /* Alt navbar için boşluk */
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Topbar */
    .topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
        overflow-x: hidden;
        width: 100%;
    }

    .topbar-title {
        font-size: 1.5rem;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: hidden;
    }

    .topbar-actions .btn {
        flex: 1 1 auto;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
        overflow-x: hidden;
        max-width: 100%;
    }

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Login */
    .login-card {
        padding: 1.5rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        z-index: 900;
        padding: 0.375rem 0.25rem 0.5rem;
        justify-content: space-around;
        align-items: center;
        border-top: 2px solid rgba(255, 107, 53, 0.3);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        padding: 0.375rem 0.25rem;
        flex: 1;
        max-width: 75px;
        transition: all var(--transition-fast);
        position: relative;
        border-radius: var(--radius-md);
    }

    .mobile-nav-item i {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
        transition: all var(--transition-fast);
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        text-align: center;
        line-height: 1.1;
        font-weight: 500;
        transition: all var(--transition-fast);
    }

    .mobile-nav-item.active {
        color: var(--primary-color);
        background: rgba(255, 107, 53, 0.1);
    }

    .mobile-nav-item.active i {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    /* Badge on mobile nav */
    .mobile-nav-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.5rem;
        background: var(--gradient-danger);
        color: white;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.125rem 0.375rem;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* Desktop - Hide mobile navbar */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }

    .sidebar-overlay {
        display: none;
    }
}