/* --- TEMA VE DEĞİŞKENLER --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Color Palette (Slate & Indigo based) */
    --color-primary: #4f46e5;
    /* Indigo 600 */
    --color-primary-dark: #4338ca;
    /* Indigo 700 */
    --color-primary-light: #e0e7ff;
    /* Indigo 100 */

    --color-secondary: #64748b;
    /* Slate 500 */
    --color-success: #10b981;
    /* Emerald 500 */
    --color-info: #0ea5e9;
    /* Sky 500 */
    --color-warning: #f59e0b;
    /* Amber 500 */
    --color-danger: #ef4444;
    /* Red 500 */

    --color-bg-body: #f1f5f9;
    /* Slate 100 */
    --color-bg-card: #ffffff;
    --color-text-main: #0f172a;
    /* Slate 900 */
    --color-text-muted: #64748b;
    /* Slate 500 */

    --font-family-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* --- GENEL ETİKETLER VE BODY --- */
body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: -0.025em;
}

/* --- KARTLAR (CARDS) --- */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

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

/* --- BUTONLAR --- */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

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

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--color-text-main);
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* --- YARDIMCI SINIFLAR (HELPERS) --- */
.text-muted {
    color: var(--color-text-muted) !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.border-left-primary {
    border-left: 4px solid var(--color-primary) !important;
}

.border-left-success {
    border-left: 4px solid var(--color-success) !important;
}

.border-left-info {
    border-left: 4px solid var(--color-info) !important;
}

.border-left-warning {
    border-left: 4px solid var(--color-warning) !important;
}

.border-left-danger {
    border-left: 4px solid var(--color-danger) !important;
}

/* --- GİRİŞ SAYFASI --- */
.login-container {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-branding-container {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    position: relative;
    overflow: hidden;
}

.login-branding-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.05"><path d="M0 0h20L0 20z"/></g></svg>');
}

/* --- NAVBAR --- */
.navbar {
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: blur(8px);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* --- BADGES --- */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 9999px;
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

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

.timeline-item-marker {
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 2.5rem;
    text-align: center;
}

.timeline-item-marker-indicator {
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-primary);
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: calc(100% - 7px);
    box-shadow: 0 0 0 2px #fff;
}

.timeline::before {
    content: '';
    background-color: #e2e8f0;
    position: absolute;
    left: 0;
    top: 6px;
    width: 2px;
    height: 100%;
}

/* --- PRINT --- */
@media print {
    body {
        background-color: #fff !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .no-print {
        display: none !important;
    }
}


/* --- NOTIFICATIONS --- */
.hide-read .dropdown-item:not(.unread-notification) {
    display: none !important;
}