/* ============================================
   ZEITKONTO BASE STYLES
   Tab-Layout, Filter, Cards, Spinner, Responsive
   ============================================ */
body.zeitkonto-fullwidth-page { margin: 0 !important; padding: 0 !important; }
body.zeitkonto-fullwidth-page #wpadminbar { display: none !important; }
body.zeitkonto-fullwidth-page .site-header, body.zeitkonto-fullwidth-page .site-footer, body.zeitkonto-fullwidth-page header, body.zeitkonto-fullwidth-page footer { display: none !important; }
.zeitkonto-fullwidth { margin: 0 !important; padding: 2rem !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; background: #F3F4F6 !important; }
.zeitkonto-fullwidth * { box-sizing: border-box; }
.zeitkonto-container { max-width: 1400px !important; margin: 0 auto !important; padding: 0 !important; background: #fff !important; border-radius: 8px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; overflow: hidden !important; }
.zeitkonto-header { margin-bottom: 0; padding: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #4F46E5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); color: white; }
.zeitkonto-header h2 { margin: 0 0 0.5rem 0 !important; color: white !important; font-size: 2rem !important; }
.zeitkonto-toolbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem; background: #F9FAFB; border-bottom: 1px solid #E5E7EB; }
.zeitkonto-tabs { display: inline-flex; gap: 2px; background: #E5E7EB; padding: 3px; border-radius: 10px; flex: 1; max-width: 500px; }
.zeitkonto-tab { flex: 1; padding: 0.55rem 1rem; background: transparent; border: none; border-radius: 7px; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: #6B7280; transition: all 0.15s; text-align: center; font-family: inherit; white-space: nowrap; }
.zeitkonto-tab:hover:not(.active) { color: #4F46E5; }
.zeitkonto-tab.active { background: #fff; color: #4F46E5; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.zeitkonto-tab-content { display: none; padding: 1.5rem; }
.zeitkonto-tab-content.active { display: block; }

.zk-settings-btn { flex: 0 0 auto; padding: 0.5rem 0.7rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.05rem; line-height: 1; transition: all 0.15s; font-family: inherit; }
.zk-settings-btn:hover { border-color: #4F46E5; background: #F5F3FF; transform: rotate(30deg); }

/* Settings-Modal: Shortcode-Container-Overrides */
.zk-settings-modal { width: 640px; max-width: 95vw; }
.zk-settings-body > div { background: transparent !important; padding: 0 !important; margin: 0 !important; max-width: none !important; box-shadow: none !important; border-radius: 0 !important; }
.zk-settings-body h3 { margin-top: 0 !important; display: none; }
.zk-settings-body table { font-size: 0.9rem; }
.zk-settings-body table th, .zk-settings-body table td { padding: 10px 8px !important; }
.zeitkonto-model-switch { display: flex; gap: 0.5rem; background: #F3F4F6; padding: 0.25rem; border-radius: 6px; }
.zeitkonto-model-switch button { padding: 0.5rem 1rem; border: none; background: transparent; border-radius: 4px; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: #6B7280; transition: all 0.2s; }
.zeitkonto-model-switch button.active { background: #4F46E5; color: white; box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2); }
.zeitkonto-model-switch button:hover:not(.active) { background: #E5E7EB; color: #374151; }
.zeitkonto-filter { display: flex; gap: 1rem; margin-bottom: 0; padding: 1rem 1.5rem; background: #F9FAFB; align-items: center; }

/* Zeitraum-Trigger Button */
.zk-zeitraum-trigger { padding: 0.5rem 1rem; border: 2px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #334155; transition: all 0.15s; font-family: inherit; }
.zk-zeitraum-trigger:hover { border-color: #4F46E5; color: #4F46E5; }

/* Zeitraum-Modal (Chefboard-Style) */
.fmcb-dp-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99999; align-items: center; justify-content: center; }
.fmcb-dp-overlay.fmcb-dp-open { display: flex; }
.fmcb-dp-modal { background: #fff; border-radius: 16px; width: 480px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 1.5rem; }
.fmcb-dp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.fmcb-dp-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.fmcb-dp-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #94a3b8; line-height: 1; padding: 0.25rem; }
.fmcb-dp-close:hover { color: #334155; }
.fmcb-dp-preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.fmcb-dp-preset-btn { padding: 0.4rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; cursor: pointer; font-size: 0.82rem; font-family: inherit; transition: all 0.15s; font-weight: 500; color: #374151; }
.fmcb-dp-preset-btn:hover { background: #4F46E5; color: #fff; border-color: #4F46E5; }
.fmcb-dp-preset-btn.active { background: #4F46E5; color: #fff; border-color: #4F46E5; }
.zk-date-range-inputs { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.5rem; padding: 1rem; background: #f8fafc; border-radius: 10px; }
.zk-date-range-inputs label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 500; color: #64748b; font-size: 0.8rem; flex: 1; }
.zk-date-range-inputs input[type="date"] { padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; background: #fff; font-family: inherit; width: 100%; }
.zk-date-separator { color: #94a3b8; font-size: 1.2rem; font-weight: 300; padding-top: 1.2rem; }
.fmcb-dp-selection-info { text-align: center; padding: 0.75rem; font-size: 0.9rem; font-weight: 500; color: #4F46E5; margin: 0.5rem 0; }
.fmcb-dp-footer { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }
.fmcb-btn { padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit; border: none; }
.fmcb-btn-ghost { background: #f1f5f9; color: #334155; }
.fmcb-btn-ghost:hover { background: #e2e8f0; }
.fmcb-btn-primary { background: #4F46E5; color: #fff; }
.fmcb-btn-primary:hover { background: #4338CA; }
.zeitkonto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.zeitkonto-card { padding: 1.5rem; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); color: white; border-radius: 8px; }
.zeitkonto-card h3 { margin: 0 0 1rem 0; font-size: 0.875rem; text-transform: uppercase; opacity: 0.9; }
.zeitkonto-card .value { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1; }
.zeitkonto-card.positive { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.zeitkonto-card.negative { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.zeitkonto-debug { background: #1F2937; color: #F9FAFB; padding: 1rem; border-radius: 8px; font-family: monospace; font-size: 12px; overflow-x: auto; margin-top: 1rem; max-height: 400px; overflow-y: auto; }
.zeitkonto-spinner { display: inline-block; width: 50px; height: 50px; border: 4px solid #E5E7EB; border-top: 4px solid #4F46E5; border-radius: 50%; animation: zeitkonto-spin 1s linear infinite; }
@keyframes zeitkonto-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .zeitkonto-fullwidth { padding: 1rem !important; }
    .zeitkonto-container { padding: 1rem !important; }
    .zeitkonto-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    .zeitkonto-card {
        padding: 1rem !important;
    }
    .zeitkonto-card h3 {
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .zeitkonto-card .value {
        font-size: 1.75rem !important;
    }
    .zeitkonto-toolbar {
        padding: 0.6rem 0.75rem !important;
        gap: 0.5rem !important;
    }
    .zeitkonto-tab-content {
        padding: 1rem 0.75rem !important;
    }
    .zeitkonto-filter {
        padding: 0.75rem 0.75rem !important;
        gap: 0.5rem !important;
        flex-wrap: wrap;
    }
    .zeitkonto-tabs {
        max-width: none !important;
    }
    .zeitkonto-tab {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    .zk-settings-modal {
        width: 95vw;
    }
}
