:root {
    --color-bg-900: #080c24;
    --color-bg-800: #0e1330;
    --color-bg-700: #161b3d;
    --color-surface: rgba(22, 27, 61, 0.82);
    --color-surface-strong: rgba(30, 36, 80, 0.92);
    --color-border: rgba(100, 115, 255, 0.18);
    --color-primary: #6366f1;
    --color-primary-strong: #8b5cf6;
    --color-primary-soft: rgba(99, 102, 241, 0.12);
    --color-secondary: #22d3ee;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-danger: #f87171;
    --color-neutral: #e2e8f0;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5f5;
    --color-text-muted: #94a3c8;
    --sidebar-width: 280px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 45px rgba(13, 17, 43, 0.45);
    --shadow-strong: 0 30px 60px rgba(8, 12, 36, 0.65);
    --transition-base: 0.28s cubic-bezier(.4,0,.2,1);
    --transition-fast: 0.18s ease-in-out;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--color-text-primary);
    background: radial-gradient(circle at top, #19204d 0%, var(--color-bg-900) 55%, #040716 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    border-radius: var(--radius-sm);
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(9, 12, 30, 0.8), rgba(17, 23, 52, 0.85));
}

.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(160deg, rgba(17, 24, 51, 0.96) 0%, rgba(13, 18, 41, 0.9) 60%, rgba(27, 32, 72, 0.95) 100%);
    backdrop-filter: blur(18px);
    border-right: 1px solid rgba(86, 105, 255, 0.25);
    box-shadow: var(--shadow-soft);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform var(--transition-base), box-shadow var(--transition-fast);
    z-index: 1025;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.6px;
    color: var(--color-text-primary);
    margin-bottom: 28px;
}

.sidebar-logo i {
    font-size: 1.6rem;
    color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.18));
    padding: 12px;
    border-radius: 16px;
}

.sidebar-user {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.15));
    border-radius: var(--radius-md);
    padding: 24px 20px;
    margin-bottom: 26px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

.sidebar-user .avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 20px 35px rgba(34, 211, 238, 0.2);
}

.sidebar-user h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-user span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.sidebar-nav__block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav__label {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    color: rgba(203, 213, 255, 0.5);
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
    border: 1px solid transparent;
    position: relative;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast), border var(--transition-fast);
}

.sidebar-nav a i {
    font-size: 1.1rem;
    color: var(--color-secondary);
    transition: transform var(--transition-fast);
}

.sidebar-nav a:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(99, 102, 241, 0.22));
    color: var(--color-text-primary);
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateX(6px);
}

.sidebar-nav a:hover i {
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.25));
    color: var(--color-text-primary);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 16px 24px rgba(99, 102, 241, 0.25);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.sidebar-cta {
    display: block;
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.28));
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    border: 1px solid rgba(34, 211, 238, 0.32);
}
/* şurada biraz sıkıntı var gibi */

.app-main {
    flex: 1;
    transition: margin-left var(--transition-base);
    min-height: 100vh;
    width: 100%;
}

/* şurada biraz sıkıntı var gibi  sorunlu css */
/* şurada biraz sıkıntı var gibi geldi bana*/


.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 42px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(8, 12, 36, 0.92) 0%, rgba(8, 12, 36, 0.85) 70%, rgba(8, 12, 36, 0) 100%);
    backdrop-filter: blur(16px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.topbar-title span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.4px;
}

.topbar-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: rgba(12, 18, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 10px 42px 10px 44px;
    color: var(--color-text-secondary);
    min-width: 260px;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.search-bar i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.user-chip img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.user-chip span {
    font-size: 0.85rem;
    font-weight: 500;
}

.quick-button {
    padding: 10px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--color-text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.quick-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.3);
}

.quick-button i {
    font-size: 0.95rem;
}

.app-content {
    padding: 0 clamp(24px, 3vw, 48px) 48px clamp(24px, 3vw, 48px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin: 12px 0 36px;
    display: grid;
    gap: 16px;
}

.page-title {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.page-subtitle {
    max-width: 680px;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.metrics-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(6, 9, 26, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.24), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-card .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-muted);
}

.metric-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 12px 0 4px;
}

.metric-card .trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-secondary);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(99, 102, 241, 0.26));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--color-text-primary);
}

.section-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 26px 28px;
    box-shadow: 0 18px 55px rgba(7, 10, 26, 0.42);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 65%);
    opacity: 0.65;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-header h3 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h3 i {
    font-size: 1.3rem;
    color: var(--color-secondary);
}

.section-header span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.table-modern {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(5, 9, 26, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.14);
    table-layout: auto;
}

.table-modern thead {
    background: linear-gradient(135deg, rgba(15, 20, 48, 0.95), rgba(28, 35, 78, 0.9));
}

.table-modern th {
        text-transform: uppercase;
        font-size: 0.72rem;
        letter-spacing: 1.6px;
        color: var(--color-text-muted);
        padding: 14px 12px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.16);
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: nowrap;
        min-width: 120px;
    }

.table-modern td {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.08);
        color: var(--color-text-secondary);
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        vertical-align: middle;
        min-width: 100px;
    }

.table-modern tbody tr {
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.table-modern tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-pill i {
    font-size: 0.75rem;
}

.status-pill.approved {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}

.status-pill.pending {
    background: rgba(251, 191, 36, 0.16);
    color: #facc15;
}

.status-pill.rejected {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.14);
    color: var(--color-secondary);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border-radius: 14px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.32);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 209, 0.3);
    color: var(--color-text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(248, 113, 113, 0.75));
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.32);
}

.btn-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(252, 211, 77, 0.66));
    color: #0f172a;
    box-shadow: 0 14px 32px rgba(251, 191, 36, 0.28);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-bar .form-select,
.filter-bar .form-control {
    min-width: 180px;
    background: rgba(12, 18, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-text-secondary);
}

.form-card {
    background: var(--color-surface-strong);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 20px 55px rgba(8, 12, 36, 0.5);
}

.form-title {
    margin-bottom: 22px;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-label {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-control,
.form-select {
    background: rgba(9, 12, 38, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--color-text-primary);
    padding: 12px 14px;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(13, 18, 46, 0.92);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    color: var(--color-text-primary);
}

.input-group-text {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--color-text-secondary);
}

.card-glass {
    background: rgba(13, 19, 45, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 18px 40px rgba(8, 12, 36, 0.5);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 75%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card-glass:hover::after {
    opacity: 1;
}

.timeline {
    display: grid;
    gap: 16px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.35) 0%, rgba(34, 211, 238, 0.35) 100%);
}

.timeline-item {
    position: relative;
    margin-left: 40px;
    padding: 12px 16px;
    background: rgba(12, 18, 42, 0.72);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(34, 211, 238, 0.7));
    border: 2px solid rgba(9, 12, 38, 0.9);
}

.empty-state {
    padding: 60px 32px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(15, 21, 48, 0.6);
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.empty-state i {
    font-size: 2.8rem;
    display: inline-flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(99, 102, 241, 0.14);
    margin-bottom: 18px;
}

.card-highlight {
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 55px rgba(34, 211, 238, 0.2);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 209, 0.16);
    color: var(--color-text-secondary);
    font-size: 0.82rem;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.14));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -60px;
    right: -40px;
    filter: blur(10px);
}

.hero-banner h1 {
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero-banner p {
    color: rgba(226, 232, 255, 0.82);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.chip-counter {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 209, 0.35);
    background: rgba(10, 16, 45, 0.8);
}

.list-cards {
    display: grid;
    gap: 18px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(9, 14, 38, 0.75);
}

.list-card span {
    color: var(--color-text-muted);
}

.table-wrapper {
    background: rgba(10, 16, 40, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 18px 55px rgba(5, 9, 26, 0.48);
    padding: 20px;
    overflow: auto;
    max-width: 100%;
}

table.table-modern + .table-footer {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 18px 6px 6px;
}

.table-footer strong {
    color: var(--color-text-secondary);
}

.stats-mini {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.stats-mini .item {
    background: rgba(99, 102, 241, 0.14);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.84rem;
    color: var(--color-text-secondary);
}

.card-split {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.chart-container {
    position: relative;
    min-height: 280px;
}

.badge-light {
    color: var(--color-text-muted);
    background: rgba(148, 163, 209, 0.1);
    border-radius: 999px;
    padding: 5px 12px;
}

.progress {
    background: rgba(99, 102, 241, 0.18);
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(34, 211, 238, 0.85));
    border-radius: 999px;
}

.table-modern .highlight {
    color: var(--color-secondary);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-secondary);
    font-size: 0.78rem;
}

.card-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(34, 211, 238, 0.24);
    color: var(--color-secondary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 1px;
}

.app-footer {
    margin-top: auto;
    padding: 32px 42px 48px;
    color: rgba(148, 163, 209, 0.6);
    font-size: 0.82rem;
    text-align: center;
}

.app-footer span {
    color: var(--color-secondary);
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), rgba(8, 12, 36, 0.92)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
}

.login-card {
    width: min(440px, 100%);
    background: rgba(12, 16, 40, 0.86);
    border-radius: var(--radius-lg);
    padding: 38px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 40px 80px rgba(3, 6, 20, 0.65);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--color-text-muted);
    margin-bottom: 26px;
}

.alert-custom {
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Modal overrides */
.modal-content {
    background: rgba(13, 17, 44, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    color: var(--color-text-primary);
}

.modal-header {
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

.modal-footer {
    border-top-color: rgba(99, 102, 241, 0.15);
}

/* SweetAlert custom */
.swal2-popup {
    background: rgba(9, 13, 40, 0.98) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 24px 60px rgba(8, 12, 36, 0.65) !important;
    color: var(--color-text-secondary) !important;
}

.swal2-title {
    color: var(--color-text-primary) !important;
}

.swal2-confirm {
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85)) !important;
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.28) !important;
}

.swal2-cancel {
    border-radius: 14px !important;
    background: rgba(148, 163, 209, 0.12) !important;
    border: 1px solid rgba(148, 163, 209, 0.32) !important;
    color: var(--color-text-primary) !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(9, 12, 34, 0.6);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(34, 211, 238, 0.8));
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(34, 211, 238, 1));
}

/* Tablo wrapper'ına üst scroll bar eklemek için */
.table-wrapper {
    position: relative;
}

/* Üst scroll bar için container */
.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: rgba(10, 16, 40, 0.5);
}

/* Üst scroll bar için dummy div */
.table-scroll-top-inner {
    height: 1px;
    background: transparent;
}

/* Üst scroll bar stilleri */
.table-scroll-top::-webkit-scrollbar {
    height: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
}

.table-scroll-top::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(34, 211, 238, 0.8));
    border-radius: 6px;
    border: 2px solid rgba(10, 16, 40, 0.7);
}

.table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 1), rgba(34, 211, 238, 1));
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    background: rgba(10, 16, 40, 0.7);
    padding: 10px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin: 0 -20px;
    /* Scroll bar'ı her zaman görünür yap */
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(99, 102, 241, 0.1);
}

/* Alt scroll bar stilleri */
.table-responsive::-webkit-scrollbar {
    height: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(34, 211, 238, 0.8));
    border-radius: 6px;
    border: 2px solid rgba(10, 16, 40, 0.7);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 1), rgba(34, 211, 238, 1));
}

.table-responsive .table-modern {
    min-width: 1200px;
}

/* Özel sütun genişlikleri */
.table-modern th:nth-child(1),
.table-modern td:nth-child(1) {
    width: 80px;
    min-width: 80px;
}

.table-modern th:nth-child(2),
.table-modern td:nth-child(2) {
    width: 140px;
    min-width: 140px;
}

.table-modern th:nth-child(3),
.table-modern td:nth-child(3) {
    width: 200px;
    min-width: 200px;
}

.table-modern th:nth-child(4),
.table-modern td:nth-child(4) {
    width: 120px;
    min-width: 120px;
}

.table-modern th:nth-child(5),
.table-modern td:nth-child(5) {
    width: 160px;
    min-width: 160px;
}

.table-modern th:nth-child(6),
.table-modern td:nth-child(6) {
    width: 110px;
    min-width: 110px;
}

.table-modern th:nth-child(7),
.table-modern td:nth-child(7) {
    width: 130px;
    min-width: 130px;
}

.table-modern th:nth-child(8),
.table-modern td:nth-child(8) {
    width: 110px;
    min-width: 110px;
}

.table-modern th:nth-child(9),
.table-modern td:nth-child(9) {
    width: 120px;
    min-width: 120px;
}

.table-modern th:nth-child(10),
.table-modern td:nth-child(10) {
    width: 100px;
    min-width: 100px;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
    }
}

.badge-neutral {
    background: rgba(148, 163, 209, 0.12);
    color: var(--color-text-secondary);
    padding: 5px 12px;
    border-radius: 999px;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.18));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0.4;
}

.table-modern .avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.table-modern .text-muted {
    color: var(--color-text-muted) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .app-topbar {
        padding: 22px 26px 10px;
    }

    .app-content {
        padding: 0 clamp(20px, 3vw, 40px) 48px clamp(20px, 3vw, 40px);
        width: 100%;
        max-width: none;
        margin: 0;
}
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 30% 0 0;
        max-width: 320px;
        transform: translateX(-110%);
        border-right: 1px solid rgba(99, 102, 241, 0.3);
        border-bottom-right-radius: var(--radius-lg);
        border-top-right-radius: var(--radius-lg);
        box-shadow: var(--shadow-strong);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .app-content {
        padding: 0 20px 40px 20px;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .app-topbar {
        position: static;
        padding: 20px 20px 8px;
    }

    .search-bar input {
        min-width: 0;
        width: 100%;
    }

    .user-chip {
        display: none;
    }

    .hero-banner {
        padding: 26px;
    }
}

@media (max-width: 768px) {
    .app-content {
        padding: 0 20px 48px 20px;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .section-card,
    .form-card,
    .card-glass {
        padding: 22px;
    }

    .table-modern td,
    .table-modern th {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
    
    .table-wrapper {
        padding: 12px 8px;
        margin: 0 -8px;
    }

    .table-modern th {
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 1.6px;
        color: var(--color-text-muted);
        padding: 10px 8px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.16);
    }

    .table-modern td {
        padding: 10px 8px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.08);
        color: var(--color-text-secondary);
        font-size: 0.75rem;
        min-width: 80px;
    }

    .hero-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-banner p {
        margin: 0 auto;
    }

    .quick-button {
        width: 100%;
        justify-content: center;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .topbar-left {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-actions {
        gap: 10px;
    }

    .search-bar {
        width: 100%;
    }

    .metric-card {
        padding: 18px;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.highlight-pulse {
    animation: pulseGlow 1.8s ease-in-out infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #60c5f7, #8b5cf6, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-border {
    position: relative;
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.shadow-primary {
    box-shadow: 0 24px 45px rgba(99, 102, 241, 0.35);
}

.shadow-secondary {
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}



/* Layout alignment adjustments */
.app-content > .page-header,
.app-content > .hero-banner,
.app-content > .metrics-grid,
.app-content > .section-card,
.app-content > .row,
.app-content > .form-card,
.app-content > .card-glass,
.app-content > .app-footer {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.table-wrapper {
    padding-left: clamp(12px, 2vw, 20px);
    padding-right: clamp(12px, 2vw, 20px);
}




