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

.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1rem;
}

.nav-menu {
    padding-top: 1rem;
}

.nav-item {
    padding: 0.5rem 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.nav-link:hover {
    background-color: #e9ecef;
}

.nav-link.active {
    background-color: #0d6efd;
    color: white;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.content {
    padding: 2rem;
    flex: 1;
    position: relative;
}

.notification-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(420px, calc(100vw - 2rem));
    z-index: 1055;
}

.timer-container {
    padding: 1rem;
}

.running-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 0.5rem;
}

.timer-info {
    flex: 1;
}

.timer-display {
    font-size: 2rem;
    font-family: monospace;
    font-weight: bold;
}

.elapsed-time {
    color: #dc3545;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.timesheet-day-card {
    min-height: 100%;
}

.timesheet-entry-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0;
    border-top: 1px solid #e9ecef;
}

.timesheet-entry-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.timesheet-entry-meta {
    min-width: 0;
}

.timesheet-entry-actions {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 767.98px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #dee2e6;
    }

    .content {
        padding: 1rem;
    }

    .timesheet-entry-row {
        grid-template-columns: auto 1fr;
    }

    .timesheet-entry-actions {
        grid-column: 1 / -1;
        white-space: normal;
    }
}
