/* =============================================
   EMLEKVET - Büyükbaş Sürü Yönetim Sistemi
   Ana Stil Dosyası - Açık Tema
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-lighter: #E8F5E9;
    --primary-dark: #1B5E20;
    
    --secondary: #795548;
    --secondary-light: #A1887F;
    --secondary-lighter: #EFEBE9;
    
    --accent: #FFA000;
    --accent-light: #FFD54F;
    --accent-lighter: #FFF8E1;
    
    --success: #43A047;
    --danger: #E53935;
    --warning: #FB8C00;
    --info: #1E88E5;
    --purple: #7B1FA2;
    
    --bg-body: #F0F2F5;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-navbar: #FFFFFF;
    
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    
    --sidebar-width: 260px;
    --navbar-height: 64px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 30%, #A5D6A7 60%, #81C784 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(46,125,50,0.08) 0%, transparent 70%);
    animation: loginFloat 20s ease-in-out infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,160,0,0.06) 0%, transparent 70%);
    animation: loginFloat 25s ease-in-out infinite reverse;
}

@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.8);
    animation: loginCardIn 0.6s ease-out;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(46,125,50,0.3);
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(46,125,50,0.25);
}

.sidebar-brand .brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-brand .brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
}

.sidebar-nav .nav-item {
    padding: 0 12px;
    margin-bottom: 2px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-nav .nav-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.sidebar-nav .nav-link:hover i {
    color: var(--primary);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link.active i {
    color: var(--primary);
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 20px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-footer .version {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* =============================================
   TOP NAVBAR
   ============================================= */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.top-navbar .navbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.top-navbar .sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.top-navbar .sidebar-toggle:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.top-navbar .page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.top-navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-navbar .nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.top-navbar .nav-icon-btn:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.top-navbar .nav-icon-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-navbar);
}

.top-navbar .user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.top-navbar .user-dropdown .dropdown-toggle:hover {
    background: var(--bg-body);
}

.top-navbar .user-dropdown .dropdown-toggle::after {
    display: none;
}

.top-navbar .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.top-navbar .user-info {
    text-align: left;
}

.top-navbar .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.top-navbar .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--navbar-height);
    min-height: 100vh;
    transition: var(--transition);
}

.content-wrapper {
    padding: 24px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header h5, .card-header h6 {
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
}

/* =============================================
   STAT CARDS (Dashboard)
   ============================================= */
.stat-card {
    border: none;
    border-radius: var(--border-radius);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-card.bg-gradient-green {
    background: linear-gradient(135deg, #2E7D32, #66BB6A);
}

.stat-card.bg-gradient-purple {
    background: linear-gradient(135deg, #7B1FA2, #BA68C8);
}

.stat-card.bg-gradient-red {
    background: linear-gradient(135deg, #C62828, #EF5350);
}

.stat-card.bg-gradient-blue {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.stat-card.bg-gradient-orange {
    background: linear-gradient(135deg, #E65100, #FFA726);
}

.stat-card.bg-gradient-teal {
    background: linear-gradient(135deg, #00695C, #26A69A);
}

/* =============================================
   TABLES
   ============================================= */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #F8FAFB;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13.5px;
}

.table tbody tr:hover {
    background: #FAFBFC;
}

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

/* DataTables Özelleştirme */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 16px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    margin: 0 2px;
    padding: 6px 12px !important;
    font-size: 13px;
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-lighter) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    font-weight: 500;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

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

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

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

.btn-success:hover {
    background: #388E3C;
    color: white;
}

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

.btn-danger:hover {
    background: #C62828;
    color: white;
}

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

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

.btn-info:hover {
    background: #1565C0;
    color: white;
}

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

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

.btn-outline-secondary {
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
}

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

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

/* =============================================
   FORMS
   ============================================= */
.form-control, .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--text-primary);
    transition: var(--transition);
    background-color: #FAFBFC;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
    background-color: white;
}

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

.form-label {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Select2 Özelleştirme */
.select2-container--bootstrap-5 .select2-selection {
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    min-height: 40px !important;
    background-color: #FAFBFC !important;
    transition: var(--transition);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12) !important;
    background-color: white !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: var(--border-radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: var(--primary-lighter) !important;
    color: var(--primary) !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Flatpickr Özelleştirme */
.flatpickr-input {
    background-color: #FAFBFC !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day:hover {
    background: var(--primary-lighter) !important;
}

/* =============================================
   MODALS
   ============================================= */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 16px 24px;
    border: none;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 16px;
}

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

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

/* =============================================
   ALERTS & TOASTS
   ============================================= */
.alert {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.alert-danger {
    background: #FFEBEE;
    color: #C62828;
}

.alert-warning {
    background: #FFF3E0;
    color: #E65100;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
}

/* =============================================
   DASHBOARD WIDGETS
   ============================================= */
.widget-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.widget-card .widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-card .widget-header h6 {
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-card .widget-body {
    padding: 16px 20px;
    max-height: 350px;
    overflow-y: auto;
    resize: vertical; /* Kullanıcının yüksekliği manuel ayarlayabilmesi için */
    min-height: 100px;
}
/* Scrollbar styling for a cleaner look */
.widget-card .widget-body::-webkit-scrollbar {
    width: 6px;
}
.widget-card .widget-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.widget-card .widget-body::-webkit-scrollbar-track {
    background: transparent;
}

.widget-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-list-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.widget-list-item .item-info {
    flex: 1;
    min-width: 0;
}

.widget-list-item .item-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-list-item .item-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.widget-list-item .item-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* =============================================
   PADOK CARDS
   ============================================= */
.padok-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

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

.padok-card .padok-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.padok-card .padok-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.padok-card .padok-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.padok-card .padok-capacity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.padok-card .progress {
    height: 6px;
    border-radius: 3px;
    background: #F3F4F6;
}

.padok-card .progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-lighter);
}

.timeline-item .timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-item .timeline-content {
    font-size: 13px;
    color: var(--text-primary);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* =============================================
   HAYVAN DETAY TABS
   ============================================= */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13.5px;
    padding: 10px 16px;
    margin-bottom: -2px;
    transition: var(--transition);
}

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

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

.tab-content {
    padding-top: 20px;
}

/* =============================================
   HAYVAN PROFIL HEADER
   ============================================= */
.animal-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-lighter), #F1F8E9);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.animal-profile-header .animal-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.animal-profile-header .animal-info h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.animal-profile-header .animal-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.animal-profile-header .animal-meta span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   SOYAĞACI
   ============================================= */
.family-tree {
    overflow-x: auto;
    padding: 20px;
}

.tree-node {
    display: inline-block;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    text-align: center;
    min-width: 120px;
    transition: var(--transition);
}

.tree-node:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tree-node .node-ear {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
}

.tree-node .node-name {
    font-size: 12px;
    color: var(--text-secondary);
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* =============================================
   UTILITIES
   ============================================= */
.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; }
.text-purple { color: var(--purple) !important; }

.bg-light-green { background: var(--primary-lighter) !important; }
.bg-light-red { background: #FFEBEE !important; }
.bg-light-blue { background: #E3F2FD !important; }
.bg-light-orange { background: #FFF3E0 !important; }
.bg-light-purple { background: #F3E5F5 !important; }

.cursor-pointer { cursor: pointer; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.page-header .breadcrumb-item a {
    color: var(--text-secondary);
}

.page-header .breadcrumb-item.active {
    color: var(--text-muted);
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-bar .filter-item label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

/* Staggered animation for stat cards */
.stat-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.stat-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.stat-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.stat-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }
.stat-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s both; }
.stat-card:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.6s both; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1039;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .top-navbar {
        left: 0;
    }
    
    .top-navbar .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    .animal-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .animal-profile-header .animal-meta {
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar .filter-item {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        margin: 16px;
        padding: 32px 24px;
    }
    
    .content-wrapper {
        padding: 12px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .sidebar,
    .top-navbar,
    .main-footer,
    .btn,
    .filter-bar,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
