:root {
    --text-main: rgb(241 245 249);
    --text-muted: rgb(148 163 184);
    --surface: rgb(15 23 42 / 0.64);
    --surface-2: rgb(30 41 59 / 0.75);
    --border-soft: rgb(71 85 105 / 0.6);
    --border-strong: rgb(100 116 139);
    --input-bg: rgb(15 23 42 / 0.95);
    --input-border: rgb(71 85 105);
}

body {
    color: var(--text-main);
}

.nav-link {
    border-radius: 9999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(51 65 85);
    transition: all 180ms ease;
}

.dark .nav-link {
    color: rgb(148 163 184);
}

.nav-link:hover {
    background: rgb(14 116 144 / 0.15);
    color: rgb(8 47 73);
}

.dark .nav-link:hover {
    background: rgb(34 211 238 / 0.2);
    color: rgb(236 254 255);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 13rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    box-shadow: 0 12px 24px rgb(2 6 23 / 0.45);
    padding: 0.35rem;
    z-index: 40;
}

.nav-dropdown-item {
    display: block;
    border-radius: 0.6rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.nav-dropdown-item:hover {
    background: rgb(34 211 238 / 0.2);
}

.card {
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 12px 32px rgb(15 23 42 / 0.15);
    backdrop-filter: blur(7px);
}

.dark .card {
    box-shadow: 0 12px 32px rgb(2 6 23 / 0.45);
}

.field {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.field:focus {
    outline: 2px solid rgb(6 182 212 / 0.45);
    outline-offset: 1px;
}

.btn {
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(8 145 178), rgb(14 116 144));
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    border: 1px solid var(--border-strong);
    color: var(--text-main);
}

.muted {
    color: var(--text-muted);
}

.soft-panel {
    background: var(--surface-2);
}

.table-head {
    color: var(--text-muted);
}

.table-row {
    border-top: 1px solid var(--border-soft);
}

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

.app-table th,
.app-table td {
    padding: 0.72rem 0.85rem;
    vertical-align: top;
}

.app-table th:first-child,
.app-table td:first-child {
    padding-left: 0;
}

.app-table th:last-child,
.app-table td:last-child {
    padding-right: 0;
}

.dashboard-table {
    table-layout: fixed;
}

.dashboard-table .col-date {
    width: 90px;
}

.dashboard-table .col-user {
    width: 130px;
}

.dashboard-table .col-client {
    width: 90px;
}

.dashboard-table .col-project {
    width: 130px;
}

.dashboard-table .col-hours {
    width: 65px;
}

.dashboard-table .col-percent {
    width: 85px;
}

.dashboard-table .col-work {
    width: auto;
}

.dashboard-table td,
.dashboard-table th {
    padding-right: 0.5rem;
}

.entries-table {
    table-layout: fixed;
}

.entries-table .col-date {
    width: 118px;
}

.entries-table .col-user {
    width: 90px;
}

.entries-table .col-client {
    width: 110px;
}

.entries-table .col-project {
    width: 150px;
}

.entries-table .col-category {
    width: 120px;
}

.entries-table .col-hours {
    width: 72px;
}

.entries-table .col-percent {
    width: 82px;
}

.entries-table .col-desc {
    width: auto;
}

.entries-table td,
.entries-table th {
    padding-right: 0.9rem;
}

.entries-table td:nth-child(2),
.entries-table th:nth-child(2) {
    padding-left: 0.85rem;
}

.project-entries-table {
    table-layout: fixed;
}

.project-entries-table .col-date {
    width: 84px;
}

.project-entries-table .col-user {
    width: 170px;
}

.project-entries-table .col-category {
    width: 110px;
}

.project-entries-table .col-short {
    width: 33%;
}

.project-entries-table .col-plain {
    width: 33%;
}

.project-entries-table .col-hours {
    width: 72px;
}

.project-entries-table .col-percent {
    width: 82px;
}

.tone-info {
    border: 1px solid rgb(103 232 249 / 0.5);
    background: rgb(207 250 254 / 0.72);
    color: rgb(8 47 73);
}

.dark .tone-info {
    border-color: rgb(34 211 238 / 0.35);
    background: rgb(8 47 73 / 0.5);
    color: rgb(207 250 254);
}

.tone-success {
    border: 1px solid rgb(110 231 183 / 0.55);
    background: rgb(220 252 231 / 0.8);
    color: rgb(6 78 59);
}

.dark .tone-success {
    border-color: rgb(16 185 129 / 0.45);
    background: rgb(6 78 59 / 0.45);
    color: rgb(209 250 229);
}

.field::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.9;
}

@media print {
    .no-print,
    header {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .print-clean,
    .card,
    .soft-panel {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #d1d5db !important;
        box-shadow: none !important;
    }

    .muted,
    .table-head {
        color: #4b5563 !important;
    }
}
