/* Mystery Shopper System - Custom Styles */


a {
color: #a88d25;
text-decoration: none;
}
a:hover{
    color: #dcc838;
}
.bg-primary {
    /* background: linear-gradient(120deg, #bca14b, #ae9332, #8c7426); */
    background-color: black!important;
}
.text-primary{
    color: #ae9332!important;

}
.btn-primary {
    background: #ae9332!important;
    color: #fff !important; /* white text */
    border-color: #ae9332 !important;
}
.btn-primary:active {
    box-shadow: 0 0 10px #ae9332!important;
}
.btn-primary:hover {
    background: #a1882c!important;
}


.bg-white, .card-header{
    background-color: #f9f9f9!important;
    color: black;
} 
.table thead th {
    background-color: #ae9332 !important;
    color: #fff !important;
}
.table thead th a,
.table thead th a:hover,
.table thead th a:focus {
    background-color: #ae9332 !important;
    color: #fff !important;
    text-decoration: none;
}
/* .main-content{
    background-color: #ae933254
} */
/* Root Variables */
:root {
    --primary-color: #ae9332;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --dark-color: #1F2937;
    --light-color: white;
    --border-color: #8c7426;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
}

.main-content {
    flex: 1;
    padding-bottom: 2rem;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    width: 200px;
}

.navbar-brand-text {
    display: inline;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

/* Messages/Alerts */
.messages-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    animation: slideIn 0.3s ease-out;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    padding: 0.5rem;
    font-size: 0.75rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #4338CA;
    border-color: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

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

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

/* Table Styles */
.table {
    /* background-color: white; */
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    /* background-color: var(--light-color); */
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    /* color: var(--dark-color); */
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--light-color);
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-text {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.25rem;
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-assigned {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-submitted {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-reviewed {
    background-color: #E0E7FF;
    color: #3730A3;
}

.status-approved {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-rejected {
    background-color: #FEE2E2;
    color: #991B1B;
}

@media (max-width: 1220px) {
    .navbar-brand-text {
        display: none;
    }
    .navbar-brand img {
        width: 50% !important;
    }
}
@media (max-width: 1000px) {
    .navbar-brand img {
        width: 30% !important;
    }
}
@media (max-width: 991px) {
    .navbar-brand-text {
        display: inline;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .messages-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Touch-friendly styles for mobile */
@media (max-width: 576px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .messages-container {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================================
   CHART STYLES
   ============================================================================ */

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* ============================================================================
   MODAL STYLES
   ============================================================================ */

.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Confirmation Modal */
.modal-confirm .modal-header {
    background-color: var(--warning-color);
}

.modal-danger .modal-header {
    background-color: var(--danger-color);
}

.modal-success .modal-header {
    background-color: var(--secondary-color);
}

/* ============================================================================
   DROPDOWN STYLES
   ============================================================================ */

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

.dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* ============================================================================
   FILE UPLOAD STYLES
   ============================================================================ */

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--light-color);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.1);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: #6B7280;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.file-preview-remove:hover {
    transform: scale(1.1);
}

/* ============================================================================
   PROGRESS BAR STYLES
   ============================================================================ */

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--light-color);
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-bar-success {
    background-color: var(--secondary-color);
}

.progress-bar-warning {
    background-color: var(--warning-color);
}

.progress-bar-danger {
    background-color: var(--danger-color);
}

/* ============================================================================
   PAGINATION STYLES
   ============================================================================ */

.pagination {
    margin-top: 1.5rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #9CA3AF;
    cursor: not-allowed;
}

/* ============================================================================
   BADGE AND TAG STYLES
   ============================================================================ */

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-primary {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.tag-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.tag-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.tag-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* ============================================================================
   EMPTY STATE STYLES
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   SKELETON LOADING STYLES
   ============================================================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 200px;
    margin-bottom: 1rem;
}

/* ============================================================================
   TOOLTIP STYLES
   ============================================================================ */

.tooltip-inner {
    background-color: var(--dark-color);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-color);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--dark-color);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--dark-color);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--dark-color);
}

/* ============================================================================
   SCORE DISPLAY STYLES
   ============================================================================ */

.score-display {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366F1 100%);
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.score-breakdown {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.score-breakdown-item {
    text-align: center;
}

.score-breakdown-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.score-breakdown-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================================================
   EVIDENCE GALLERY STYLES
   ============================================================================ */

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.evidence-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evidence-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.evidence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 0.5rem;
    color: white;
    font-size: 0.875rem;
}

/* ============================================================================
   PWA SPECIFIC STYLES
   ============================================================================ */

/* Hide elements when running as PWA */
.pwa-mode .hide-in-pwa {
    display: none !important;
}

/* Adjust layout for PWA mode */
.pwa-mode .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pwa-mode .main-content {
    padding-top: 0;
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .pwa-mode .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .pwa-mode .main-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.shadow-sm-hover:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-hover:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* ============================================================================
   DARK MODE SUPPORT (Future Enhancement)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}
