/* Twoclock Styles */

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

body {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: white;
    color: #2c3e50;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Switzer', sans-serif;
    color: #2c3e50;
}

button, .btn {
    font-family: 'Switzer', sans-serif;
}

/* Top Navigation */
.top-nav {
    background: white;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand-link{
    text-decoration: none;
}
.nav-brand {
    font-family: 'Chillax', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0066ff;
    letter-spacing: -0.05em;
}

.nav-menu {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 20px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.15s ease;
    position: relative;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #0066ff;
}

.nav-link.active {
    background: #0066ff;
    color: white;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: #f5f5f5;
}

.hamburger-btn i {
    --ggs: 1;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-user-mobile {
    display: none;
}

.nav-logout-link {
    font-size: 0.875rem;
    color: #ff3b30;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.nav-logout-link:hover {
    color: #cc2f26;
    text-decoration: underline;
}

.nav-user-desktop {
    display: flex;
}

.nav-username {
    font-weight: 500;
    color: #2c3e50;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    color: #ff3b30;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-logout:hover {
    background: #ff3b30;
    color: white;
    border-color: #ff3b30;
    transform: none;
}

#view-container {
    min-height: calc(100vh - 64px);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}
#app > div > .container{
    filter:drop-shadow(0px 0px 40px #00000011);
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}

/* Buttons */
button, .btn {
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

button:active, .btn:active {
    transform: scale(0.98);
    opacity: 0.8;
}

button:disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #0066ff;
    color: white;
}

.btn-success {
    background: #00c853;
    color: white;
}

.btn-warning {
    background: #ff9500;
    color: white;
}

.btn-danger {
    background: #ff3b30;
    color: white;
}

.btn-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: none;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="time"],
input[type="number"],
select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: #0066ff;
    background: #fafafa;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #2c3e50;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row > * {
    flex: 1;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.message-success {
    background: #efd;
    color: #229954;
    border: 1px solid #27ae60;
}

.message-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #2196f3;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Inline spinner for buttons */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filter-row-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-input,
.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 180px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-checkbox-label span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.flex {
    display: flex;
}

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

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

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* Calendar Widget */
.calendar-card {
    margin-bottom: 20px;
}

.calendar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width:400px;
    margin:0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #3498db;
    color: white;
}

.calendar-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #ecf0f1;
    padding: 6px 0;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    color: #7f8c8d;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 6px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    user-select: none;
    position: relative;
    /* Use box-shadow instead of border so gradient background fills full area */
    box-shadow: inset 0 0 0 2px transparent;
}

.calendar-day .day-number {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.calendar-day:not(.empty):hover {
    box-shadow: inset 0 0 0 2px #3498db;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px #1976d2;
}

.calendar-day.today .day-number {
    font-weight: 700;
    color: #1976d2;
}

.calendar-day.selected {
    box-shadow: inset 0 0 0 3px #3498db;
}

.calendar-day.selected .day-number {
    font-weight: 700;
    color: #2c3e50;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Calendar Toggle Button */
.date-display-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-toggle-btn {
    background: #f5f5f5;
    color: #2c3e50;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-toggle-btn:hover {
    background: #e5e5e5;
    transform: scale(1.05);
}

.calendar-toggle-btn i {
    --ggs: 0.9;
}

/* Date Navigation */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.date-display {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.date-nav-buttons {
    display: flex;
    gap: 8px;
}

.date-nav-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
}

.btn-today {
    padding: 8px 16px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-today:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Live Tracking Controls */
.tracking-idle,
.tracking-active,
.tracking-paused {
    text-align: center;
}

.tracking-status-text {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.tracking-timer-section {
    margin-bottom: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tracking-status-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-timer {
    font-size: 2rem;
    font-weight: 600;
    color: #00c853;
    font-family: 'Martian Mono', monospace;
    margin: 12px 0;
}

.tracking-timer.pause {
    color: #ff9500;
}

.tracking-start-time {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-top: 8px;
}

.tracking-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.tracking-description-input {
    margin-bottom: 20px;
}

.tracking-description-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn-large {
    font-size: 1.1rem;
    padding: 14px 32px;
}

.tracking-active {
    /* border-left removed */
}

.tracking-paused {
    /* border-left removed */
}

/* Entries List */
.entries-list {
    margin-top: 16px;
}

.entry-item {
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.entry-item-clickable {
    cursor: pointer;
}

.entry-item-clickable:hover {
    background: #f5f5f5;
    border-color: #e5e5e5;
}

.entry-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.entry-time-column {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-time-column .time-display {
    font-weight: 500;
}

.entry-time-column .entry-duration {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
}

.entry-actions .btn-icon {
    background: transparent;
    color: #2c3e50;
}

.entry-actions .btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.entry-actions .btn-success {
    color: #27ae60;
}

.entry-actions .btn-success:hover {
    background: rgba(39, 174, 96, 0.1);
}

.entry-actions .btn-danger {
    color: #e74c3c;
}

.entry-actions .btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.entry-icon i {
    --ggs: 0.9;
}

.entry-type-label {
    font-weight: 600;
    color: #2c3e50;
}

.time-display {
    font-family: 'Martian Mono', monospace;
    font-size: 1rem;
    color: #2c3e50;
}

.entry-duration {
    color: #95a5a6;
    font-size: 0.9rem;
}

.live-indicator {
    color: #27ae60;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.entry-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-icon i {
    --ggs: 0.9;
    display: block;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-icon-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.btn-primary.btn-icon {
    background: #3498db;
    color: white;
}

.btn-primary.btn-icon:hover {
    background: #2980b9;
}

.btn-pickup {
    color: #3498db;
}

.btn-pickup:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

/* Icons in all buttons - proper sizing */
button i[class^="gg-"],
.btn i[class^="gg-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Default icon size in regular buttons */
.btn-primary i,
.btn-secondary i,
.btn-success i,
.btn-danger i,
.btn-warning i {
    --ggs: 0.85;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.entry-edit-input {
    width: 80px;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-family: 'Martian Mono', monospace;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.entry-edit-input-compact {
    width: 60px;
    padding: 2px 6px;
    font-size: 0.9rem;
    font-family: 'Martian Mono', monospace;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Daily Summary */
.daily-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #ecf0f1;
}

.daily-summary > .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom:20px;
}

.status-urlaub {
    background: #e3f2fd;
    color: #1976d2;
}

.status-krankenstand {
    background: #fff3e0;
    color: #f57c00;
}

.status-feiertag {
    background: #f3e5f5;
    color: #7b1fa2;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-item.highlight {
    background: #ecf0f1;
    border: 2px solid #3498db;
}

.summary-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.summary-value.positive {
    color: #27ae60;
}

.summary-value.negative {
    color: #e74c3c;
}

/* User Management */
#users-table-container {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 16px;
    width: 100%;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid #ecf0f1;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-employee {
    background: #e3f2fd;
    color: #1976d2;
}

.role-manager {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    vertical-align: middle;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.user-inactive {
    opacity: 0.6;
}

.user-inactive td {
    color: #95a5a6;
}

.user-row-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.user-row-clickable:hover {
    background-color: #f8f9fa;
}

.user-form {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 2px solid #3498db;
}

.user-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: space-between;
    align-items: center;
}

.form-actions > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.advanced-settings-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.advanced-settings-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.advanced-settings-buttons {
    display: flex;
    gap: 12px;
}

/* Overview Page */
.overview-list {
    margin-top: 24px;
    width: 100%;
}

.overview-list table,
.detail-table-responsive table {
    width: 100%;
    table-layout: auto;
}

.detail-table-responsive {
    width: 100%;
}

.overview-user-row {
    cursor: pointer;
    transition: background 0.2s;
}

.overview-user-row:hover {
    background: #f8f9fa;
}

.current-period-row {
    background: #e3f2fd;
    font-weight: 600;
}

.current-period-row:hover {
    background: #d1e7fd;
}

.future-period-row {
    opacity: 0.5;
}

.detail-header {
    margin-bottom: 24px;
}

.detail-header h2 {
    margin: 12px 0 16px 0;
    color: #2c3e50;
}

.employee-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.summary-stat {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ecf0f1;
}

.summary-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.summary-value.positive {
    color: #27ae60;
}

.summary-value.negative {
    color: #e74c3c;
}

.detail-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
    text-align: center;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-toggle .btn {
    min-width: 100px;
}

.detail-export {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.detail-export-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-export-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

.detail-export .btn {
    display: inline-flex;
    align-items: center;
}

.export-month-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    min-width: 120px;
}

.detail-export-box {
    margin-top: 32px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
}

.detail-export-title {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.summary-row {
    background: #f8f9fa;
    font-weight: 600;
    border-top: 2px solid #dee2e6;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

.mb-3 {
    margin-bottom: 16px;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.month-display {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 200px;
    text-align: center;
}

.overview-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
}

.overview-table th {
    background: #2c3e50;
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.overview-table .sticky-col {
    position: sticky;
    left: 0;
    background: #2c3e50;
    z-index: 11;
    text-align: left;
    min-width: 120px;
}

.overview-table .sticky-col-2 {
    position: sticky;
    left: 120px;
    background: #2c3e50;
    z-index: 11;
    min-width: 60px;
}

.overview-table .day-header {
    min-width: 45px;
    font-size: 0.8rem;
}

.overview-table .summary-col {
    background: #34495e;
    font-weight: 700;
    min-width: 70px;
}

.overview-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ecf0f1;
}

.overview-table tbody .sticky-col {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    border-right: 2px solid #bdc3c7;
}

.overview-table tbody .sticky-col-2 {
    background: #f8f9fa;
    color: #7f8c8d;
    border-right: 2px solid #bdc3c7;
}

.overview-table tbody tr:hover td {
    background: #ecf0f1;
}

.overview-table tbody tr:hover .sticky-col,
.overview-table tbody tr:hover .sticky-col-2 {
    background: #dfe6e9;
}

.day-cell {
    font-family: 'Martian Mono', monospace;
    font-weight: 500;
}

.empty-cell {
    color: #bdc3c7;
}

.status-urlaub-cell {
    background: #e3f2fd !important;
    font-size: 1.2rem;
}

.status-krankenstand-cell {
    background: #fff3e0 !important;
    font-size: 1.2rem;
}

.status-feiertag-cell {
    background: #f3e5f5 !important;
    font-size: 1.2rem;
}

.user-name {
    cursor: pointer;
}

.user-name:hover {
    color: #3498db;
}

.summary-col.positive {
    color: #27ae60;
}

.summary-col.negative {
    color: #e74c3c;
}

/* Manual Entry Row: form + status in one row */
.manual-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.manual-entry-row .inline-entry-form {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
    min-width: 0;
}

/* Day Status Selector - in grid area on desktop */
.day-status-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 14px;
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-btn i {
    --ggs: 1;
}

.status-btn:hover:not(:disabled) {
    background: #d5dbdb;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-btn.active {
    border-color: #3498db;
    background: #e3f2fd;
    color: #1976d2;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.status-btn.status-feiertag.active {
    border-color: #7b1fa2;
    background: #f3e5f5;
    color: #7b1fa2;
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.status-hint {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: right;
    font-style: italic;
}

/* Manual Entry Form */
#manual-entry-form {
    margin-top: 0;
}

#manual-entry-form .form-row {
    align-items: center;
}

/* Private entry form - needs its own border when not in manual-entry-row */
#private-entry-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

/* Login page specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.app-logo {
    text-align: center;
    margin-bottom: 32px;
}

.app-logo h1 {
    font-family: 'Chillax', sans-serif;
    color: #0066ff;
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.05em;
}

.app-logo-text {
    font-family: 'Chillax', sans-serif;
    color: #0066ff;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 24px 0;
    letter-spacing: -0.05em;
    text-align: center;
}

.text-link {
    color: #0066ff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    button, .btn {
        width: 100%;
        margin-bottom: 8px;
        min-height: 36px;
        font-size: 16px;
    }
    
.btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    --ggs: 0.8;
}
    
    input, select, textarea {
        min-height: 44px;
        font-size: 16px;
    }
    
    .login-card {
        padding: 24px;
        margin: 12px;
    }
    
    .app-logo h1 {
        font-size: 2rem;
    }
    
    /* Top Nav Mobile */
    .top-nav {
        height: 60px;
        padding: 12px 16px;
        justify-content: space-between;
    }
    
    .top-nav .nav-menu {
        flex: none;
    }
    
    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
        order: 2;
        margin-bottom:0;
    }
    
    .nav-brand {
        flex-shrink: 0;
        order: 1;
    }
    
    .nav-user-desktop {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    
    .nav-menu.mobile-open {
        max-height: 400px;
    }
    
    .nav-menu .nav-link {
        display: block;
        text-align: left;
        width: 100%;
        padding: 16px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        font-weight: 500;
        background: transparent;
    }
    
    .nav-menu .nav-link:last-of-type {
        border-bottom: none;
    }
    
    .nav-menu .nav-link:hover {
        background: #f8f9fa;
    }
    
    .nav-menu .nav-link.active {
        background: rgba(0, 102, 255, 0.08);
        color: #0066ff;
    }
    
    .nav-user-mobile {
        display: block;
        padding: 12px 20px 16px;
        border-top: 1px solid #e8e8e8;
        background: #fafafa;
    }
    
    .nav-user-mobile .nav-logout-link {
        display: inline-block;
    }
    
    #view-container {
        min-height: calc(100vh - 200px);
    }
    
    .date-nav {
        flex-direction: row;
        gap: 12px;
        padding:10px 20px;
    }
    .date-nav-buttons{
        display:none;
    }
    .calendar-toggle-btn{
        margin-bottom:0;
    }
    
    .date-display {
        font-size: 1.1rem;
    }
    
    .date-display-wrapper {
        flex-direction: row;
        gap: 8px;
        width:100%;
        justify-content:space-between;
    }
    
    .inline-entry-form {
        flex-wrap: wrap;
    }
    
    .inline-entry-form select,
    .inline-entry-form input {
        min-width: 100px;
    }
    
    .calendar-toggle-btn {
        width: 36px;
        height: 36px;
    }
    
    .calendar-legend {
        font-size: 0.7rem;
        gap: 8px;
        padding: 10px;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
    .entry-type-label{
        display:none;
    }
    .entry-time-column{
        flex-direction: column;
        align-items: flex-start;
        gap:0;
    }
    /* Hide entry-actions column when not in edit mode */
    .entry-item:not(.entry-item-editing) .entry-actions {
        display: none;
    }
    
    .entry-item:not(.entry-item-editing) {
        grid-template-columns: 30px 1fr!important;
    }
    
    /* In edit mode: show icon only, hide type label text */
    .entry-item-editing .entry-type-label {
        display: none;
    }
    
    /* In edit mode: smaller first column (icon only) */
    .entry-item-editing {
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        align-items: flex-start;
    }
    .entry-item-editing > .entry-type{
        width:40px;
        height:50px;
    }
    .entry-item-editing > .entry-time-column{
        width:calc(100% - 60px);
    }
    .entry-item-editing > .entry-actions{
        width:100%;
    }
    .entry-item-editing > .entry-actions > div{
        flex-direction: row-reverse;
        width:100%;
    }
    .entry-item-editing > .entry-actions > div > button{
        border:1px solid #ddd;
    }
    
    /* User Management: filter row - column layout */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row-controls {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
        min-width: 0;
    }
    
    /* User edit form: bottom buttons in column */
    .user-form .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .user-form .form-actions > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-form .advanced-settings-buttons {
        flex-direction: column;
    }
    
    .user-form .advanced-settings-buttons .btn,
    .user-form .form-actions .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Employee Overview: responsive table as cards */
    .overview-table-responsive .overview-employee-table {
        display: block;
        width: 100%;
    }
    
    .overview-table-responsive .overview-employee-table tbody {
        display: block;
        width: 100%;
    }
    
    .overview-table-responsive .overview-employee-table thead {
        display: none;
    }
    
    .overview-table-responsive .overview-employee-table tbody tr {
        display: block;
        width: 100%;
        border: 1px solid #ecf0f1;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fafafa;
    }
    
    .overview-table-responsive .overview-employee-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }
    
    .overview-table-responsive .overview-employee-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 0.85rem;
        margin-right: 12px;
    }
    
    /* Employee Detailed: year switcher + week/month in columns */
    .detail-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .year-selector {
        justify-content: center;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .detail-export-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-export .btn,
    .export-month-select {
        width: 100%;
    }
    
    /* Employee Detailed: responsive months/weeks tables */
    .detail-table-responsive .detail-months-table,
    .detail-table-responsive .detail-weeks-table {
        display: block;
        width: 100%;
    }
    
    .detail-table-responsive .detail-months-table tbody,
    .detail-table-responsive .detail-weeks-table tbody {
        display: block;
        width: 100%;
    }
    
    .detail-table-responsive .detail-months-table thead,
    .detail-table-responsive .detail-weeks-table thead {
        display: none;
    }
    
    .detail-table-responsive .detail-months-table tbody tr,
    .detail-table-responsive .detail-weeks-table tbody tr {
        display: block;
        width: 100%;
        border: 1px solid #ecf0f1;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fafafa;
    }
    
    .detail-table-responsive .detail-months-table tbody td,
    .detail-table-responsive .detail-weeks-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }
    
    .detail-table-responsive .detail-months-table tbody td::before,
    .detail-table-responsive .detail-weeks-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 0.85rem;
        margin-right: 12px;
    }
    
}

/* ============================================================================
   Password Reset Styles
   ============================================================================ */

.mt-3 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.day-status-buttons .status-info {
    text-align: right;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.status-info i {
    --ggs: 0.8;
}

/* ============================================================================
   View Mode Navigation
   ============================================================================ */

.view-mode-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
}

.view-mode-btn {
    padding: 4px 12px;
    background: transparent;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.15s ease;
    border:1px solid transparent;
    font-size:14px;
}

.view-mode-btn:hover {
    background: #fff;
}

.view-mode-btn.active {
    border:1px solid #2980b9;
    color:#2980b9;
}

/* Hide split view button on mobile */
@media (max-width: 1024px) {
    .view-mode-split {
        display: none;
    }
}

/* ============================================================================
   Two Column Tracking Layout
   ============================================================================ */

.tracking-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

/* View mode: Work only */
.tracking-columns.mode-work {
    grid-template-columns: 1fr;
}

/* View mode: Tasks only */
.tracking-columns.mode-tasks {
    grid-template-columns: 1fr;
}

/* Split view: status buttons in new row, 50/50 full width */
.tracking-columns.mode-split .manual-entry-row {
    flex-direction: column;
    align-items: stretch;
}

.tracking-columns.mode-split .day-status-buttons {
    width: 100%;
    align-items: stretch;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ecf0f1;
}

.tracking-columns.mode-split .status-buttons {
    width: 100%;
}

.tracking-columns.mode-split .status-buttons .status-btn {
    flex: 1;
}

.tracking-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Inline Entry Form */
.inline-entry-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.inline-entry-form select,
.inline-entry-form input[type="time"],
.inline-entry-form input[type="text"] {
    padding: 8px 12px;
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
}

.inline-entry-form select {
    max-width: 120px;
}

.inline-entry-form input[type="time"],
.inline-entry-form input[placeholder="HH:MM"] {
    max-width: 100px;
    font-family: 'Martian Mono', monospace;
    text-align: center;
}

.inline-entry-form .btn-compact,
.inline-entry-form button[type="submit"] {
    height: 38px;
    min-height: 38px;
    padding: 8px 16px !important;
    min-width: 38px !important;
    box-sizing: border-box;
    font-size: 1.2rem !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Private Task Tracking Styles */

.private-task-item {
    grid-template-columns: 40px 1fr 120px;
}

.entry-time-column-with-desc {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.entry-time-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.private-task-description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.private-task-description-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.private-tasks-summary {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: right;
    font-size: 1.1rem;
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 1024px) {
    .tracking-columns {
        grid-template-columns: 1fr;
    }
    
    /* Force single column view on mobile, disable split mode */
    .tracking-columns.mode-split {
        grid-template-columns: 1fr;
    }
    
    .view-mode-nav {
        gap: 4px;
    }
    
    .view-mode-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Status buttons in new row, 50/50 full width */
    .manual-entry-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .day-status-buttons {
        width: 100%;
        align-items: stretch;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #ecf0f1;
    }
    
    .status-buttons {
        width: 100%;
    }
    
    .status-buttons .status-btn {
        flex: 1;
    }
    
    /* Hide entry-actions column when not in edit mode */
    .entry-item:not(.entry-item-editing) .entry-actions {
        display: none;
    }
    
    .entry-item:not(.entry-item-editing) {
        grid-template-columns: 90px 1fr;
    }
    
    .private-task-item:not(.entry-item-editing) {
        grid-template-columns: 40px 1fr;
    }
    /* In edit mode: show icon only, hide type label text */
    .entry-item-editing .entry-type-label {
        display: none;
    }
    
    /* In edit mode: smaller first column (icon only) */
    .entry-item-editing {
        grid-template-columns: 30px 1.8fr 0.2fr;
    }
}

/* ============================================================================
   Tooltip System (replaces alert/confirm)
   ============================================================================ */

.tooltip-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tooltip-overlay.tooltip-visible {
    pointer-events: auto;
    opacity: 1;
}

.tooltip-box {
    position: fixed;
    min-width: 220px;
    max-width: 360px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10001;
}

.tooltip-message {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-line;
}

.tooltip-message.tooltip-error {
    color: #e74c3c;
}

.tooltip-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
