/* =============================================
   FITPOINT PM — Stylesheet
   Design: fitpoint kissing Corporate Identity
   Schrift: Britti Sans
   Farben: Teal #5DC1C0, Magenta #C4185A
   ============================================= */

/* ----- FONT FACE ----- */
@font-face {
    font-family: 'Britti Sans';
    src: url('../fonts/Britti-Sans-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Extra-Bold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Britti Sans'; src: url('../fonts/Britti-Sans-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }

/* ----- CSS CUSTOM PROPERTIES ----- */
:root {
    /* fitpoint Farben */
    --teal: #5DC1C0;
    --teal-dark: #4A9E9D;
    --teal-light: #e8f6f6;
    --magenta: #C4185A;
    --magenta-light: #fce8ef;
    --blue: #0090D4;
    --purple: #8530B8;

    --color-bg: #f7f7f5;
    --color-surface: #ffffff;
    --color-surface-hover: #f2f2f0;
    --color-border: rgba(0,0,0,0.08);
    --color-text: #333333;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;

    /* Accent = Teal */
    --color-accent: var(--teal);
    --color-accent-hover: var(--teal-dark);
    --color-accent-light: var(--teal-light);
    --color-accent-text: #ffffff;

    /* Status */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: var(--blue);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 56px;
    --radius: 6px;
    --radius-lg: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 1px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --transition: 200ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-surface: #242424;
    --color-surface-hover: #2e2e2e;
    --color-border: rgba(255,255,255,0.08);
    --color-text: #e8e8e8;
    --color-text-secondary: #aaaaaa;
    --color-text-muted: #777777;
    --color-accent-light: rgba(93,193,192,0.15);
    --teal-light: rgba(93,193,192,0.15);
    --magenta-light: rgba(196,24,90,0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 1px 6px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Britti Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; text-transform: lowercase; }
input, select, textarea { font: inherit; color: inherit; text-transform: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 { text-transform: lowercase; font-style: normal; }

/* ----- LAYOUT ----- */
body.has-sidebar { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-wrapper { padding: 32px; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }

/* ----- SIDEBAR ----- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}
.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 36px; height: 36px;
    background: var(--teal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; color: #fff; }
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.sidebar-close { display: none; padding: 4px; }
.sidebar-close svg { width: 24px; height: 24px; }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--color-surface-hover); color: var(--color-text); }
.nav-item.active { background: var(--teal-light); color: var(--teal-dark); }
.nav-item.active svg { color: var(--teal); }
.nav-divider { height: 1px; background: var(--color-border); margin: 12px 0; }

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-user { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logout { margin-bottom: 0 !important; padding: 8px !important; }

/* Desktop: sidebar fixed, main offset */
@media (min-width: 769px) {
    .main-content { margin-left: var(--sidebar-width); }
    .mobile-header { display: none; }
}

/* Mobile: sidebar overlay */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        position: sticky; top: 0; z-index: 50;
    }
    .hamburger { padding: 4px; }
    .hamburger svg { width: 24px; height: 24px; }
    .mobile-title { font-weight: 600; }
    .content-wrapper { padding: 20px; }
}

.overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 90;
}
.overlay.show { display: block; }

/* ----- THEME TOGGLE ----- */
.theme-toggle {
    padding: 6px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--color-surface-hover); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.theme-toggle svg { width: 18px; height: 18px; }

/* ----- PAGE HEADER ----- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: all 0.3s;
    border: 2px solid transparent;
    white-space: nowrap;
    text-transform: lowercase;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.btn-secondary { background: none; color: var(--color-text); border: 2px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn-danger { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.btn-danger:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn-ghost { color: var(--color-text-secondary); }
.btn-ghost:hover { background: var(--color-surface-hover); color: var(--color-text); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 14px; }
.btn-icon { padding: 8px; }
.btn-icon.btn-sm { padding: 5px; }

/* ----- CARDS ----- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.card-header h2, .card-header h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.card-empty {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ----- GRID ----- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----- STAT CARDS ----- */
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; color: #fff; }
.stat-icon.blue { background: var(--blue); }
.stat-icon.red { background: var(--magenta); }
.stat-icon.yellow { background: var(--color-warning); }
.stat-icon.green { background: var(--color-success); }
.stat-icon.purple { background: var(--purple); }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--color-text-secondary); font-weight: 500; letter-spacing: 0.04em; }

/* ----- BADGES ----- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.6;
    letter-spacing: 0.04em;
}
/* Task Status */
.status-neu { background: #dbeafe; color: #1d4ed8; }
.status-geplant { background: var(--teal-light); color: var(--teal-dark); }
.status-in-bearbeitung { background: #fef3c7; color: #92400e; }
.status-wartet { background: var(--magenta-light); color: var(--magenta); }
.status-blockiert { background: #fee2e2; color: #991b1b; }
.status-erledigt { background: #d1fae5; color: #065f46; }
.status-archiviert { background: var(--color-surface-hover); color: var(--color-text-muted); }
/* Ideen Status */
.status-diskussion { background: var(--teal-light); color: var(--teal-dark); }
.status-bewertet { background: #fef3c7; color: #92400e; }
.status-priorisiert { background: #dbeafe; color: #1d4ed8; }
.status-genehmigt { background: #d1fae5; color: #065f46; }
.status-zurueckgestellt { background: var(--color-surface-hover); color: var(--color-text-muted); }
.status-verworfen { background: #fee2e2; color: #991b1b; }
.status-umgewandelt { background: #d1fae5; color: #065f46; }
/* Priorität */
.priority-kritisch { background: var(--magenta-light); color: var(--magenta); }
.priority-hoch { background: #ffedd5; color: #9a3412; }
.priority-mittel { background: #fef3c7; color: #92400e; }
.priority-niedrig { background: var(--color-surface-hover); color: var(--color-text-muted); }
/* Deadline */
.deadline-overdue { background: var(--magenta-light); color: var(--magenta); }
.deadline-today { background: #fef3c7; color: #92400e; }
.deadline-soon { background: #ffedd5; color: #9a3412; }
.deadline-ok { background: var(--color-surface-hover); color: var(--color-text-muted); }

[data-theme="dark"] .badge {
    filter: brightness(0.85) saturate(1.2);
}

/* ----- AVATAR ----- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--color-surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ----- FORMS ----- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: border-color var(--transition);
    font-size: 15px;
    font-weight: 300;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: none;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; font-weight: 300; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); }

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ----- TABLES ----- */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    font-size: 14px;
}
.table th {
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    padding: 12px 14px;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-weight: 300;
}
.table tr:hover td { background: var(--color-surface-hover); }
.table .task-title-cell { max-width: 300px; }
.table .task-title-cell a { color: var(--color-text); font-weight: 500; }
.table .task-title-cell a:hover { color: var(--teal); }

/* ----- TASK CARDS LIST ----- */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.task-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.task-card-priority {
    width: 3px;
    align-self: stretch;
    flex-shrink: 0;
}
.task-card-priority.kritisch { background: var(--magenta); }
.task-card-priority.hoch { background: var(--color-warning); }
.task-card-priority.mittel { background: var(--blue); }
.task-card-priority.niedrig { background: var(--color-text-muted); }
.task-card-body { flex: 1; min-width: 0; }
.task-card-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.task-card-title a { color: var(--color-text); }
.task-card-title a:hover { color: var(--teal); }
.task-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    font-weight: 300;
}
.task-card-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ----- IDEA CARDS ----- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.idea-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.idea-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.idea-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.idea-card-title { font-weight: 700; font-size: 15px; }
.idea-card-title a { color: var(--color-text); }
.idea-card-title a:hover { color: var(--teal); }
.idea-card-desc {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 300;
    flex: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.idea-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
}
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--color-border);
    transition: all 0.3s;
    letter-spacing: 0.04em;
}
.vote-btn:hover { border-color: var(--teal); color: var(--teal); }
.vote-btn.voted { background: var(--teal); color: #fff; border-color: var(--teal); }
.vote-btn svg { width: 14px; height: 14px; }

/* Score bars */
.score-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.score-bar-track { flex: 1; height: 4px; background: var(--color-border); overflow: hidden; }
.score-bar-fill { height: 100%; transition: width .3s ease; }
.score-bar-fill.impact { background: var(--teal); }
.score-bar-fill.effort { background: var(--color-warning); }

/* ----- FILTERS BAR ----- */
.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.filter-checkbox input { cursor: pointer; }

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-bg);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: var(--color-text);
    text-transform: lowercase;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text);
}

/* ----- DETAIL PAGE ----- */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.detail-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--color-text-secondary); font-weight: 300; }
.detail-meta-item { display: flex; align-items: center; gap: 4px; }
.detail-body { margin-bottom: 24px; font-weight: 300; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 1024px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-sidebar .card { margin-bottom: 16px; }
.detail-sidebar .card h3 { font-size: 11px; font-weight: 700; text-transform: lowercase; letter-spacing: 0.1em; color: var(--color-text-secondary); margin-bottom: 12px; }
.detail-sidebar .meta-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.detail-sidebar .meta-label { color: var(--color-text-secondary); font-size: 12px; font-weight: 500; }

/* ----- COMMENTS ----- */
.comments { margin-top: 24px; }
.comment {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.comment-author { font-weight: 700; color: var(--color-text); }
.comment-time { color: var(--color-text-muted); font-weight: 300; }
.comment-text { font-size: 14px; line-height: 1.7; font-weight: 300; }
.comment-form { margin-top: 16px; }
.comment-form .form-textarea { min-height: 80px; }

/* ----- CHECKLIST ----- */
.checklist { list-style: none; }
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.checklist-item.done .checklist-text { text-decoration: line-through; color: var(--color-text-muted); }

/* ----- CALENDAR ----- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.calendar-header-cell {
    background: var(--color-surface);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}
.calendar-cell {
    background: var(--color-surface);
    min-height: 100px;
    padding: 8px;
    vertical-align: top;
}
.calendar-cell.other-month { opacity: .4; }
.calendar-cell.today { background: var(--teal-light); }
.calendar-day { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.calendar-event {
    display: block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    letter-spacing: 0.02em;
}
.calendar-event.priority-kritisch { background: var(--magenta); }
.calendar-event.priority-hoch { background: var(--color-warning); }
.calendar-event.priority-mittel { background: var(--blue); }
.calendar-event.priority-niedrig { background: var(--color-text-muted); }
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.calendar-nav h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

@media (max-width: 768px) {
    .calendar-cell { min-height: 60px; padding: 4px; }
    .calendar-event { font-size: 10px; }
}

/* ----- ACTIVITY TIMELINE ----- */
.timeline { list-style: none; }
.timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}
.timeline-dot {
    width: 8px; height: 8px;
    background: var(--teal);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.timeline-text { color: var(--color-text-secondary); font-weight: 300; }
.timeline-text strong { color: var(--color-text); font-weight: 700; }
.timeline-time { color: var(--color-text-muted); font-size: 12px; font-weight: 300; }

/* ----- FLASH MESSAGES ----- */
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    animation: flashIn .3s ease;
    border-left: 3px solid transparent;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }
.flash-icon { width: 18px; height: 18px; flex-shrink: 0; }
.flash-close { margin-left: auto; font-size: 18px; opacity: .6; padding: 2px; }
.flash-close:hover { opacity: 1; }
.flash-success { background: #d1fae5; color: #065f46; border-left-color: var(--color-success); }
.flash-error { background: var(--magenta-light); color: var(--magenta); border-left-color: var(--magenta); }
.flash-warning { background: #fef3c7; color: #92400e; border-left-color: var(--color-warning); }
.flash-info { background: #dbeafe; color: #1d4ed8; border-left-color: var(--blue); }

/* ----- LOGIN PAGE ----- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(93,193,192,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(196,24,90,0.1) 0%, transparent 50%);
    animation: loginGlow 12s ease-in-out infinite alternate;
}
@keyframes loginGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3%, 2%); }
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border-radius: 0;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--teal);
    position: relative;
    z-index: 1;
}
.login-logo {
    margin-bottom: 40px;
}
.login-logo .logo-icon {
    width: 48px; height: 48px;
    margin: 0 0 16px;
}
.login-logo h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.login-logo p { color: var(--color-text-secondary); font-size: 14px; margin-top: 4px; font-weight: 300; }
.login-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ----- PAGINATION ----- */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.page-link:hover { background: var(--color-surface-hover); color: var(--color-text); }
.page-link.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ----- MODAL ----- */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
    background: var(--color-surface);
    border-radius: 0;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--teal);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--color-border); display: flex; gap: 8px; justify-content: flex-end; }

/* ----- TABS ----- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; }
.tab {
    padding: 12px 18px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ----- TAGS DISPLAY ----- */
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
    padding: 2px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ----- UTILITIES ----- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.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; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* =============================================
   FILE EXPLORER
   ============================================= */

/* Breadcrumb */
.file-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-weight: 500;
}
.breadcrumb-item:hover { color: var(--teal); }
.breadcrumb-item:last-child { color: var(--color-text); pointer-events: none; }
.breadcrumb-sep { color: var(--color-text-muted); font-size: 12px; }
.breadcrumb-sep::after { content: '/'; }

/* Drop Zone */
.file-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--color-surface);
}
.file-dropzone:hover,
.file-dropzone.drag-over {
    border-color: var(--teal);
    background: var(--teal-light);
}
.file-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.file-dropzone-inner p { font-size: 15px; color: var(--color-text-secondary); font-weight: 300; }

/* Upload Progress */
.file-upload-progress {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}
.upload-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    overflow: hidden;
}
.upload-bar-fill {
    height: 100%;
    background: var(--teal);
    transition: width .3s ease;
    width: 0%;
}
.upload-text { font-size: 13px; color: var(--color-text-secondary); white-space: nowrap; font-weight: 500; }

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
@media (max-width: 600px) {
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* File/Folder Card */
.file-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
    min-height: 130px;
    justify-content: center;
}
.file-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--teal);
}
.file-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.file-card-icon svg { width: 24px; height: 24px; }
.file-card-icon.folder-icon { background: #fef3c7; color: #d97706; }
.file-card-icon.file-icon { background: #dbeafe; color: var(--blue); }
.file-card-icon.image-icon { background: var(--teal-light); color: var(--teal-dark); }
.file-card-icon.pdf-icon { background: var(--magenta-light); color: var(--magenta); }
.file-card-icon.doc-icon { background: #dbeafe; color: var(--blue); }
.file-card-icon.zip-icon { background: #f3e8ff; color: var(--purple); }

.file-card-name {
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: none;
}
.file-card-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 300;
}
.file-card-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s;
    padding: 0;
}
.file-card-delete svg { width: 14px; height: 14px; }
.file-card:hover .file-card-delete { opacity: 1; }
.file-card-delete:hover { background: var(--color-danger, #ef4444); color: #fff; opacity: 1; }

.file-card-shared {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    color: var(--teal);
}

/* Context Menu */
.file-context-menu {
    position: fixed;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    min-width: 180px;
    padding: 6px;
    display: none;
}
.file-context-menu.show { display: block; }
.context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    width: 100%;
    text-align: left;
    letter-spacing: 0.02em;
}
.context-item:hover { background: var(--color-surface-hover); }
.context-item svg { width: 16px; height: 16px; color: var(--color-text-secondary); }
.context-item.danger { color: var(--magenta); }
.context-item.danger svg { color: var(--magenta); }
.context-divider { height: 1px; background: var(--color-border); margin: 4px 0; }

/* Move folder list */
.move-folder-list { max-height: 300px; overflow-y: auto; }
.move-folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    margin-bottom: 4px;
}
.move-folder-item:hover {
    background: var(--teal-light);
    border-color: var(--teal);
}
.move-folder-item svg { color: #d97706; }

/* ===== CHECKLISTE ===== */
.checklist-progress {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.checklist-progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.checklist-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.checklist-progress-text {
    font-size: 13px;
    color: var(--color-text-muted);
}

.checklist-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.checklist-category {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.checklist-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.checklist-category-header h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.checklist-category-count {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    background: var(--color-border);
    padding: 2px 10px;
    border-radius: 10px;
}

.checklist-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--color-bg); }

.checklist-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.checklist-toggle:hover { color: var(--teal); }
.checklist-toggle svg { width: 22px; height: 22px; }

.checklist-icon-checked { display: none; }
.checklist-item.is-done .checklist-icon-unchecked { display: none; }
.checklist-item.is-done .checklist-icon-checked { display: block; color: var(--teal); }

.checklist-item-content {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}
.checklist-item-title {
    font-size: 14px;
    line-height: 1.4;
    display: block;
}
.checklist-item.is-done .checklist-item-title {
    text-decoration: line-through;
    color: var(--color-text-muted);
}
.checklist-item-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
    display: block;
}

/* ----- WEBSITE FEEDBACK ----- */
.website-category {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.website-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.website-item {
    border-bottom: 1px solid var(--color-border);
}
.website-item:last-child { border-bottom: none; }
.website-item.is-done .website-item-title span:first-child:not(.entity-id) {
    text-decoration: line-through;
    color: var(--color-text-muted);
}
.website-category-done { opacity: 0.7; }
.website-category-done:hover { opacity: 1; }
.website-category-done.is-collapsed .website-items { display: none; }
.website-category-done .checklist-category-header { cursor: pointer; }
.website-done-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.website-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: background 0.15s;
}
.website-item-header:hover { background: var(--color-bg); }
.website-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.website-feedback-count {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.website-feedback-count.has-feedback {
    background: var(--magenta);
    color: #fff;
    font-weight: 500;
}
.website-item-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.website-item-toggle:hover { color: var(--color-text); }
.website-item-toggle svg { transition: transform 0.2s; }
.website-item:not(.is-open) .website-item-toggle svg { transform: rotate(180deg); }

.website-item-body {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--color-border);
}
.website-item.is-open .website-item-body { display: block; }

.website-feedbacks {
    padding: 12px 0 8px;
}
.website-no-feedback {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    padding: 4px 0;
}
.website-feedback-entry {
    padding: 10px 14px;
    background: var(--color-bg);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.website-feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.website-feedback-date {
    color: var(--color-text-muted);
    font-size: 11px;
}
.website-feedback-delete {
    margin-left: auto;
    color: var(--color-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.website-feedback-entry:hover .website-feedback-delete { opacity: 1; }
.website-feedback-delete:hover { color: var(--color-danger); }
.website-feedback-text {
    font-size: 13px;
    line-height: 1.5;
    padding-left: 32px;
}

.website-feedback-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}
.website-feedback-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    font-size: 13px;
    resize: vertical;
    min-height: 36px;
}
.website-feedback-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px var(--teal-light);
}

/* ----- ZUWEISUNGEN ----- */
.assign-widget {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.assign-avatars {
    display: inline-flex;
    gap: 0;
}
.assign-avatars .avatar-xs { margin-left: -4px; border: 2px solid var(--color-surface); }
.assign-avatars .avatar-xs:first-child { margin-left: 0; }
.avatar-xs {
    width: 22px; height: 22px;
    font-size: 9px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}
.assign-btn {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px dashed var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.15s;
    flex-shrink: 0;
}
.assign-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}
.assign-dropdown {
    position: fixed;
    z-index: 200;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
    margin-top: 4px;
}
.assign-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 13px;
    text-align: left;
    transition: background 0.1s;
}
.assign-option:hover { background: var(--color-surface-hover); }
.assign-option.is-assigned { background: var(--teal-light); }

/* ----- ENTITY IDs & REFERENZEN ----- */
.entity-id {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-border);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.references-block {
    margin-top: 4px;
}
.references-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.references-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}
.references-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.references-empty {
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: italic;
}
.references-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.references-remove {
    color: var(--color-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    padding: 2px;
}
.references-item:hover .references-remove { opacity: 1; }
.references-remove:hover { color: var(--color-danger); }

.entity-ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}
.entity-ref:hover { background: var(--color-surface-hover); }
.entity-ref-code {
    font-weight: 600;
    text-transform: uppercase;
}
.entity-ref-task .entity-ref-code { color: var(--teal); }
.entity-ref-idea .entity-ref-code { color: var(--purple); }
.entity-ref-checklist .entity-ref-code { color: var(--blue); }
.entity-ref-website .entity-ref-code { color: var(--magenta); }
.entity-ref-title {
    color: var(--color-text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.references-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.references-form .form-input {
    flex: 1;
    min-width: 0;
}

.references-add-btn {
    font-size: 11px !important;
    padding: 2px 8px !important;
}
