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

:root {
    --primary: #2C1810;
    --secondary: #8B4513;
    --accent: #D4A853;
    --light: #FDF6EC;
    --white: #FFFFFF;
    --gray: #6B7280;
    --danger: #DC2626;
    --success: #16A34A;
    --shadow: 0 4px 24px rgba(44,24,16,0.10);
    --radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--primary);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: var(--primary) !important;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--accent) !important;
    letter-spacing: 1px;
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent) !important; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* CARDS */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(44,24,16,0.15);
}
.card-header {
    background: var(--primary);
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 1rem 1.5rem;
}

/* BUTTONS */
.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
}
.btn-accent:hover {
    background: #c49840;
    border-color: #c49840;
    color: var(--primary);
}
.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
}
.btn-outline-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* FORMS */
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    padding: 0.7rem 1rem;
    font-size: 0.97rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}
.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

/* ALERTS */
.alert {
    border-radius: 10px;
    font-weight: 500;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: var(--danger); }

/* TABLES */
.table {
    border-radius: var(--radius);
    overflow: hidden;
}
.table thead th {
    background: var(--primary);
    color: var(--accent);
    font-weight: 600;
    border: none;
    padding: 1rem;
}
.table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-color: #f3ece2;
}
.table tbody tr:hover { background: #fdf6ec; }

/* BADGES */
.badge-pending  { background: #FEF3C7; color: #92400E; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.badge-approved { background: #D1FAE5; color: #065F46; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.badge-rejected { background: #FEE2E2; color: #991B1B; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.badge-active   { background: #DBEAFE; color: #1E40AF; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.badge-cancelled{ background: #F3F4F6; color: #374151; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }

/* FOOTER */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}
footer span { color: var(--accent); }

/* LOADER */
.loader {
    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 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* PROFILE PHOTO */
.profile-photo {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}
.profile-photo-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2.5rem;
    border: 3px solid var(--accent);
}

/* STATUS STEPS */
.steps { display: flex; gap: 0; margin: 2rem 0; }
.step {
    flex: 1; text-align: center; padding: 1rem;
    background: #f3ece2; position: relative;
}
.step.active { background: var(--accent); color: var(--primary); font-weight: 700; }
.step.done   { background: var(--success); color: white; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p  { font-size: 1rem; }
}

/* ADMIN PANEL DUZELTMELERI */
.nav-tabs .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    background: white;
    border: 1.5px solid #e5e7eb !important;
    margin-right: 4px;
    border-radius: 8px 8px 0 0 !important;
}
.nav-tabs .nav-link:hover {
    background: #f3ece2 !important;
    color: var(--primary) !important;
}
.nav-tabs .nav-link.active {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
}
.nav-tabs {
    border-bottom: 2px solid var(--accent) !important;
    margin-bottom: 1.5rem !important;
}

/* SEKME VE KART ARASI MESAFE */
.nav-tabs + div,
.nav-tabs ~ #alert-box + div,
#alert-box + div {
    margin-top: 1.5rem;
}
[id^="tab-"] {
    margin-top: 1.5rem;
}
