/* =============================================================================
 * Company IT Helpdesk Ticketing System (Helpdesk-BCS)
 * Custom Responsive Stylesheet (Bootstrap 5.3 + Custom CSS3)
 * ============================================================================= */

:root {
    --hbcs-primary: #0f4c81;
    --hbcs-primary-dark: #0a355c;
    --hbcs-accent: #0077b6;
    --hbcs-surface: #ffffff;
    --hbcs-bg: #f4f6f9;
    --hbcs-border: #dee2e6;
    --hbcs-internal-bg: #fff8e6;
    --hbcs-internal-border: #ffc107;
}

body {
    background-color: var(--hbcs-bg);
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-hbcs {
    background: linear-gradient(135deg, var(--hbcs-primary-dark) 0%, var(--hbcs-primary) 100%);
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.auth-card {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 76, 129, 0.08);
}

.stat-card {
    border: 0;
    border-radius: 0.65rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.08);
}

/* Ticket Status Badges */
.badge-status-open { background-color: #0d6efd; color: #fff; }
.badge-status-assigned { background-color: #0dcaf0; color: #000; }
.badge-status-in_progress { background-color: #6610f2; color: #fff; }
.badge-status-pending_user,
.badge-status-waiting_on_customer { background-color: #fd7e14; color: #fff; }
.badge-status-pending_third_party { background-color: #6f42c1; color: #fff; }
.badge-status-resolved { background-color: #198754; color: #fff; }
.badge-status-closed { background-color: #6c757d; color: #fff; }
.badge-status-reopened { background-color: #dc3545; color: #fff; }
.badge-status-cancelled { background-color: #343a40; color: #fff; }

/* Ticket Priority Badges */
.badge-priority-low { background-color: #e9ecef; color: #495057; }
.badge-priority-medium { background-color: #cff4fc; color: #055160; }
.badge-priority-high { background-color: #fff3cd; color: #664d03; }
.badge-priority-urgent { background-color: #f8d7da; color: #842029; font-weight: 600; }

/* Conversation & Internal Notes */
.reply-card {
    border-left: 4px solid var(--hbcs-primary);
    border-radius: 0.5rem;
}

.reply-card-staff {
    border-left: 4px solid #0077b6;
    background-color: #f8fbff;
}

.reply-card-internal {
    background-color: var(--hbcs-internal-bg);
    border-left: 4px solid var(--hbcs-internal-border);
}

.pre-wrap {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Activity Timeline */
.timeline-list {
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
    list-style: none;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.45rem;
    width: 2px;
    background-color: var(--hbcs-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.3rem;
    top: 0.35rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--hbcs-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--hbcs-primary);
}

.timeline-item-internal::before {
    background-color: var(--hbcs-internal-border);
    box-shadow: 0 0 0 1px var(--hbcs-internal-border);
}

/* Read-only Context Box */
.requester-context-box {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
}
