/* ============================================================
   IT Service Desk — Custom styles (Bootstrap 5 supplement)
============================================================ */

/* Layout */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f9;
}

main {
    flex: 1;
}

/* Navbar tweaks */
.navbar-brand {
    letter-spacing: 0.02em;
}

/* Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.07);
}

/* Ticket status badges */
.badge-status-open         { background-color: #0d6efd; }
.badge-status-in_progress  { background-color: #6f42c1; }
.badge-status-waiting      { background-color: #fd7e14; }
.badge-status-resolved     { background-color: #198754; }
.badge-status-closed       { background-color: #6c757d; }

/* Priority badges */
.badge-priority-low      { background-color: #198754; }
.badge-priority-medium   { background-color: #0dcaf0; color: #000 !important; }
.badge-priority-high     { background-color: #fd7e14; }
.badge-priority-critical { background-color: #dc3545; }

/* Timeline (Phase 2+) */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}

.timeline-item.system-event::before {
    background: #6c757d;
    box-shadow: 0 0 0 2px #6c757d;
}

/* Flash container max width for readability */
#flash-container {
    max-width: 900px;
}

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

/* Sidebar (Phase 3+) */
.sidebar {
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 1px solid #dee2e6;
}

/* Footer */
footer {
    font-size: 0.8rem;
}

.cursor-pointer { cursor: pointer; }
