/* GrieveRight - Custom Styles */

/* Sidebar */
#sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    flex-shrink: 0;
}

#sidebar .list-group-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

#sidebar .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Grievance status badges */
.badge-open { background-color: #0d6efd; }
.badge-settled { background-color: #198754; }
.badge-withdrawn { background-color: #6c757d; }
.badge-denied { background-color: #dc3545; }
.badge-arbitration { background-color: #fd7e14; }
.badge-closed { background-color: #495057; }

/* Priority indicators */
.priority-low { border-left: 4px solid #198754; }
.priority-normal { border-left: 4px solid #0d6efd; }
.priority-high { border-left: 4px solid #fd7e14; }
.priority-urgent { border-left: 4px solid #dc3545; }

/* Timeline for grievance steps */
.grievance-timeline {
    position: relative;
    padding-left: 30px;
}

.grievance-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--bs-border-color);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-body-bg);
    border: 2px solid #0d6efd;
}

.timeline-item.completed::before {
    background-color: #198754;
    border-color: #198754;
}

.timeline-item.active::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.timeline-item.pending::before {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-secondary-color);
}

/* Card hover effect for grievance list */
.grievance-card {
    transition: box-shadow 0.15s ease-in-out;
}

.grievance-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Landing page */
.landing-hero {
    padding: 80px 0 40px;
}

.landing-features {
    padding-top: 40px;
}

/* Login page */
.login-container {
    max-width: 420px;
    margin: 80px auto;
}

/* Turnstile container */
#turnstile-container {
    max-width: 100%;
    overflow: hidden;
}

/* Theme toggle */
.theme-option.active {
    font-weight: 600;
}

.theme-option.active::after {
    content: '\F26A'; /* bi-check2 */
    font-family: 'bootstrap-icons';
    float: right;
}

/* Dark mode overrides for custom elements */
[data-bs-theme="dark"] .grievance-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .badge-closed {
    background-color: #6c757d;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-body-bg) !important;
}

/* Print styles */
@media print {
    #sidebar, .navbar, .btn, .alert-dismissible .btn-close {
        display: none !important;
    }
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
}
