/* INDAS Ticketing - Custom Styles */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #27313d;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3799dd;
}

/* Navbar active state */
.navbar .nav-link.active {
    position: relative;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background-color: white;
}

/* Cards */
.card {
    border: 0;
    box-shadow: 0 0 3px #DDD;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
}

/* Status badges */
.badge-status-open { background-color: #0d6efd; }
.badge-status-inprogress { background-color: #ffc107; color: #000; }
.badge-status-resolved { background-color: #198754; }
.badge-status-closed { background-color: #6c757d; }

/* Priority badges are now inline from DB (style="background-color:...") */

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00203e 0%, #003366 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

/* Ticket detail */
.comment-card {
    border-left: 3px solid #dee2e6;
    margin-bottom: 1rem;
}

.comment-card.client-comment {
    border-left-color: #0d6efd;
}

.comment-card.admin-comment {
    border-left-color: #198754;
}

.comment-card.internal-note {
    border-left-color: #ffc107;
    background-color: #fff9e6;
}

/* Stats cards */
.stat-card {
    border-radius: 8px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* Table improvements */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* SLA badges */
.badge-sla-ontrack { background-color: #198754; }
.badge-sla-atrisk { background-color: #fd7e14; }
.badge-sla-breached { background-color: #dc3545; }
.badge-sla-met { background-color: #6c757d; }

/* Footer */
footer {
    margin-top: auto;
}
