/* Admin Panel CSS - Responsive Design */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #6B7280;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #FF8C42;
    --dark-color: #1F2937;
     --sidebar-width: 220px;
     --sidebar-width-collapsed: 64px;
    --header-height: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F3F4F6;
    color: #374151;
    font-size: 14px;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.menu-toggle {
     display: inline-flex;
     background: none;
     border: none;
     font-size: 20px;
     cursor: pointer;
     color: var(--dark-color);
}
/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.25s ease, transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-nav a i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.sidebar-section-title {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9CA3AF;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: 15px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-footer small {
    font-size: 11px;
    color: #9CA3AF;
    display: block;
}

.sidebar-footer strong {
    color: #D1D5DB;
}
/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

/* Collapsed sidebar (desktop) */
.admin-wrapper.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
}
.admin-wrapper.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-width-collapsed);
}
.admin-wrapper.sidebar-collapsed .sidebar-header h3,
.admin-wrapper.sidebar-collapsed .sidebar-section-title,
.admin-wrapper.sidebar-collapsed .sidebar-divider {
    display: none;
}
.admin-wrapper.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px 14px;
    font-size: 0; /* hide labels; icons remain */
    white-space: nowrap;
    overflow: hidden;
}
.admin-wrapper.sidebar-collapsed .sidebar-nav a i {
    margin-right: 0;
    font-size: 18px;
}

.top-header {
    height: var(--header-height);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
}

.header-left h2 {
    font-size: 18px;
    color: var(--dark-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    color: var(--dark-color);
}
.menu-toggle:hover {
    background: #F3F4F6;
}
/* remove stray brace */

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--danger-color) !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-logout i { font-size: 13px; }

.btn-logout:hover { background: #DC2626 !important; }
.btn-logout:active { transform: translateY(1px); }

/* Ensure logout button style always applies in header */
.top-header .btn-logout {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.page-content {
    padding: 20px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--secondary-color);
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.stat-icon.bg-blue { background: var(--primary-color); }
.stat-icon.bg-green { background: var(--success-color); }
.stat-icon.bg-orange { background: var(--warning-color); }
.stat-icon.bg-red { background: var(--danger-color); }
.stat-icon.bg-warning { background: var(--warning-color); }
.stat-icon.bg-danger { background: var(--danger-color); }

.stat-card-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-details h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-details p {
    color: var(--secondary-color);
    font-size: 12px;
}

.stat-percentage {
    font-size: 12px;
    color: #F7931E;
    font-weight: 600;
    margin-left: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    border: none;
}

.table tbody td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #F8FAFC;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table td code {
    background: #F1F5F9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
    font-family: 'Courier New', monospace;
}

.text-center {
    text-align: center !important;
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: var(--dark-color);
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: #F9FAFB;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-primary { background: #DBEAFE; color: #1E40AF; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-secondary { background: #E5E7EB; color: #374151; }
.badge-info { background: #E0F2FE; color: #075985; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

.badge-open { background: #FEF3C7; color: #92400E; }
.badge-in_progress { background: #DBEAFE; color: #1E40AF; }
.badge-resolved { background: #D1FAE5; color: #065F46; }
.badge-closed { background: #E5E7EB; color: #374151; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }

.priority {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.priority-1 { background: #DBEAFE; color: #1E40AF; }
.priority-2 { background: #FEF3C7; color: #92400E; }
.priority-3 { background: #FEE2E2; color: #991B1B; }

.escalation-reason-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #4B5563;
    cursor: help;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger-color);
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

.content-header h3 {
    font-size: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

/* Card Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 2px solid #F1F5F9;
    background: linear-gradient(to right, #F8FAFC, #FFFFFF);
}

.card-header h3 {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 18px;
}

/* Action Buttons in Tables */
.table td .btn {
    margin: 0 3px;
}

.table td .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.table td .btn i {
    font-size: 13px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .admin-wrapper.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }

    .top-header {
        padding: 0 15px;
    }

    .header-left h2 {
        font-size: 18px;
    }

    .user-name {
        display: none;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .filters {
        width: 100%;
    }

    .filters .form-control {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 25px;
    padding: 20px 0;
}

.pagination-wrapper nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.pagination-wrapper p {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.pagination-wrapper ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pagination-wrapper a:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

.pagination-wrapper li.active span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Highlight current page with glow (handles Tailwind's aria-current) */
.pagination-wrapper span[aria-current="page"],
.pagination-wrapper li.active span {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
    animation: none !important;
}

@keyframes paginationGlow {
    0% {
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22), 0 6px 14px rgba(255, 107, 53, 0.28);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.35), 0 10px 22px rgba(255, 107, 53, 0.35);
        transform: translateY(-1px);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22), 0 6px 14px rgba(255, 107, 53, 0.28);
        transform: translateY(0);
    }
}

.pagination-wrapper li.disabled span,
.pagination-wrapper li.disabled a {
    background: #F9FAFB;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
}

.pagination-wrapper li.disabled a {
    pointer-events: none;
}

/* Arrow icons in pagination */
.pagination-wrapper svg {
    width: 14px;
    height: 14px;
}

.pagination-wrapper [rel="prev"],
.pagination-wrapper [rel="next"] {
    font-weight: 600;
    padding: 0 15px;
}

/* Dots separator */
.pagination-wrapper .dots {
    border: none;
    background: transparent;
    color: var(--secondary-color);
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination-wrapper nav {
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-wrapper [rel="prev"],
    .pagination-wrapper [rel="next"] {
        padding: 0 12px;
    }
}

/* Force Laravel Tailwind default pagination into one line and remove mobile duplicate */
.pagination-wrapper {
    overflow-x: auto;
}

/* Hide the first mobile-only container that shows just Prev/Next */
.pagination-wrapper nav > div:first-child {
    display: none;
}

/* Keep the visible container (with summary + numbers) inline */
.pagination-wrapper nav > div {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

/* Compact sizing across admin UI */
.admin-wrapper .top-header {
    height: 48px;
    padding: 0 18px;
}
.admin-wrapper .header-left h2 { font-size: 16px; }
.admin-wrapper .menu-toggle { width: 30px; height: 30px; font-size: 16px; }

.admin-wrapper .page-content { padding: 16px; }

/* Sidebar */
.admin-wrapper .sidebar { width: 200px; }
.admin-wrapper .main-content { margin-left: 200px; }
.admin-wrapper .sidebar-header { padding: 16px; }
.admin-wrapper .sidebar-header h3 { font-size: 18px; }
.admin-wrapper .sidebar-nav a { padding: 10px 16px; }
.admin-wrapper .sidebar-nav a i { width: 20px; margin-right: 8px; }
.admin-wrapper .sidebar-section-title { padding: 8px 16px; font-size: 11px; }

/* Cards and sections */
.admin-wrapper .card-header { padding: 12px 14px; }
.admin-wrapper .card-header h3 { font-size: 16px; }
.admin-wrapper .card-body { padding: 14px; }

/* Buttons */
.admin-wrapper .btn { padding: 6px 11px; font-size: 12px; }
.admin-wrapper .btn-sm { padding: 4px 8px; font-size: 11px; }
.admin-wrapper .btn-logout { padding: 6px 10px; font-size: 12px; }

/* Tables */
.admin-wrapper .table thead th { padding: 10px 8px; font-size: 11px; }
.admin-wrapper .table tbody td { padding: 8px; font-size: 12px; }

/* Stats */
.admin-wrapper .dashboard-stats { gap: 12px; }
.admin-wrapper .stat-card { padding: 14px; gap: 14px; }
.admin-wrapper .stat-icon { width: 40px; height: 40px; font-size: 18px; }
.admin-wrapper .stat-details h3 { font-size: 20px; }
.admin-wrapper .stat-details p { font-size: 11px; }

/* Forms */
.admin-wrapper .form-control { padding: 8px 10px; font-size: 13px; }
.admin-wrapper .form-group { margin-bottom: 12px; }
.admin-wrapper .form-actions { gap: 8px; margin-top: 18px; padding-top: 14px; }
.admin-wrapper .filters { gap: 12px; }

/* Pagination */
.admin-wrapper .pagination-wrapper { margin-top: 16px; padding: 12px 0; }
.admin-wrapper .pagination-wrapper a,
.admin-wrapper .pagination-wrapper span { min-width: 30px; height: 30px; font-size: 12px; }

/* ============================================
   Dot Loader Animation
   ============================================ */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-overlay.active {
    display: flex;
}

.dot-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dot-loader .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot-loader .dot:nth-child(1) {
    background-color: #FF6B6B;
    animation-delay: -0.32s;
}

.dot-loader .dot:nth-child(2) {
    background-color: #4ECDC4;
    animation-delay: -0.16s;
}

.dot-loader .dot:nth-child(3) {
    background-color: #95E77D;
    animation-delay: 0s;
}

.dot-loader .dot:nth-child(4) {
    background-color: #C77DFF;
    animation-delay: 0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Inline Loader (for smaller contexts) */
.loader-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}

.loader-inline .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loader-inline .dot:nth-child(1) {
    background-color: #FF6B6B;
    animation-delay: -0.32s;
}

.loader-inline .dot:nth-child(2) {
    background-color: #4ECDC4;
    animation-delay: -0.16s;
}

.loader-inline .dot:nth-child(3) {
    background-color: #95E77D;
    animation-delay: 0s;
}

.loader-inline .dot:nth-child(4) {
    background-color: #C77DFF;
    animation-delay: 0.16s;
}

/* Button Loader */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
/* Guest Layout (Login Page) */
.guest-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}
.powered-by {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    font-size: 13px;
    color: #6B7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.powered-by span {
    display: block;
}

.powered-by strong {
    color: #1F2937;
}

.grandis-logo {
    width: 120px;
    height: auto;
}

.grandis-logo-sidebar {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.clickable-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.stat-card-clickable:hover .clickable-indicator {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.escalation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 11px;
    vertical-align: middle;
}

.escalation-badge.level-1 {
    background: #FEF3C7;
    color: #F59E0B;
}

.escalation-badge.level-2 {
    background: #FEE2E2;
    color: #DC2626;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
    }
}

/* Compact Filter Area Styles */
.page-card.mb-4 {
    margin-bottom: 15px !important;
    padding: 15px !important;
}

.filter-form {
    margin: 0;
    padding: 0;
}

.filter-form .form-row,
.filters-form .filter-row {
    gap: 10px !important;
    margin-bottom: 8px !important;
}

.filter-form .form-group,
.filters-form .filter-col {
    margin-bottom: 0 !important;
}

.filter-form .form-group label,
.filters-form .filter-col label {
    margin-bottom: 3px !important;
    font-size: 13px;
}

.card-header {
    padding: 12px 20px !important;
}

.card-body {
    padding: 15px !important;
}

.filters-form {
    gap: 8px !important;
}

/* Compact Tickets List Filter Area */
.page-header {
    margin-bottom: 15px !important;
}

.page-header h2 {
    margin-bottom: 12px !important;
}

.page-header .filters {
    padding: 12px !important;
    background: #F9FAFB;
    border-radius: 8px;
}

.page-header .filters .filter-row {
    gap: 10px !important;
    margin-bottom: 8px !important;
}

.page-header .filters .filter-row:last-child {
    margin-bottom: 0 !important;
}

.page-header .filters .filter-col {
    margin-bottom: 0 !important;
}

.page-header .filters .filter-col label {
    margin-bottom: 3px !important;
    font-size: 13px;
    font-weight: 500;
}
