/* YONETİO360 - Kurumsal SaaS Tasarım Sistemi */
:root {
    --y-primary: #1e3a8a;
    --y-primary-dark: #0f172a;
    --y-primary-light: #3b82f6;
    --y-accent: #10b981;
    --y-accent-dark: #059669;
    --y-warning: #f59e0b;
    --y-danger: #ef4444;
    --y-bg: #f8fafc;
    --y-surface: #ffffff;
    --y-border: #e2e8f0;
    --y-text-main: #1e293b;
    --y-text-muted: #64748b;
    --y-sidebar-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--y-bg);
    color: var(--y-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.app-sidebar {
    width: var(--y-sidebar-width);
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.25s ease-in-out;
    z-index: 1000;
}

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

.brand-badge {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.75rem 0.75rem 0.25rem 0.75rem;
    font-weight: 700;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

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

.nav-item-link.active {
    color: #ffffff;
    background-color: #1e3a8a;
    font-weight: 600;
}

.nav-item-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);
    background: rgba(0, 0, 0, 0.2);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Navbar */
.app-header {
    height: 64px;
    background: var(--y-surface);
    border-bottom: 1px solid var(--y-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-site-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f172a;
}

.trial-pill {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid #fde68a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trial-pill:hover {
    background: #fde68a;
    color: #78350f;
}

/* Content */
.app-content {
    padding: 1.5rem;
    flex: 1;
}

/* Cards & Stats */
.card-stat {
    background: var(--y-surface);
    border: 1px solid var(--y-border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--y-text-muted);
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.25rem 0;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--y-text-muted);
}

/* Tables */
.table-custom {
    background: var(--y-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--y-border);
}

.table-custom thead {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

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

/* Badges */
.badge-status {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-paid {
    background: #dcfce7;
    color: #15803d;
}

.badge-pending {
    background: #fef3c7;
    color: #b45309;
}

.badge-overdue {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-partial {
    background: #e0e7ff;
    color: #4338ca;
}

/* Buttons */
.btn-y-primary {
    background-color: #1e3a8a;
    color: #ffffff;
    border: 1px solid #1e3a8a;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 6px;
}

.btn-y-primary:hover {
    background-color: #172554;
    color: #ffffff;
}

.btn-y-accent {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid #10b981;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 6px;
}

.btn-y-accent:hover {
    background-color: #059669;
    color: #ffffff;
}
