/* Help Desk Custom Styles */

:root {
    --hd-primary: #2563eb;
    --hd-primary-dark: #1d4ed8;
    --hd-success: #16a34a;
    --hd-warning: #ca8a04;
    --hd-danger: #dc2626;
    --hd-info: #0891b2;
    --hd-gray: #6b7280;
    --hd-light: #f3f4f6;
    --hd-dark: #1f2937;
}

body {
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

/* Priority Badges */
.badge-priority-low {
    background-color: #d1d5db;
    color: #374151;
}

.badge-priority-medium {
    background-color: #fbbf24;
    color: #78350f;
}

.badge-priority-high {
    background-color: #f97316;
    color: white;
}

.badge-priority-urgent {
    background-color: #dc2626;
    color: white;
}

/* Status Badges */
.badge-status-open {
    background-color: #3b82f6;
    color: white;
}

.badge-status-in_progress {
    background-color: #8b5cf6;
    color: white;
}

.badge-status-resolved {
    background-color: #22c55e;
    color: white;
}

.badge-status-closed {
    background-color: #6b7280;
    color: white;
}

/* Role Badges */
.badge-role-admin {
    background-color: #dc2626;
    color: white;
}

.badge-role-staff {
    background-color: #2563eb;
    color: white;
}

.badge-role-user {
    background-color: #6b7280;
    color: white;
}

/* Ticket List */
.ticket-row {
    transition: background-color 0.15s ease;
}

.ticket-row:hover {
    background-color: #f3f4f6;
}

.ticket-title {
    font-weight: 500;
    color: var(--hd-dark);
    text-decoration: none;
}

.ticket-title:hover {
    color: var(--hd-primary);
}

/* Comments */
.comment {
    border-left: 3px solid #e5e7eb;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment.internal {
    border-left-color: #fbbf24;
    background-color: #fefce8;
    padding: 1rem;
    border-radius: 0.375rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--hd-gray);
}

/* Forms */
.form-label {
    font-weight: 500;
    color: var(--hd-dark);
}

/* Dashboard Stats */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--hd-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hd-dark);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Tables */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--hd-gray);
    border-bottom-width: 1px;
}

/* Sidebar for admin */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: white;
    border-right: 1px solid #e5e7eb;
}

.sidebar .nav-link {
    color: var(--hd-dark);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
}

.sidebar .nav-link:hover {
    background-color: var(--hd-light);
}

.sidebar .nav-link.active {
    background-color: var(--hd-primary);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--hd-gray);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Utility classes */
.text-muted-sm {
    font-size: 0.875rem;
    color: var(--hd-gray);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
