/**
 * TimeLight v1.3.0 - Main Stylesheet
 * Simplified MVP
 */

/* SVG Icons */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    margin-right: 6px;
}
.icon-lg { width: 1.25em; height: 1.25em; }

button .icon, .delete-btn .icon, .download-btn .icon {
    margin-right: 6px;
}

.history-details .icon, .archive-meta .icon {
    margin-right: 4px;
    margin-left: 8px;
}

.history-details .icon:first-child, .archive-meta .icon:first-child {
    margin-left: 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-color, #FFF5E6);
    min-height: 100vh;
    padding: 20px;
    color: #111;
    transition: background 0.3s ease;
}

/* Theme Colors */
:root {
    /* Default Theme */
    --color-programmieren: #5B9BD5;
    --color-meeting: #BE3455;
    --color-emails: #F59E0B;
    --color-recherche: #43B5AE;
    --color-planung: #B5A8D3;
    --color-dokumentation: #84CC16;
    --color-pause: #6B7280;

    /* Theme-specific */
    --header-bg: #5B9BD5;
    --text-primary: #111;
    --text-secondary: #666;
    --bg-primary: white;
    --bg-secondary: #f5f5f5;
    --border-color: #111;
    --card-bg: white;
    --work-btn-active: #DC2626;
    --work-btn-active-border: #991B1B;
}

/* High Contrast Theme */
body.theme-contrast {
    --color-programmieren: #000;
    --color-meeting: #DC2626;
    --color-emails: #000;
    --color-recherche: #000;
    --color-planung: #666;
    --color-dokumentation: #000;
    --color-pause: #666;
    --header-bg: #000;
    --text-primary: #000;
    --text-secondary: #333;
    --bg-primary: #fff;
    --bg-secondary: #f0f0f0;
    --border-color: #000;
    --card-bg: #fff;
    --work-btn-active: #DC2626;
    --work-btn-active-border: #991B1B;
    --bg-color: #fff !important;
}

body.theme-contrast .header {
    background: #000 !important;
}

body.theme-contrast .stat-card {
    border-color: #000;
}

body.theme-contrast .stat-card .value {
    color: #000;
}

body.theme-contrast .stat-card.today-time .value,
body.theme-contrast .stat-card.today-activities .value,
body.theme-contrast .stat-card.average .value {
    color: #000;
}

body.theme-contrast .stat-card.pauses .value {
    color: #DC2626;
}

body.theme-contrast .btn-start,
body.theme-contrast .btn-pause,
body.theme-contrast .btn-export,
body.theme-contrast .btn-archive {
    border-color: #000;
    color: #000;
}

body.theme-contrast .btn-start:hover,
body.theme-contrast .btn-pause:hover,
body.theme-contrast .btn-export:hover,
body.theme-contrast .btn-archive:hover {
    background: #000;
    color: #fff;
}

body.theme-contrast .btn-stop {
    border-color: #DC2626;
    color: #DC2626;
}

body.theme-contrast .btn-stop:hover {
    background: #DC2626;
    color: #fff;
}

body.theme-contrast .quick-work-btn {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.theme-contrast .quick-work-btn:hover {
    background: #f0f0f0;
}

body.theme-contrast .quick-work-btn.active {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

body.theme-contrast .tab.active {
    background: #fff;
    border-color: #000;
}

body.theme-contrast .tab:not(.active) {
    background: #e5e5e5;
}

body.theme-contrast .history-duration {
    color: #000;
}

body.theme-contrast .archive-name {
    color: #000;
}

body.theme-contrast .feedback-btn {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.theme-contrast .feedback-btn:hover {
    background: #f0f0f0;
}

/* Dark Theme */
body.theme-dark {
    --color-programmieren: #60A5FA;
    --color-meeting: #F87171;
    --color-emails: #FBBF24;
    --color-recherche: #34D399;
    --color-planung: #A78BFA;
    --color-dokumentation: #4ADE80;
    --color-pause: #9CA3AF;
    --header-bg: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --border-color: #374151;
    --card-bg: #1F2937;
    --work-btn-active: #EF4444;
    --work-btn-active-border: #DC2626;
    --bg-color: #111827 !important;
}

body.theme-dark {
    background: #111827 !important;
    color: #F9FAFB;
}

body.theme-dark .container {
    background: #1F2937;
    border-color: #374151;
}

body.theme-dark .header {
    background: #1F2937 !important;
    border-bottom: 1px solid #374151;
}

body.theme-dark .content {
    background: #1F2937;
}

body.theme-dark .stat-card {
    background: #111827;
    border-color: #374151;
    color: #F9FAFB;
}

body.theme-dark .stat-card h3 {
    color: #9CA3AF;
}

body.theme-dark .stat-card .label {
    color: #9CA3AF;
}

body.theme-dark .stat-card.today-time { border-color: #60A5FA; }
body.theme-dark .stat-card.today-time .value { color: #60A5FA; }
body.theme-dark .stat-card.today-activities { border-color: #34D399; }
body.theme-dark .stat-card.today-activities .value { color: #34D399; }
body.theme-dark .stat-card.average { border-color: #FBBF24; }
body.theme-dark .stat-card.average .value { color: #FBBF24; }
body.theme-dark .stat-card.pauses { border-color: #F87171; }
body.theme-dark .stat-card.pauses .value { color: #F87171; }

body.theme-dark .tracker-section {
    background: #111827;
    border-color: #374151;
}

body.theme-dark .input-group label {
    color: #D1D5DB;
}

body.theme-dark .input-group select,
body.theme-dark .input-group input {
    background: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

body.theme-dark .timer-display {
    background: #111827;
    border-color: #374151;
    color: #F9FAFB;
}

body.theme-dark .status.stopped {
    background: #374151;
    color: #9CA3AF;
    border-color: #4B5563;
}

body.theme-dark .status.running {
    background: #064E3B;
    color: #34D399;
    border-color: #10B981;
}

body.theme-dark .status.paused {
    background: #78350F;
    color: #FBBF24;
    border-color: #F59E0B;
}

body.theme-dark button {
    background: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
}

body.theme-dark button:hover {
    background: #374151;
}

body.theme-dark .btn-start { border-color: #34D399; color: #34D399; }
body.theme-dark .btn-start:hover { background: #34D399; color: #111827; }
body.theme-dark .btn-stop { border-color: #F87171; color: #F87171; }
body.theme-dark .btn-stop:hover { background: #F87171; color: #111827; }
body.theme-dark .btn-pause { border-color: #FBBF24; color: #FBBF24; }
body.theme-dark .btn-pause:hover { background: #FBBF24; color: #111827; }
body.theme-dark .btn-export { border-color: #60A5FA; color: #60A5FA; }
body.theme-dark .btn-export:hover { background: #60A5FA; color: #111827; }
body.theme-dark .btn-archive { border-color: #A78BFA; color: #A78BFA; }
body.theme-dark .btn-archive:hover { background: #A78BFA; color: #111827; }

body.theme-dark .tabs {
    border-color: #374151;
}

body.theme-dark .tab {
    background: #111827;
    border-color: #374151;
    color: #9CA3AF;
}

body.theme-dark .tab.active {
    background: #1F2937;
    color: #F9FAFB;
    border-bottom-color: #1F2937;
}

body.theme-dark .tab:not(.active) {
    background: #111827;
}

body.theme-dark .history-item,
body.theme-dark .archive-item {
    background: #111827;
    border-color: #374151;
}

body.theme-dark .history-item:hover,
body.theme-dark .archive-item:hover {
    border-color: #4B5563;
}

body.theme-dark .history-activity {
    color: #F9FAFB;
}

body.theme-dark .history-details,
body.theme-dark .archive-meta {
    color: #9CA3AF;
}

body.theme-dark .history-duration {
    color: #34D399;
}

body.theme-dark .archive-name {
    color: #A78BFA;
}

body.theme-dark .delete-btn {
    background: #1F2937;
    border-color: #F87171;
    color: #F87171;
}

body.theme-dark .delete-btn:hover {
    background: #F87171;
    color: #111827;
}

body.theme-dark .download-btn {
    background: #1F2937;
    border-color: #34D399;
    color: #34D399;
}

body.theme-dark .download-btn:hover {
    background: #34D399;
    color: #111827;
}

body.theme-dark .empty-state {
    color: #6B7280;
}

body.theme-dark .quick-work-btn {
    background: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
}

body.theme-dark .quick-work-btn:hover {
    background: #374151;
}

body.theme-dark .quick-work-btn.active {
    background: #EF4444;
    border-color: #DC2626;
    color: #fff;
}

body.theme-dark .feedback-btn {
    background: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
}

body.theme-dark .feedback-btn:hover {
    background: #374151;
}

body.theme-dark .user-info {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .version-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark footer > div {
    background: #1F2937;
    border-color: #374151;
}

body.theme-dark footer a {
    color: #D1D5DB;
}

/* Modal dark theme */
body.theme-dark .modal-content {
    background: #1F2937;
    border-color: #374151;
}

body.theme-dark .modal-header {
    border-color: #374151;
}

body.theme-dark .modal-header h2 {
    color: #F9FAFB;
}

body.theme-dark .modal-close {
    color: #9CA3AF;
}

body.theme-dark .modal-close:hover {
    color: #F9FAFB;
}

body.theme-dark .settings-section {
    border-color: #374151;
}

body.theme-dark .settings-section h3 {
    color: #F9FAFB;
}

body.theme-dark .settings-row {
    border-color: #374151;
}

body.theme-dark .settings-row label {
    color: #D1D5DB;
}

body.theme-dark .toggle-group {
    background: #111827;
    border-color: #374151;
}

body.theme-dark .toggle-btn {
    color: #9CA3AF;
}

body.theme-dark .toggle-btn:hover {
    background: #374151;
    color: #F9FAFB;
}

body.theme-dark .toggle-btn.active {
    background: #F9FAFB;
    color: #111827;
}

body.theme-dark .theme-btn {
    background: #111827;
    border-color: #374151;
    color: #9CA3AF;
}

body.theme-dark .theme-btn:hover {
    border-color: #4B5563;
    background: #1F2937;
}

body.theme-dark .theme-btn.active {
    border-color: #F9FAFB;
    background: #1F2937;
    color: #F9FAFB;
}

body.theme-dark .form-group label {
    color: #D1D5DB;
}

body.theme-dark .form-group input {
    background: #111827;
    border-color: #374151;
    color: #F9FAFB;
}

body.theme-dark .form-group input:disabled {
    background: #111827;
    color: #6B7280;
}

body.theme-dark .btn-primary {
    background: #F9FAFB;
    color: #111827;
    border-color: #F9FAFB;
}

body.theme-dark .btn-primary:hover {
    background: #D1D5DB;
}

body.theme-dark .data-action {
    background: #111827;
    border-color: #374151;
}

body.theme-dark .data-action.danger-zone {
    background: #450a0a;
    border-color: #7f1d1d;
}

body.theme-dark .data-action-info strong {
    color: #F9FAFB;
}

body.theme-dark .data-action-info p {
    color: #9CA3AF;
}

body.theme-dark .btn-secondary {
    background: #1F2937;
    border-color: #60A5FA;
    color: #60A5FA;
}

body.theme-dark .btn-secondary:hover {
    background: #60A5FA;
    color: #111827;
}

body.theme-dark .btn-danger {
    background: #1F2937;
    border-color: #F87171;
    color: #F87171;
}

body.theme-dark .btn-danger:hover {
    background: #F87171;
    color: #111827;
}

body.theme-dark .btn-logout-full {
    background: #111827;
    border-color: #374151;
    color: #9CA3AF;
}

body.theme-dark .btn-logout-full:hover {
    background: #F9FAFB;
    color: #111827;
    border-color: #F9FAFB;
}

/* Onboarding dark */
body.theme-dark .onboarding-slide h2 {
    color: #F9FAFB;
}

body.theme-dark .onboarding-slide p {
    color: #D1D5DB;
}

body.theme-dark .onboarding-dots .dot {
    background: #374151;
    border-color: #4B5563;
}

body.theme-dark .onboarding-dots .dot.active {
    background: #F9FAFB;
    border-color: #F9FAFB;
}

body.theme-dark .btn-skip {
    background: #1F2937;
    border-color: #374151;
    color: #9CA3AF;
}

body.theme-dark .btn-skip:hover {
    background: #374151;
    color: #F9FAFB;
}

body.theme-dark .btn-next {
    background: #F9FAFB;
    color: #111827;
    border-color: #F9FAFB;
}

body.theme-dark .btn-next:hover {
    background: #34D399;
    border-color: #34D399;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    border: 3px solid #111;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    background: #5B9BD5;
    color: white;
    padding: 20px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.header-center {
    text-align: center;
    flex: 1;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

/* Quick Work Button */
.quick-work-btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.3em;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border: 4px solid #111;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    text-transform: none;
    letter-spacing: 0;
    min-width: auto;
    flex: none;
}

.quick-work-btn:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
    background: #fff;
    color: #111;
}

.quick-work-btn.active {
    background: #DC2626;
    color: white;
    border-color: #991B1B;
    animation: pulse-red 2s infinite;
}

.quick-work-btn.active:hover {
    background: #B91C1C;
    color: white;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(220, 38, 38, 0); }
}

.version-badge {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feedback-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #111;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.feedback-btn:hover {
    background: #FEF3C7;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.user-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.85em;
    transition: all 0.2s;
    min-width: auto;
    box-shadow: none;
}

.logout-btn:hover {
    background: white;
    color: #111;
    transform: none;
    box-shadow: none;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 12px;
    min-width: auto;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-btn.active {
    background: white;
    color: #111;
}

.content {
    padding: 30px;
}

/* Auth Styles */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 3px solid #111;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    color: #111;
    font-size: 24px;
    font-weight: 600;
}

.auth-tabs {
    display: flex;
    margin-bottom: 0;
    border-bottom: 3px solid #111;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: #e5e5e5;
    border: 3px solid #111;
    border-bottom: 3px solid #111;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    margin-bottom: -3px;
    box-shadow: none !important;
    transform: none !important;
    position: relative;
}

.auth-tab:first-child {
    border-radius: 12px 0 0 0;
}

.auth-tab:last-child {
    border-radius: 0 12px 0 0;
    border-left: none;
}

.auth-tab.active {
    background: white;
    border-bottom: 3px solid white;
    z-index: 1;
}

.auth-form {
    display: none;
    padding-top: 30px;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 3px solid #111;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: white;
    border: 3px solid #111;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.auth-btn:hover {
    background: white;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.auth-success {
    background: #D1FAE5;
    color: #065F46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.forgot-password-link,
.back-to-login-link {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link a,
.back-to-login-link a {
    color: #5B9BD5;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.forgot-password-link a:hover,
.back-to-login-link a:hover {
    text-decoration: underline;
}

.forgot-password-info {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e5e5;
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    color: #111;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #111;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 0.9em;
    opacity: 0.6;
}

.stat-card.today-time { border-color: var(--color-programmieren); }
.stat-card.today-time .value { color: var(--color-programmieren); }

.stat-card.today-activities { border-color: var(--color-recherche); }
.stat-card.today-activities .value { color: var(--color-recherche); }

.stat-card.average { border-color: var(--color-emails); }
.stat-card.average .value { color: var(--color-emails); }

.stat-card.pauses { border-color: var(--color-meeting); }
.stat-card.pauses .value { color: var(--color-meeting); }

/* Charts */
.chart-section {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid #111;
}

.chart-section h2 {
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    height: 450px;
}

.chart-container.presence-chart {
    height: 500px;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Tracker */
.tracker-section {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid #111;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 12px;
    border: 3px solid #111;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.timer-display {
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color: #111;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    padding: 20px;
    border: 3px solid #111;
    border-radius: 20px;
    background: #fff;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    min-width: 120px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid #111;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    background: #fff;
    color: #111;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

button:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.btn-start { border-color: var(--color-recherche); color: var(--color-recherche); }
.btn-start:hover { background: var(--color-recherche); color: white; }

.btn-stop { border-color: var(--color-meeting); color: var(--color-meeting); }
.btn-stop:hover { background: var(--color-meeting); color: white; }

.btn-pause { border-color: var(--color-emails); color: var(--color-emails); }
.btn-pause:hover { background: var(--color-emails); color: white; }

.btn-export { border-color: var(--color-programmieren); color: var(--color-programmieren); }
.btn-export:hover { background: var(--color-programmieren); color: white; }

.btn-archive { border-color: var(--color-planung); color: var(--color-planung); }
.btn-archive:hover { background: var(--color-planung); color: white; }

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    background: #fff;
    color: inherit;
}

/* Status */
.status {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid;
}

.status.running { background: #d1fae5; color: #065f46; border-color: #10b981; }
.status.paused { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.status.stopped { background: #f3f4f6; color: #6b7280; border-color: #9ca3af; }

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 3px solid #111;
    flex-wrap: wrap;
    position: relative;
}

.tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 3px solid #111;
    border-bottom: 3px solid #111;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    flex: none;
    min-width: auto;
    margin-bottom: -3px;
    position: relative;
    box-shadow: none !important;
    transform: none !important;
}

.tab.active {
    color: #111;
    background: #fff;
    border-bottom: 3px solid #fff;
    z-index: 1;
}

.tab:not(.active) {
    border-bottom-color: #111;
    background: #e5e5e5;
}

.tab:hover:not(.active) {
    background: #f0f0f0;
    color: #111;
}

.tab:hover {
    transform: none;
    box-shadow: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* History List */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    background: white;
    border: 3px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: #111;
}

.history-info {
    flex: 1;
}

.history-activity {
    font-weight: 700;
    font-size: 1.1em;
    color: #111;
    margin-bottom: 5px;
}

.history-details {
    font-size: 0.9em;
    color: #666;
}

.history-duration {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-recherche);
    min-width: 100px;
    text-align: right;
}

.delete-btn {
    background: #fff;
    color: var(--color-meeting);
    border: 2px solid var(--color-meeting);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    min-width: auto;
}

.delete-btn:hover {
    background: var(--color-meeting);
    color: white;
}

/* Archive */
.archive-item {
    background: white;
    border: 3px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-item:hover {
    border-color: #111;
}

.archive-info {
    flex: 1;
}

.archive-name {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-planung);
    margin-bottom: 5px;
}

.archive-meta {
    font-size: 0.9em;
    color: #666;
}

.archive-actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    background: #fff;
    color: var(--color-recherche);
    border: 2px solid var(--color-recherche);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-width: auto;
}

.download-btn:hover {
    background: var(--color-recherche);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #111;
}

/* Weekly Schedule */
.schedule-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    overflow-x: auto;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 2px;
    min-width: 700px;
}

.schedule-header {
    background: #111;
    color: white;
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 6px;
}

.schedule-time {
    background: #f5f5f5;
    padding: 8px 5px;
    text-align: center;
    font-size: 0.75em;
    font-weight: 600;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-cell {
    min-height: 28px;
    background: #fafafa;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.schedule-cell:hover {
    background: #f0f0f0;
}

.schedule-cell.has-activity {
    cursor: pointer;
}

.schedule-activity {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 4px;
}

.schedule-today {
    background: #FEF3C7 !important;
}

.schedule-header.today {
    background: var(--color-emails);
}

/* Footer Mobile */
@media (max-width: 768px) {
    footer > div > div {
        text-align: center !important;
        justify-content: center !important;
    }
    footer > div > div:last-child {
        text-align: center !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .header-left,
    .header-right {
        align-items: center;
    }

    .header-left {
        order: 2;
    }

    .header-center {
        order: 1;
    }

    .header-right {
        order: 3;
        width: 100%;
    }

    .quick-work-btn {
        width: 100%;
        max-width: 280px;
    }

    .feedback-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .timer-display {
        font-size: 2.5em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-duration {
        text-align: left;
        margin-top: 10px;
    }

    .auth-container {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Settings Button */
.settings-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.85em;
    transition: all 0.2s;
    min-width: auto;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: white;
    color: #111;
    transform: none;
    box-shadow: none;
}

.settings-btn .icon {
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 20px;
    border: 3px solid #111;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 3px solid #e5e5e5;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    min-width: auto;
    box-shadow: none;
    line-height: 1;
}

.modal-close:hover {
    color: #111;
    background: none;
    transform: none;
    box-shadow: none;
}

.modal-body {
    padding: 25px;
}

/* Settings Modal */
.settings-modal {
    max-width: 550px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #111;
}

.settings-section .form-group {
    margin-bottom: 15px;
}

.settings-section .form-group input:disabled {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

/* Settings Row */
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row label {
    font-weight: 600;
    color: #333;
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    min-width: auto;
    transition: all 0.2s;
    box-shadow: none;
}

.toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: none;
    box-shadow: none;
}

.toggle-btn.active {
    background: #111;
    color: white;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 8px;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: auto;
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.theme-btn:hover {
    border-color: #999;
    background: #eee;
    transform: none;
    box-shadow: none;
}

.theme-btn.active {
    border-color: #111;
    background: white;
    color: #111;
}

.theme-preview {
    width: 40px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #111;
}

.theme-preview.default {
    background: linear-gradient(135deg, #5B9BD5 0%, #F59E0B 50%, #43B5AE 100%);
}

.theme-preview.contrast {
    background: linear-gradient(135deg, #000 0%, #fff 50%, #DC2626 100%);
}

.theme-preview.dark {
    background: linear-gradient(135deg, #1F2937 0%, #374151 50%, #4B5563 100%);
}

.btn-primary {
    background: #111;
    color: white;
    border: 3px solid #111;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: auto;
}

.btn-primary:hover {
    background: white;
    color: #111;
}

.btn-secondary {
    background: white;
    color: var(--color-programmieren);
    border: 2px solid var(--color-programmieren);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: var(--color-programmieren);
    color: white;
}

.btn-danger {
    background: white;
    color: #DC2626;
    border: 2px solid #DC2626;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-logout-full {
    width: 100%;
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout-full:hover {
    background: #111;
    color: white;
    border-color: #111;
}

/* Data Actions */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    gap: 15px;
}

.data-action.danger-zone {
    background: #FEF2F2;
    border-color: #FECACA;
}

.data-action-info {
    flex: 1;
}

.data-action-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.data-action-info p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

/* Onboarding Modal */
.onboarding-modal {
    max-width: 450px;
    text-align: center;
    overflow: hidden;
}

.onboarding-slides {
    padding: 40px 30px 20px;
}

.onboarding-slide {
    display: none;
}

.onboarding-slide.active {
    display: block;
}

.onboarding-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.onboarding-slide h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #111;
}

.onboarding-slide p {
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

.onboarding-navigation {
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.onboarding-dots {
    display: flex;
    gap: 10px;
}

.onboarding-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e5e5;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #ddd;
}

.onboarding-dots .dot.active {
    background: #111;
    border-color: #111;
}

.onboarding-dots .dot:hover {
    background: #ccc;
}

.onboarding-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.btn-skip {
    flex: 1;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-skip:hover {
    background: #f5f5f5;
    color: #111;
    border-color: #ccc;
}

.btn-next {
    flex: 2;
    background: #111;
    color: white;
    border: 3px solid #111;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next:hover {
    background: var(--color-recherche);
    border-color: var(--color-recherche);
}

.btn-next .icon {
    margin: 0;
}

/* Success/Error Messages in Settings */
.settings-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    text-align: center;
}

.settings-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.settings-message.error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #F87171;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .data-action {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .data-action button {
        width: 100%;
        justify-content: center;
    }

    .onboarding-buttons {
        flex-direction: column;
    }

    .btn-skip, .btn-next {
        flex: none;
        width: 100%;
    }
}
