:root {
    --zeus-primary: #0f2744;
    --zeus-primary-dark: #0a192f;
    --zeus-primary-light: #1e3a8a;
    --zeus-accent: #2563eb;
    --zeus-success: #059669;
    --zeus-warning: #d97706;
    --zeus-danger: #dc2626;
    --zeus-info: #0284c7;
    --zeus-bg: #f8fafc;
    --zeus-card-bg: #ffffff;
    --zeus-text: #1e293b;
    --zeus-muted: #64748b;
    --zeus-border: #e2e8f0;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--zeus-bg);
    color: var(--zeus-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Shell Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--zeus-primary-dark) 0%, var(--zeus-primary) 100%);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
    font-weight: 700;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-link.active {
    color: #ffffff;
    background-color: var(--zeus-accent);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.15);
}

/* Main Content Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Navbar */
.app-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--zeus-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.app-navbar .navbar-brand-mobile {
    display: none;
    font-weight: 700;
    color: var(--zeus-primary);
}

/* Role Simulator Badge Dropdown */
.role-badge-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

.role-badge-btn:hover {
    background-color: #e2e8f0;
}

.role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.role-dot.role-TKY { background-color: #0284c7; }
.role-dot.role-TKTY { background-color: #8b5cf6; }
.role-dot.role-HY { background-color: #059669; }
.role-dot.role-Personel { background-color: #64748b; }

/* Page Content */
.page-content {
    padding: 1.75rem;
    flex-grow: 1;
}

/* Dashboard Cards */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--zeus-border);
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--zeus-primary-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--zeus-muted);
    font-weight: 500;
}

/* Standard Card */
.zeus-card {
    background: #ffffff;
    border: 1px solid var(--zeus-border);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.zeus-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--zeus-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafbfd;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.zeus-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zeus-primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zeus-card-body {
    padding: 1.25rem;
}

/* Stepper Component */
.approval-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0 2rem 0;
}

.approval-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--zeus-border);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    font-weight: 700;
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.3s;
}

.step-item.completed .step-circle {
    background-color: var(--zeus-success);
    border-color: var(--zeus-success);
    color: #ffffff;
}

.step-item.active .step-circle {
    background-color: var(--zeus-accent);
    border-color: var(--zeus-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.step-subtitle {
    font-size: 0.75rem;
    color: var(--zeus-muted);
}

/* Official Document Box (VİF Belge Şablonu) */
.official-doc-box {
    border: 2px solid #334155;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    font-family: 'Times New Roman', Times, serif;
}

.doc-header-table td {
    padding: 4px 8px;
    font-size: 0.9rem;
}

/* Table Enhancements */
.table th {
    background-color: #f8fafc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid var(--zeus-border);
}

.table td {
    font-size: 0.88rem;
    vertical-align: middle;
}

/* Badges */
.badge-subtle-success {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}
.badge-subtle-warning {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}
.badge-subtle-info {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}
.badge-subtle-primary {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}
.badge-subtle-danger {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
    }
    .app-sidebar.show {
        left: 0;
    }
    .app-navbar .navbar-brand-mobile {
        display: block;
    }
}