/* Layout */
body {
    background-color: #f9fafb;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: #FBFAF8;
    padding: 24px 16px;
    position: fixed;
    left: 0;
    top: 0;
}

.main-content {
    margin-left: 280px;
    padding: 24px;
    background: #fff;
}

/* Navigation */
.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    color: #6B7280;
    /* Neutral gray for text */
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #FBFAF8; /* Black border with 3px width */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    /* Smooth transitions */
}

.nav-link img {
    filter: brightness(0) invert(0.5);
    /* Neutral gray icon */
    transition: all 0.3s ease;
}

/* Hover state */
.nav-link:hover {
    background-color: #FFFFFF; /* White background */
    color: #000000; /* Black text */
    font-weight: 600; /* Bold text */
    border: 1px solid #8A8AA3; /* Black border with 3px width */
    border-radius: 8px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transitions */
}



/* Persistent active state */
.nav-link.active {
    background-color: #FFFFFF; /* White background */
    color: #000000; /* Black text */
    font-weight: 600; /* Bold text */
    border: 1px solid #8A8AA3; /* Black border with 3px width */
    border-radius: 8px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transitions */
}


/* Model  */
.modal-dialog{
    max-width: 650px;

}

.modal-header {
    border-bottom: none;
    justify-content: center;
    position: relative;
}

.modal-header .icon-container i {
    font-size: 24px;
    color: #FF6B6B;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-body p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
}

.modal-backdrop {
    background-color: rgb(84, 60, 52);  /* Replace with your preferred color */
    backdrop-filter: blur(50px);  /* Apply blur effect */
}
.modal-content {
    background: white;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #E5E7EB;
}

/* Logo */
.logo {
    margin-bottom: 32px;
    padding-left: 16px;
}

.logo img {
    height: 32px;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 8px;
}

.table th {
    border-top: none;
    color: #6C6C89;
    border-bottom: 1px solid #E9ECEF;
    text-align: start;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    background-color: #FBFAF8;

}

.table td {
    color: #121217;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 8px;
    border-bottom: 1px solid #E9ECEF;
    text-align: start;
}

.table-responsive {
    overflow: visible !important; /* Ensure dropdowns are not clipped in responsive tables */
}

.dropdown-menu {
    max-height: 300px; /* Optional: Set a max height for scrolling if many options */
    overflow-y: auto; /* Add vertical scroll for long dropdowns */
}


/* Status Badges */
.status-badge,
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}



.status-pending {
    background: #FEF3C7;
    color: #92410eb7;
}

/* Category Badges */
.icon-badge-suscess {
    background-color: #E1F7E1;
    color: #28A745;
}
.icon-badge-error {
    background-color: #ac808277;
    color: #fffafa;
}

.badge-water {
    background-color: #E1F5FE;
    color: #0288D1;
}

.badge-hygiene {
    background-color: #FFF3E0;
    color: #F57C00;
}

/* Buttons and Forms */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
}

.create-btn,
.btn-primary {
    background: #FF5722;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #D03801;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 10px;
}

/* Cards */
.card,
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}

/* Stats */
.stats-number {
    font-size: 28px;
    font-weight: 600;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.stats-label {
    color: #6B7280;
    font-size: 14px;
}

/* Premium report rows (report-details.php) */
.report-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF0EB;
    color: #D03801;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.report-row-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-row-desc {
    color: #6B7280;
    font-size: 13.5px;
}

.btn-view-report {
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #121217;
    background: #fff;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-view-report:hover {
    border-color: #FF5722;
    color: #D03801;
    background: #FFF0EB;
}

/* Tabs */
.tab-header {
    gap: 20px;
}

.tab {
    padding: 12px 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #FF5722;
    border-bottom: 2px solid #FF5722;
}

.count {
    background: #E9ECEF;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 12px;
}

/* User Profile */
.user-profile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 280px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #F3F4F6;
    background: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.user-email {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

/* Utilities */
.edit-icon {
    color: #666;
    cursor: pointer;
}

/* ==========================================
   LOADING ANIMATIONS
   ========================================== */

/* Keyframes for loading animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingDots {
    0%, 20% { 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
    }
}

@keyframes progressBar {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Loading overlay improvements */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loading spinner variations */
.loading-spinner-primary {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF5722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-secondary {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF7043;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading text styles */
.loading-text-primary {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-text-secondary {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
}

/* Mobile responsive loading */
@media (max-width: 768px) {
    .loading-overlay img {
        height: 60px !important;
    }
    
    .loading-text-primary {
        font-size: 14px;
    }
    
    .loading-spinner-primary {
        width: 35px;
        height: 35px;
    }
}

/* Dark mode loading (if needed) */
@media (prefers-color-scheme: dark) {
    .loading-overlay {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .loading-text-primary {
        color: #f9fafb;
    }
    
    .loading-text-secondary {
        color: #d1d5db;
    }
}