/* VDS Tasks - Custom Styles
 * Markenfarben: #2366AD (Primary Royal Blue), #0A1E3A (Dark Navy)
 */

:root {
    --vds-primary: #2366AD;
    --vds-primary-dark: #1A4F8A;
    --vds-secondary: #0A1E3A;
    --vds-bg: #F5F7FB;
    --vds-bg-column: #EDF1F7;
    --vds-border: #E0E7F1;
    --vds-text: #0A1E3A;
    --vds-text-muted: #6B7A92;
    --vds-warning: #F59E0B;
    --vds-error: #DC2626;
    --vds-success: #10B981;
}

html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--vds-bg);
    color: var(--vds-text);
    margin: 0;
    padding: 0;
}

/* === Kanban-Board === */
.board-container {
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow-x: auto;
    min-height: calc(100vh - 120px);
}

.board-column {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 380px;
    background: var(--vds-bg-column);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.board-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--vds-border);
}

.board-column-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--vds-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-column-counter {
    background: var(--vds-primary);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* === Karte === */
.board-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.board-card:hover {
    box-shadow: 0 4px 12px rgba(10, 30, 58, 0.12);
    transform: translateY(-1px);
}

.board-card.priority-urgent {
    border-left-color: var(--vds-error);
}

.board-card.priority-high {
    border-left-color: var(--vds-warning);
}

.board-card.priority-normal {
    border-left-color: var(--vds-primary);
}

.board-card.priority-low {
    border-left-color: #B8C2D1;
}

.customer-name {
    color: var(--vds-primary);
    font-weight: 600;
    font-size: 13px;
}

.customer-name.clickable:hover {
    text-decoration: underline;
    cursor: pointer;
}

.ticket-number {
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 11px;
    color: var(--vds-text-muted);
}

.intern-badge {
    display: inline-block;
    background: var(--vds-secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* === Login === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A1E3A 0%, #2366AD 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(10, 30, 58, 0.25);
    width: 100%;
    max-width: 420px;
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
}

.login-title {
    text-align: center;
    color: var(--vds-secondary);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    color: var(--vds-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* === Hours Page === */
.kpi-card {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--vds-border);
}

.kpi-label {
    font-size: 12px;
    color: var(--vds-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vds-primary);
    margin-top: 4px;
}

.locked-row {
    opacity: 0.7;
    background: #FAFBFD;
}

/* === Misc === */
.footer-version {
    position: fixed;
    bottom: 8px;
    right: 12px;
    font-size: 10px;
    color: var(--vds-text-muted);
    opacity: 0.6;
    font-family: 'Roboto Mono', monospace;
    pointer-events: none;
    z-index: 1;
}

/* Blazor error UI */
#blazor-error-ui {
    background: var(--vds-error);
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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


.checklist-ghost {
    opacity: 0.4;
    background: #E8F0FA;
    border: 1px dashed #2366AD !important;
    border-radius: 6px;
}
.checklist-chosen {
    background: #F4F7FB;
    border-radius: 6px;
}


/* ── Kanban Drag & Drop ──────────────────────────────────────────── */
.kanban-drop-zone {
    transition: background 0.15s;
}

/* Karte im Drag-Zustand */
.kanban-drag {
    opacity: 0.95;
    transform: rotate(1.5deg) scale(1.02);
    box-shadow: 0 8px 24px rgba(35,102,173,0.22) !important;
    cursor: grabbing !important;
}

/* Ghost-Platzhalter in der Zielspalte */
.kanban-ghost {
    opacity: 0.35;
    background: #E8F0FA !important;
    border: 1px dashed #2366AD !important;
    border-radius: 8px;
}

/* Karte beim Antippen (vor dem Ziehen) */
.kanban-chosen {
    box-shadow: 0 4px 12px rgba(35,102,173,0.18) !important;
}

/* Drag-Cursor auf Karten-Wrapper */
[data-task-id] { cursor: grab; }
[data-task-id]:active { cursor: grabbing; }
