/* Global Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;

    border: 6px solid rgba(0, 0, 0, 0.2);
    border-top: 6px solid #0d6efd;

    border-radius: 50%;

    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium Minimalist Theme */
body {
    background-color: #f8f9fa; /* Very soft light gray */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.auth-viewport {
    min-height: 100vh;
}

/* Sidebar Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-wrapper {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    z-index: 1030;
    transition: transform 0.3s ease;
}

.main-content {
    flex-grow: 1;
    margin-left: 250px;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 250px);
}

.auth-main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f2f4;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-link.active {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #212529;
}

.sidebar-link.text-danger:hover {
    background-color: #fee2e2 !important;
    color: #dc3545 !important;
}

/* Mobile Sidebar toggle */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .app-wrapper {
        min-height: auto;
    }
    .sidebar-wrapper {
        transform: translateX(-100%);
    }
    .sidebar-wrapper.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
    }
    .mobile-nav-toggle {
        display: block;
    }
}
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    display: none;
}
.sidebar-backdrop.show {
    display: block;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2) !important;
}

.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05); /* Soft premium shadow */
    background: #ffffff;
}

.auth-card .card-body {
    padding: 0;
}

.auth-card .form-text {
    color: #6c757d;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

.btn-primary {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

/* Dashboard Card Hover Effects */
.action-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
    border-color: #0d6efd; /* Primary color subtle highlight */
}
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Vertical Tracking Timeline */
.timeline {
    position: relative;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: #e9ecef;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0d6efd;
    z-index: 1;
}
.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    margin-left: 50px;
}

/* Pagination (Manage Complaints) */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination-container a {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 6px;
    text-decoration: none;
    background: var(--bs-gray-200);
    color: var(--bs-body-color);
}

.pagination-container a:hover {
    background: var(--bs-gray-300);
}

.pagination-container a.active-page {
    background: var(--bs-primary);
    color: var(--bs-white);
}
