/**
 * İş Takip Sistemi - Custom CSS
 * Bilgi İşlem Dairesi Başkanlığı - Sistem Donanım Şube Müdürlüğü
 * Modern Tasarım - 2024
 */

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

/* Genel Stillemeler */
:root {
    /* Modern renk paleti - Gradient ve yumuşak tonlar */
    --primary-color: #6366f1;           /* Modern indigo */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #1e293b;        /* Slate gray */
    --accent-color: #8b5cf6;           /* Purple accent */
    --success-color: #10b981;          /* Emerald green */
    --warning-color: #f59e0b;          /* Amber */
    --danger-color: #ef4444;           /* Red */
    --info-color: #06b6d4;             /* Cyan */
    --light-color: #f8fafc;
    --dark-color: #0f172a;             /* Slate 900 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* Navbar Özelleştirmeleri */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--box-shadow-md);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    z-index: 1030;
    position: sticky;
    top: 0;
    min-height: 60px;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 0.45rem 0.85rem !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
    margin: 0 0.1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::before {
    width: 60%;
}

.navbar-nav .nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: var(--box-shadow-md);
}

.navbar-nav .nav-link.active::before {
    display: none;
}

/* Dropdown Toggle Stilleri */
.navbar-nav .dropdown-toggle {
    cursor: pointer;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.navbar-nav .dropdown-toggle.active {
    background: var(--gradient-primary);
    color: white !important;
}

/* Dropdown Menu Navbar İçinde */
.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.15rem 0;
    font-size: 0.9rem;
}

.navbar-nav .dropdown-item i {
    width: 18px;
    color: var(--text-secondary);
    text-align: center;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

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

.navbar-nav .dropdown-item.active {
    background: var(--gradient-primary);
    color: white;
}

.navbar-nav .dropdown-item.active i {
    color: white;
}

/* Navbar Kompakt Görünüm */
.navbar-nav {
    flex-wrap: wrap;
    gap: 0.25rem;
}

@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        box-shadow: none;
        border: none;
        background: rgba(248, 250, 252, 0.5);
    }
    
    .navbar-nav .dropdown-item {
        padding-left: 2rem;
    }
}

/* Icon Buttons */
.btn-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff !important;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    background: var(--gradient-primary);
}

.btn-icon i,
.btn-icon svg {
    pointer-events: none;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-md);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon-view {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.btn-icon-edit {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.btn-icon-success {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-icon-danger {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
}

.btn-icon-neutral {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #1f2937 !important;
}

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

.btn-icon-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Kart Özelleştirmeleri */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buton Özelleştirmeleri */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.65rem 1.5rem;
    border-width: 2px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d72e7 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d72e7 0%, var(--primary-color) 100%);
    border-color: #1d72e7;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25), 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d72e7 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-secondary {
    color: #6b7280;
    border-color: #d1d5db;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.btn-outline-warning {
    color: #f59e0b;
    border-color: #f59e0b;
    background-color: transparent;
}

.btn-outline-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-outline-info {
    color: #06b6d4;
    border-color: #06b6d4;
    background-color: transparent;
}

.btn-outline-info:hover {
    background-color: #06b6d4;
    border-color: #06b6d4;
    color: white;
}

/* Form Özelleştirmeleri */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
    outline: none;
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Select özel stil */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2337b9f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Textarea özel stil */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Input grupları */
.input-group .form-control,
.input-group .form-select {
    border-radius: 10px;
}

.input-group-text {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 500;
}

/* Form check */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

/* Form switch */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 999px;
}

.form-switch .form-check-input:checked {
    background-position: right center;
}

/* Form text (yardımcı metin) */
.form-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-text i {
    font-size: 0.75rem;
}

/* Invalid feedback */
.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.35rem;
    font-weight: 500;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4M6 8.5V6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* Tablo Özelleştirmeleri */
.table {
    background-color: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.25rem;
    text-align: left;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: var(--box-shadow);
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-primary);
}

/* Badge Özelleştirmeleri */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5em 0.9em;
    border-radius: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: var(--box-shadow);
}

/* Alert Özelleştirmeleri */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left-color: var(--success-color);
    color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left-color: var(--warning-color);
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left-color: var(--danger-color);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-left-color: var(--info-color);
    color: #155e75;
}

.alert i {
    font-size: 1.25rem;
}

/* Modal Özelleştirmeleri */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background: rgba(248, 250, 252, 0.5);
}

/* Dropdown Özelleştirmeleri */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.15rem 0;
}

.dropdown-item i {
    width: 18px;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

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

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Progress Bar Özelleştirmeleri */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e0e0e0;
}

.progress-bar {
    border-radius: 4px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* İş Durum Renkleri */
.status-beklemede { 
    background: var(--gradient-warning); 
    color: white; 
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.status-devam-eden { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
    color: white; 
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.status-tamamlanan { 
    background: var(--gradient-success); 
    color: white; 
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.status-geciken { 
    background: var(--gradient-danger); 
    color: white; 
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.status-iptal { 
    background: linear-gradient(135deg, #64748b 0%, #475569 100%); 
    color: white; 
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* Öncelik Renkleri */
.priority-dusuk { 
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); 
    color: white; 
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}
.priority-normal { 
    background: var(--gradient-success); 
    color: white; 
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.priority-yuksek { 
    background: var(--gradient-warning); 
    color: white; 
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.priority-acil { 
    background: var(--gradient-danger); 
    color: white; 
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

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

/* Text Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

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

small, .small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* List Group */
.list-group-item {
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.list-group-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

/* Input Group */
.input-group-text {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-light);
    color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 576px) {
    .row {
        margin: 0;
    }
    
    .col-lg-3, .col-lg-6, .col-md-6 {
        padding: 0 5px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Print Stilleri */
@media print {
    .navbar, .btn, .dropdown, .modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .table {
        font-size: 12px;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Tooltip Özelleştirmeleri */
.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Sidebar (varsa) */
.sidebar {
    background: var(--gradient-primary);
    min-height: 100vh;
    color: white;
    box-shadow: var(--box-shadow-lg);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 0.25rem 0;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(4px);
    box-shadow: var(--box-shadow);
}

/* Profil Resmi */
.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.avatar-img {
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

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

.avatar-manager {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.avatar-operator {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

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

/* Dosya Yükleme Alanı */
.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.1);
}

/* İstatistik Kartları */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--box-shadow-xl);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* İstatistik kartları için özel renkler */
.card.bg-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.card.bg-primary .stat-number,
.card.bg-primary .card-title {
    color: white !important;
    -webkit-text-fill-color: white;
}

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

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

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

.card.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
}

/* Timeline Stillemesi */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateX(-50%);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Mobil Optimizasyonları */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 50px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .card {
        border-radius: var(--border-radius);
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Scrollbar Özelleştirmeleri */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #7c3aed 100%);
}

/* Selection (Seçim) Renkleri */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--dark-color);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--dark-color);
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container Improvements */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
