/* ========================================================
   Livshjul – Custom CSS
   ======================================================== */

:root {
    --lj-primary: #0d6efd;
    --lj-surface: #f8f9fa;
    --lj-card-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* --- Layout --- */
body {
    background: var(--lj-surface);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Navbar --- */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -.3px;
}

/* --- Cards --- */
.card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 10px;
}

/* --- Timeline (vis-timeline overrides) --- */
.vis-timeline {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px;
    background: #fff;
    font-family: inherit !important;
}

.vis-item {
    border-radius: 4px !important;
    font-size: .8rem !important;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.vis-item:hover {
    opacity: .85;
    transform: scaleY(1.05);
}

.vis-item.vis-selected {
    box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 0 0 5px rgba(0,0,0,.25) !important;
}

.vis-label {
    font-size: .8rem !important;
    font-weight: 600;
    padding: 4px 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vis-group {
    border-bottom: 1px solid #f0f0f0 !important;
}

.vis-time-axis .vis-text {
    font-size: .75rem !important;
    color: #6c757d;
}

.vis-current-time {
    background-color: #dc3545 !important;
    width: 2px !important;
}

/* Tooltip */
.vis-tooltip {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
    padding: 10px 14px !important;
    font-family: inherit !important;
    font-size: .85rem !important;
    max-width: 280px;
    line-height: 1.5;
}

/* --- Category buttons (add/edit event) --- */
.cat-btn {
    padding: .4rem .5rem;
    font-size: .78rem;
    transition: background .15s, color .15s, border-color .15s;
}

.cat-btn:hover {
    opacity: .85;
}

/* --- Category filter sidebar --- */
.cat-filter-item .form-check-label {
    cursor: pointer;
    font-size: .82rem;
}

/* --- Status badges --- */
.badge {
    font-weight: 500;
    letter-spacing: .01em;
}

/* --- Tables --- */
.table th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
}

/* --- Progress bars (admin stats) --- */
.progress {
    border-radius: 8px;
    background: #f0f0f0;
}

/* --- Responsive timeline height --- */
@media (max-width: 991px) {
    #timeline { height: 420px !important; }
}
@media (max-width: 768px) {
    #timeline { height: 350px !important; }
    .vis-label { font-size: .7rem !important; }
}

/* --- Print --- */
@media print {
    .navbar, .btn, .alert { display: none !important; }
    .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}
