@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Bright Turquoise Light Theme */
    --primary: #06b6d4; /* Vibrant Turquoise / Cyan */
    --primary-dark: #0891b2; /* Deep Turquoise */
    --primary-glow: rgba(6, 182, 212, 0.3);
    --secondary: #3b82f6; /* Blue for contrast */
    --bg-main: #f0fdfa; /* Extremely light turquoise/mint background */
    --bg-card: #ffffff; /* Clean white cards */
    --text: #334155; /* Slate 700 - dark readable text */
    --text-muted: #64748b; /* Slate 500 */
    --border: #cffafe; /* Cyan 100 border */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(6, 182, 212, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(6, 182, 212, 0.1), 0 2px 4px -2px rgba(6, 182, 212, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(6, 182, 212, 0.15), 0 4px 6px -4px rgba(6, 182, 212, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main) !important;
    background-image: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    background-attachment: fixed;
    color: var(--text) !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Base Light Theme Overrides for Inline Dark PHP Styles */
h1, h2, h3, h4, h5, h6, strong, p, div, span, label, td, th {
    color: inherit;
}
.text-muted, [style*="color: var(--text-muted)"] {
    color: var(--text-muted) !important;
}

/* Card */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #0f172a !important; /* Very dark slate */
}

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

/* Modern Forms */
.input-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input, select, textarea {
    width: 100%;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text) !important;
    font-size: 0.9375rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px var(--primary-glow) !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow) !important;
}

.btn-secondary {
    background: #f1f5f9 !important; /* Light Slate */
    color: var(--text) !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border) !important;
}

th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    color: var(--text) !important;
    font-size: 0.9375rem;
}

table tr:hover td {
    background: #f0fdfa !important; /* Hover effect */
}

/* Header */
.main-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.header-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a !important;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ots-tag {
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Main Navigation (Desktop) */
.main-nav {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9 !important;
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0 !important;
}

.nav-item {
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-dark) !important;
    background: #e0f2fe !important;
}

.nav-item.active {
    background: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.status-Beklemede { background: #fef3c7 !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.status-İşlemde { background: #e0f2fe !important; color: #0284c7 !important; border: 1px solid #bae6fd !important; }
.status-Tamamlandı { background: #d1fae5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important; }
.status-İptal { background: #fee2e2 !important; color: #dc2626 !important; border: 1px solid #fecaca !important; }

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }

/* Dashboard Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm) !important;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark) !important;
    letter-spacing: -0.05em;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body { padding-bottom: 80px; } /* Space for bottom nav */
    .container { padding: 1rem; }
    .card { padding: 1rem !important; }
    h1 { font-size: 1.75rem; }
    
    .grid-2 { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .mobile-stack { flex-direction: column !important; align-items: stretch !important; text-align: center; }
    .mobile-stack .btn { width: 100% !important; margin-top: 0.5rem; padding-left: 0 !important; padding-right: 0 !important; }
    .mobile-stack-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
    .mobile-stack-grid .btn { grid-column: span 2; width: 100% !important; margin-top: 0.5rem; }
    
    .main-header { padding: 0.5rem 0; }
    .header-content { gap: 1rem; }
    .main-nav { display: none; } /* Hide top nav */
    .user-role { display: none; } /* Hide role text to save space */
    .brand-text { font-size: 1.25rem; }
    .header-logo { height: 36px; }

    /* Responsive Data Tables - Card Style for Light Theme */
    .table-container, table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }
    table thead { display: none; }
    table tr {
        margin-bottom: 1rem;
        background: #ffffff !important;
        border: 1px solid var(--border) !important;
        border-radius: 1rem;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm) !important;
    }
    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 0.9rem;
    }
    table td:last-child { border-bottom: none !important; }
    table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted) !important;
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    
    .dashboard-grid { grid-template-columns: 1fr !important; }
    .stat-card p { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* Bottom Navigation Bar (Light Theme) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0 !important;
    z-index: 2000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 70px;
    }
}

.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important; /* Slate 400 */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.25rem;
    flex: 1;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.b-nav-item svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.b-nav-item.active, .b-nav-item:hover {
    color: var(--primary) !important;
}

.b-nav-item.active svg {
    transform: translateY(-2px);
    stroke-width: 2.5;
}

/* Floating Action Button (Center) */
.b-nav-fab {
    position: relative;
    top: -20px;
}

.fab-inner {
    background: var(--primary) !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px var(--primary-glow) !important;
    border: 4px solid #ffffff !important;
    color: #ffffff !important;
    transition: var(--transition);
}

.b-nav-fab:active .fab-inner {
    transform: scale(0.95);
}

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

.animate-fade {
    animation: fadeIn 0.5s ease-out forwards;
}
