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

:root {
    --bg: radial-gradient(circle at top, #f5f7ff 0%, #eef2ff 55%, #e8f7ff 100%);
    --text: #0d1426;
    --text-strong: #0b1220;
    --text-muted: rgba(15, 23, 42, 0.75);
    --surface: rgba(255, 255, 255, 0.95);
    --surface-solid: #ffffff;
    --surface-2: rgba(15, 23, 42, 0.12);
    --border: rgba(15, 23, 42, 0.18);
    --border-soft: rgba(15, 23, 42, 0.14);
    --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid rgba(74, 108, 255, 0.85);
    outline-offset: 3px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 300px;
    padding: 32px 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-shrink: 0;
}

.brand {
    background: var(--surface-solid);
    padding: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.brand > div {
    min-width: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-group {
    margin-bottom: 0;
}

.nav-group-title {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
    margin: 8px 0 8px 12px;
    letter-spacing: 0.05em;
}

.nav-item {
    display: block;
    padding: 18px 24px;
    border-radius: 18px;
    background: var(--surface-solid);
    color: rgba(15, 23, 42, 0.76);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-soft);
}

.nav-item:hover {
    background: var(--surface-2);
    color: var(--text-strong);
    transform: translateX(4px);
    border-color: var(--border);
}

.nav-item-sub {
    padding-left: 24px;
    font-size: 14px;
    background: transparent;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    gap: 32px;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.project-chip {
    display: flex;
}

.project-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface-2);
    border-radius: 14px;
    padding: 10px 14px;
}

.project-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-select {
    background: transparent;
    border: none;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.project-select:focus {
    outline: none;
}

.user-chip,
.time-chip {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
}

.user-name, .time-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-strong);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role, .time-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Dashboard & Cards */
.hero-card {
    background: linear-gradient(135deg, #4a6cff 0%, #2b45b0 100%);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 20px 40px rgba(43, 69, 176, 0.2);
}

.hero-kicker {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.hero-card h1 {
    font-size: 36px;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Panel Grid */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    min-width: 0;
}

.panel-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(15, 23, 42, 0.84);
}

/* Funnel */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.funnel-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.72);
}

.progress {
    height: 8px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4a6cff;
    border-radius: 4px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-date {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.55);
    min-width: 80px;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
}

.activity-note {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.65);
    line-height: 1.4;
}

/* Quick Actions */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 24px;
}

.quick-grid .glass-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, background 0.2s;
}

.quick-grid .glass-card:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.03);
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: rgba(74, 108, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Alerts */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.glass-card.compact {
    padding: 24px;
}

/* Glass Card */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 24px;
    align-items: end;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.72);
}

.form-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}

.form-field.form-actions span {
    visibility: hidden;
}

.form-actions .button,
.form-actions button,
.form-actions .primary-button,
.form-actions .secondary-button {
    min-height: 44px;
}

input, select, textarea {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a6cff;
    background: var(--surface-solid);
}

.data-table td form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.data-table td form button {
    margin: 0;
}

/* Stylish Buttons & Links */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(74, 108, 255, 0.1);
    color: #82a0ff;
    border: 1px solid rgba(74, 108, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: rgba(74, 108, 255, 0.2);
    color: var(--text-strong);
    border-color: rgba(74, 108, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 108, 255, 0.15);
}

.action-button.small {
    padding: 4px 12px;
    font-size: 12px;
}

.stylish-link {
    color: rgba(15, 23, 42, 0.86);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.2);
}

.stylish-link:hover {
    color: var(--text-strong);
    border-bottom-color: rgba(15, 23, 42, 0.6);
}

.primary-link {
    color: #82a0ff;
    text-decoration: none;
    font-weight: 500;
}

.primary-link:hover {
    text-decoration: underline;
}

.section-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.primary-button {
    background: linear-gradient(135deg, #4a6cff 0%, #3b5bdb 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74, 108, 255, 0.3);
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 108, 255, 0.4);
}

.secondary-button {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-strong);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.secondary-button:hover {
    background: rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.danger-button {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.danger-button:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.button-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.icon-button-small {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-strong);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.icon-button-small:hover {
    background: rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.icon-button-small.danger:hover {
    background: rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.success-button {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.success-button:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.excel-button {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.excel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* Tables */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-card > div:first-child {
    padding: 32px 32px 0 32px;
}

.table-scroll {
    overflow-x: auto;
    padding: 24px 32px 32px 32px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.65);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 13.5px;
    color: var(--text-strong);
    vertical-align: middle;
}

/* Zebra Striping */
.data-table.zebra-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.data-table.zebra-table tbody tr:nth-child(odd) td,
.data-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.data-table.zebra-table tbody tr:hover td,
.data-table tbody tr:hover td {
    background-color: rgba(74, 108, 255, 0.06) !important;
}

/* Respect custom status background on rows */
.data-table tbody tr[style*="background: rgba"] td,
.data-table tbody tr[style*="background:rgba"] td {
    background-color: transparent !important;
}

/* Table Plan Columns & Subcells Alignment */
.table-plan-col {
    display: flex;
    flex-direction: column;
    min-width: max-content;
}

.plan-line {
    height: 26px;
    line-height: 26px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* Header Filters */
.header-titles-row th {
    border-bottom: none !important;
    padding-bottom: 4px !important;
}

.header-filters-row th {
    border-top: none !important;
    padding-top: 4px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(15, 23, 42, 0.1) !important;
}

.column-filter {
    transition: all 0.2s ease;
}

.column-filter:focus {
    border-color: #4a6cff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 108, 255, 0.2);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.data-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, background 0.2s;
}

.data-card:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.03);
}

.badge-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.badge {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: rgba(15, 23, 42, 0.7);
}

/* Login Page */
.button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 56px 56px 56px 64px;
    display: flex;
    align-items: center;
    background: url("../uploads/21_20260220122150.jpg") center/cover no-repeat;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55) 75%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.75) 100%);
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.auth-visual-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-visual-logo {
    width: 168px;
    height: 168px;
    object-fit: contain;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
}

.auth-visual-brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-visual-brand-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(242, 244, 248, 0.6);
}

.auth-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(74, 108, 255, 0.18);
    border: 1px solid rgba(74, 108, 255, 0.22);
    color: #a9bbff;
    flex-shrink: 0;
}

.auth-mini-label {
    font-weight: 700;
    color: rgba(242, 244, 248, 0.92);
    letter-spacing: -0.01em;
}

.auth-main {
    padding: 24px;
    display: grid;
    place-items: center;
    overflow-y: auto;
    height: 100%;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.03);
    color: rgba(15, 23, 42, 0.78);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-back:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.16);
    color: var(--text-strong);
    transform: translateY(-1px);
}

.auth-back:focus-visible {
    outline: 2px solid rgba(74, 108, 255, 0.65);
    outline-offset: 3px;
}

.auth-card-logo {
    width: 168px;
    height: 168px;
    object-fit: contain;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
}

.auth-card-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.auth-card-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.62);
    max-width: 340px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.72);
}

.auth-field > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input input {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    font-size: 14px;
    color: var(--text);
}

.auth-input input:focus {
    outline: none;
}

.auth-input:focus-within {
    border-color: rgba(74, 108, 255, 0.7);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px rgba(74, 108, 255, 0.16), 0 14px 30px rgba(15, 23, 42, 0.08);
}

.auth-icon-btn {
    border: none;
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.78);
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-icon-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-strong);
    transform: translateY(-1px);
}

.auth-input input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--surface-solid) inset;
    caret-color: var(--text);
}

.auth-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -2px 0 6px 0;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.02);
    color: rgba(15, 23, 42, 0.6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

.auth-step.is-active {
    color: var(--text-strong);
    border-color: rgba(74, 108, 255, 0.32);
    background: rgba(74, 108, 255, 0.08);
}

.auth-step.is-active .auth-step-dot {
    background: rgba(74, 108, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(74, 108, 255, 0.18);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.auth-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.auth-file {
    width: 100%;
}

.auth-file-preview {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.02);
}

.auth-file-preview img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 16px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: rgba(21, 25, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px;
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.login-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin: 0 auto;
}

.login-card h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.login-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(242, 244, 248, 0.7);
}

.role-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-picker-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.72);
}

.role-picker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.role-option {
    display: block;
    cursor: pointer;
}

.role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option-body {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.role-option:hover .role-option-body {
    transform: translateY(-1px);
    border-color: rgba(74, 108, 255, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.role-option input:checked + .role-option-body {
    background: rgba(74, 108, 255, 0.08);
    border-color: rgba(74, 108, 255, 0.5);
}

.role-option-title {
    font-weight: 700;
    color: var(--text-strong);
    font-size: 14px;
}

.role-option-desc {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(15, 23, 42, 0.65);
}

.login-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.6);
    margin-top: 16px;
}

.flashes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
}

.flash.error {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.flash.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
    .auth-main {
        padding: 24px;
    }
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        width: 280px;
        background: var(--surface-solid);
        z-index: 10000;
        transition: left 0.3s ease;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 20px 0 20px 20px;
    }
    .sidebar.is-open {
        left: 0;
    }
    .mobile-nav-toggle {
        display: block !important;
    }
    .main-content {
        padding: 16px;
        gap: 16px;
    }
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .top-meta {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }
    .user-chip, .time-chip {
        padding: 5px 10px;
        border: none;
    }
    .user-chip {
        flex: 1;
    }
    .time-chip {
        width: 100%;
        margin-top: 8px;
        border-top: 1px solid var(--border);
        padding-top: 12px;
    }
    .user-name, .time-value {
        font-size: 13px;
        white-space: normal;
        word-break: break-all;
    }
    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
    }
    .hero-stats {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }
    .stat-card {
        flex: 1;
        min-width: 45%;
    }
    .panel-grid, .overview-grid, .quick-grid, .form-grid, .data-grid {
        grid-template-columns: 1fr;
    }
    .glass-card {
        padding: 20px;
    }
    .table-scroll {
        padding: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    .data-table th, .data-table td {
        padding: 12px 16px;
    }
    .table-card > div:first-child {
        padding: 20px 20px 0 20px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .data-table {
        min-width: 100%;
        width: max-content;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .header-actions .button {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-strong);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.mobile-nav-toggle:hover {
    background: rgba(15, 23, 42, 0.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.is-open {
    display: block;
    opacity: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-approved {
    background-color: rgba(76, 175, 80, 0.18) !important;
    color: #7cff8e !important;
    border: 1px solid rgba(76, 175, 80, 0.35) !important;
}

.status-pending {
    background-color: rgba(241, 196, 15, 0.18) !important;
    color: #f7dc6f !important;
    border: 1px solid rgba(241, 196, 15, 0.35) !important;
}

/* Status Colors */
.status-Müsait {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-Satıldı {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(231, 76, 60, 0.4) !important;
}

.status-Opsiyon {
    background-color: rgba(155, 89, 182, 0.2) !important;
    color: #d2b4de !important;
    border: 1px solid rgba(155, 89, 182, 0.4) !important;
}

.status-Kapora {
    background-color: rgba(241, 196, 15, 0.2) !important;
    color: #f7dc6f !important;
    border: 1px solid rgba(241, 196, 15, 0.4) !important;
}

.status-Satış-Onayı-Bekliyor, .status-Onay, .status-Onay-Bekliyor {
    background-color: rgba(231, 76, 60, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px dashed rgba(231, 76, 60, 0.6) !important;
}

.status-Opsiyon-Onayı-Bekliyor {
    background-color: rgba(155, 89, 182, 0.15) !important;
    color: #d2b4de !important;
    border: 1px dashed rgba(155, 89, 182, 0.6) !important;
}

.status-Kapora-Onayı-Bekliyor {
    background-color: rgba(241, 196, 15, 0.15) !important;
    color: #f7dc6f !important;
    border: 1px dashed rgba(241, 196, 15, 0.6) !important;
}

/* Custom Tooltip */
.custom-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(21, 25, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    max-width: 250px;
    transform: translateY(10px);
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-header {
    font-weight: 600;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.tooltip-row span:last-child {
    color: white;
    font-weight: 500;
    margin-left: 12px;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e1e2d; /* Dark theme bg match */
    margin: 10% auto; 
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 50%; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}
