/**
 * VLN Vorstandsprotokoll-System – Custom Styles
 */

/* ── VLN-Grün als primäre Farbe ───────────────────────────────────── */
:root {
    --vln-green:        #2e7d32;
    --vln-green-dark:   #1b5e20;
    --vln-green-light:  #e8f5e9;
    --bs-primary:               #2e7d32;
    --bs-primary-rgb:           46, 125, 50;
    --bs-link-color:            #2e7d32;
    --bs-link-color-rgb:        46, 125, 50;
    --bs-link-hover-color:      #1b5e20;
}

.btn-primary {
    --bs-btn-bg:                #2e7d32;
    --bs-btn-border-color:      #2e7d32;
    --bs-btn-hover-bg:          #1b5e20;
    --bs-btn-hover-border-color:#1b5e20;
    --bs-btn-active-bg:         #1b5e20;
    --bs-btn-focus-shadow-rgb:  46, 125, 50;
}

.btn-outline-primary {
    --bs-btn-color:             #2e7d32;
    --bs-btn-border-color:      #2e7d32;
    --bs-btn-hover-bg:          #2e7d32;
    --bs-btn-hover-border-color:#2e7d32;
    --bs-btn-active-bg:         #2e7d32;
    --bs-btn-active-border-color:#2e7d32;
}

.text-primary  { color: #2e7d32 !important; }
.bg-primary    { background-color: #2e7d32 !important; }
.border-primary{ border-color: #2e7d32 !important; }

a { color: #2e7d32; }
a:hover { color: #1b5e20; }

/* ── Layout ───────────────────────────────────────────────────────── */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.board-card {
    transition: transform 0.15s;
}

.board-card:hover {
    transform: translateY(-2px);
}

/* ── Page Header ──────────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.page-header .page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .page-header {
        flex-direction: column;
    }
    .page-header .page-actions {
        width: 100%;
    }
    .page-header .page-actions .btn {
        flex: 1 1 auto;
    }
}

/* ── Meeting-Status-Streifen ──────────────────────────────────────── */
.meeting-item {
    border-left: 3px solid #2e7d32;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.meeting-item.completed {
    border-left-color: #198754;
}

.meeting-item.cancelled {
    border-left-color: #6c757d;
}

/* ── Quill-Editor ─────────────────────────────────────────────────── */
#editor-container {
    min-height: 400px;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

#editor {
    min-height: 350px;
}

.ql-container {
    font-size: 1rem;
}

.ql-editor {
    min-height: 350px;
}

/* ── Autosave-Indikator ───────────────────────────────────────────── */
.autosave-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    font-size: 0.8rem;
    color: #6c757d;
    min-height: 2rem;
}

.autosave-bar .autosave-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #adb5bd;
    transition: background 0.3s;
}

.autosave-bar.saving .autosave-dot { background: #ffc107; }
.autosave-bar.saving .autosave-text { color: #856404; }
.autosave-bar.saved  .autosave-dot { background: #198754; }
.autosave-bar.saved  .autosave-text { color: #198754; }

/* Legacy – wird noch von alten Seiten referenziert */
.autosave-indicator         { font-size: 0.8rem; color: #6c757d; }
.autosave-indicator.saving  { color: #ffc107; }
.autosave-indicator.saved   { color: #198754; }

/* ── Empty States ─────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ── Dokument-Liste ───────────────────────────────────────────────── */
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-item .doc-icon {
    font-size: 1.4rem;
    color: #dc3545;
    flex-shrink: 0;
}

.doc-item .doc-info {
    flex: 1;
    min-width: 0;
}

.doc-item .doc-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #212529;
}

.doc-item .doc-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ── Login ────────────────────────────────────────────────────────── */
.login-card {
    max-width: 800px;
    margin: 2rem auto;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.login-brand-col {
    background: linear-gradient(160deg, #1b5e20 0%, #2e7d32 60%, #388e3c 100%);
    position: relative;
    overflow: hidden;
}

.login-brand-col::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.login-brand-col::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
}

/* ── Sonstiges ────────────────────────────────────────────────────── */
.member-role-badge {
    font-size: 0.75rem;
}

.table-documents td {
    vertical-align: middle;
}

.stats-card .display-6 {
    font-weight: 700;
}
