/* ============================================================
   AI IT HELPDESK – MAIN STYLESHEET
   Version 1.0
   ============================================================ */

/* ---------- GLOBAL ---------- */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- CARDS ---------- */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.sidebar .nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0.2rem 0.8rem;
    transition: background 0.2s, color 0.2s;
}
.sidebar .nav-link:hover {
    background: #e9ecef;
    color: #0d6efd;
}
.sidebar .nav-link.active {
    background: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}
.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* Sidebar brand / logo */
.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
    padding: 0 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}
.sidebar-brand i {
    margin-right: 0.5rem;
}

/* ---------- DASHBOARD STAT CARDS ---------- */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-card .stat-icon {
    font-size: 2.2rem;
    opacity: 0.7;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}
.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ---------- TABLES ---------- */
.table th {
    font-weight: 600;
    border-top: none;
}
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04);
}

/* ---------- BADGES ---------- */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

/* ---------- PUBLIC PAGES ---------- */
.public-container {
    max-width: 600px;
    margin: 40px auto;
}
.public-container .card {
    border-radius: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    .sidebar .nav-link {
        margin: 0.1rem 0.4rem;
        padding: 0.6rem 1rem;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    .public-container {
        margin: 20px auto;
        padding: 0 15px;
    }
}

/* ---------- PRINT STYLES ---------- */
@media print {
    .sidebar, .navbar, .btn, .no-print {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    body {
        background: #fff;
    }
}

/* ---------- UTILITY HELPERS ---------- */
.text-muted-light {
    color: #adb5bd;
}
.shadow-hover:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}