/* ===================
   COMPONENTS.CSS - UI Components
   =================== */

/* Font Size Standards - Consistent sizing throughout the application */
:root {
    --font-xs: 10px;    /* Extra small text (badges, tiny labels) */
    --font-sm: 12px;    /* Small text (secondary info, captions) */  
    --font-base: 14px;  /* Base text size (body text, inputs, buttons) */
    --font-md: 16px;    /* Medium text (section headers, important text) */
    --font-lg: 18px;    /* Large text (modal titles, main headers) */
    --font-xl: 20px;    /* Extra large text (primary titles) */
    --font-2xl: 24px;   /* Very large text (page titles, hero text) */
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideInUp 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: #e0e0e0;
    font-size: var(--font-xl);
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #a0a0a0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

/* Investigation Details in Modal */
.investigation-details {
    color: #e0e0e0;
}

.investigation-header {
    margin-bottom: 24px;
}

.investigation-header h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.investigation-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: var(--font-sm);
    color: #a0a0a0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: var(--font-base);
    color: #e0e0e0;
    font-weight: 500;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
}

.price-value {
    color: #10b981;
    font-weight: 700;
}

.investigation-description {
    font-size: var(--font-md);
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 24px;
}

.media-section {
    margin-top: 24px;
}

.media-section h4 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.media-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.05);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notification System */
.notification-container {
    position: fixed;
    bottom: 40px; /* Position above the black bar */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center the notification */
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.notification.success {
    border-color: rgba(16, 185, 129, 0.4);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.notification.info {
    border-color: rgba(102, 126, 234, 0.4);
}

.notification-icon {
    font-size: var(--font-lg);
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: #667eea;
}

.notification-message {
    flex: 1;
    font-size: var(--font-base);
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #e0e0e0;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .investigation-meta-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .notification-container {
        bottom: 35px; /* Position above black bar on mobile */
        left: 50%; /* Center horizontally on mobile */
        transform: translateX(-50%); /* Center the notification on mobile */
        max-width: calc(100vw - 32px);
    }
    
    .notification {
        padding: 12px 16px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* ===================
   ADVANCED FILTER STYLES
   =================== */

/* Advanced Filter Styles - Compact Version */
.category-filter.expandable {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 36px;
}

.category-header .category-checkbox {
    margin-right: 10px;
}

.category-header .category-icon {
    margin-right: 8px;
    font-size: 14px;
}

.category-header .category-info {
    flex: 1;
    min-width: 0;
}

.category-header .category-name {
    font-size: var(--font-base);
    font-weight: 500;
    margin-bottom: 2px;
}

.category-header .category-count {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.5);
}

.expand-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: var(--font-sm);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.subcategory-filters {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    padding: 8px 12px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.subcategory-filters.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 12px;
    overflow: hidden;
}

.subcategory-filters:not(.collapsed) {
    max-height: 200px;
    opacity: 1;
}

/* Custom Subcategory Checkbox Styling */
.subcategory-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    position: relative;
}

.subcategory-checkbox:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(230, 184, 0, 0.05);
    border-radius: 4px;
}

.subcategory-checkbox:hover .subcategory-checkmark {
    border-color: #e6b800;
    box-shadow: 0 0 0 1px rgba(230, 184, 0, 0.2);
}

.subcategory-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.subcategory-checkmark {
    height: 16px;
    width: 16px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.subcategory-checkbox input:checked + .subcategory-checkmark {
    background-color: #e6b800;
    border-color: #e6b800;
}

.subcategory-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.subcategory-checkbox input:checked + .subcategory-checkmark::after {
    display: block;
}

.subcategory-name {
    flex: 1;
    font-weight: 400;
    line-height: 1.3;
}

.subcategory-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-xs);
    margin-left: 8px;
    font-weight: 500;
}

.additional-filters {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.additional-filters h4 {
    color: #e0e0e0;
    font-size: var(--font-base);
    font-weight: 600;
    margin: 0 0 10px 0;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
    margin-bottom: 4px;
    font-weight: 500;
}

.filter-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 8px 12px;
    font-size: var(--font-base);
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1a1a1a;
    color: #e0e0e0;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.clear {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.filter-btn.clear:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.filter-btn.export {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.filter-btn.export:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

/* ===================
   ADMIN PANEL STYLES
   =================== */

.admin-modal-content {
    max-width: 1200px;
    max-height: 90vh;
}

.admin-modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.admin-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-base);
    font-weight: 500;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.admin-tab.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-section-header h3 {
    color: #e0e0e0;
    font-size: var(--font-lg);
    margin: 0;
}

.admin-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: var(--font-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.admin-btn.primary {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

.admin-btn.small {
    padding: 4px 8px;
    font-size: var(--font-xs);
}

.admin-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 12px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--font-base);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.investigation-title-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions {
    display: flex;
    gap: 4px;
}

.admin-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.admin-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.client-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.client-header h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: var(--font-md);
}

.client-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-sm);
}

.client-details {
    margin-bottom: 12px;
}

.client-value,
.client-types,
.client-org,
.client-focus {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
    margin-bottom: 4px;
}

.standalone-badge {
    background: rgba(255, 206, 84, 0.2);
    color: #ffce54;
    border: 1px solid rgba(255, 206, 84, 0.3);
    font-size: var(--font-xs);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

.preserved-badge {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    font-size: var(--font-xs);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

/* External Link Styles for Videos */
.sidebar-video-link,
.video-link-container,
.evidence-video-link {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-video-link:hover,
.video-link-container:hover,
.evidence-video-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 206, 84, 0.5);
}

.sidebar-link-btn,
.external-link-large,
.evidence-link-button {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.sidebar-link-btn:hover,
.external-link-large:hover,
.evidence-link-button:hover {
    color: #ffce54;
    transform: scale(1.05);
}

.link-text,
.link-label {
    font-size: var(--font-sm);
    font-weight: 500;
}

.sidebar-link-btn i,
.external-link-large i,
.evidence-link-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Enhanced Video Modal Error Handling */
.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-open-original {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.video-open-original:hover {
    color: #ffce54;
    background: rgba(255, 206, 84, 0.1);
}

.video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255, 255, 255, 0.7);
}

.video-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ffce54;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.video-error-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    padding: 40px;
    text-align: center;
}

.video-error-fallback .error-content {
    max-width: 400px;
}

.video-error-fallback i {
    font-size: 48px;
    color: #ff9800;
    margin-bottom: 20px;
}

.video-error-fallback h3 {
    color: #e0e0e0;
    font-size: var(--font-xl);
    margin-bottom: 12px;
}

.video-error-fallback p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
    line-height: 1.5;
    margin-bottom: 24px;
}

.error-actions .btn {
    background: #ffce54;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    background: #ffc107;
    transform: translateY(-1px);
}

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

/* Video Embed Validation Styles */
.video-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid #ffce54;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.embed-warning-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 152, 0, 0.9);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.embed-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.embed-warning i {
    font-size: 14px;
}

.video-preview.restricted .video-thumbnail {
    border: 2px solid rgba(255, 152, 0, 0.5);
}

.video-preview.loading {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Wireless Connection Indicator Styles - Enhanced Visibility */
.wireless-connection-badge-prominent {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Zoom-based visibility controls */
.wireless-connection-badge-prominent.zoom-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.wireless-connection-badge-prominent.zoom-visible {
    opacity: 1;
    transform: scale(1);
}

.wireless-dot-pulse {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ef4444, #dc2626);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 
        0 0 0 2px rgba(239, 68, 68, 0.6),
        0 0 15px rgba(239, 68, 68, 0.8);
    animation: prominentWirelessPulse 1.5s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wireless-dot-pulse::before {
    content: '\f1eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 8px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.wireless-dot-pulse::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    animation: wirelessRipple 2s ease-out infinite;
}

/* Legacy Live Stream Indicator Styles - Keep for backward compatibility */
.live-stream-badge-prominent {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 1000;
    pointer-events: none;
}

.live-dot-pulse {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffce54, #ffc107);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 
        0 0 0 2px rgba(255, 206, 84, 0.6),
        0 0 15px rgba(255, 206, 84, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: prominentLivePulse 1.5s ease-in-out infinite;
    position: relative;
}

.live-dot-pulse::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(255, 206, 84, 0.4);
    border-radius: 50%;
    animation: liveRipple 2s ease-out infinite;
}



/* Wireless Connection Marker Styles */
.wireless-connection-marker {
    position: relative;
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important;
}

.wireless-connection-marker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    animation: wirelessRipple 3s ease-out infinite;
}

/* Sidebar Wireless Connection Highlighting */
.wireless-connection-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1)) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
    position: relative;
}

.wireless-connection-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border-radius: 0 2px 2px 0;
}

.wireless-indicator {
    color: #ef4444;
    font-weight: 700;
    font-size: var(--font-xs);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    animation: liveBlink 2s ease-in-out infinite;
}

/* Legacy Live Stream Styles - Keep for backward compatibility */
.live-stream-marker {
    position: relative;
    border: 2px solid #ffce54 !important;
    box-shadow: 0 0 15px rgba(255, 206, 84, 0.5) !important;
}

.live-stream-marker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 206, 84, 0.3);
    border-radius: 50%;
    animation: liveRipple 3s ease-out infinite;
}

/* Sidebar Live Stream Highlighting */
.live-stream-highlight {
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.15), rgba(255, 193, 7, 0.1)) !important;
    border: 1px solid rgba(255, 206, 84, 0.3) !important;
    box-shadow: 0 0 12px rgba(255, 206, 84, 0.2) !important;
    position: relative;
}

.live-stream-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffce54, #ffc107);
    border-radius: 0 2px 2px 0;
}

.live-indicator {
    color: #ffce54;
    font-weight: 700;
    font-size: var(--font-xs);
    text-shadow: 0 0 8px rgba(255, 206, 84, 0.8);
    animation: liveBlink 2s ease-in-out infinite;
}

/* Animations */
@keyframes prominentLivePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 0 2px rgba(255, 206, 84, 0.6),
            0 0 15px rgba(255, 206, 84, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 
            0 0 0 4px rgba(255, 206, 84, 0.8),
            0 0 25px rgba(255, 206, 84, 1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

@keyframes livePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 206, 84, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 206, 84, 0.8);
    }
}

@keyframes liveRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Wireless Connection Animations */
@keyframes prominentWirelessPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 0 2px rgba(239, 68, 68, 0.6),
            0 0 15px rgba(239, 68, 68, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 
            0 0 0 4px rgba(239, 68, 68, 0.8),
            0 0 25px rgba(239, 68, 68, 1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

@keyframes wirelessRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.analytics-card.wide {
    grid-column: span 2;
}

.analytics-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
}

.analytics-content h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.analytics-value {
    color: #e0e0e0;
    font-size: var(--font-2xl);
    font-weight: 700;
}

.yearly-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.year-stat:last-child {
    border-bottom: none;
}

.year {
    font-weight: 600;
    color: #e0e0e0;
}

.count {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
}

.value {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-base);
}

@media (max-width: 768px) {
    .admin-modal-content {
        max-width: 95vw;
        margin: 10px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card.wide {
        grid-column: span 1;
    }
}

/* ===================
   ENHANCED INVESTIGATION MODAL STYLES
   =================== */

.investigation-details.enhanced {
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.investigation-header-enhanced {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.investigation-status {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.status-badge, .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 500;
}

.status-badge.commissioned {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.post-purchase {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.type-badge {
    background: rgba(168, 85, 247, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.investigation-title-enhanced h3 {
    color: #e0e0e0;
    font-size: var(--font-2xl);
    margin: 0 0 8px 0;
}

.investigation-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.investigation-key-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-md);
}

.client-info .info-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.value-info .info-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.duration-info .info-icon {
    background: rgba(230, 184, 0, 0.1);
    color: #e6b800;
}

.connection-info .info-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #fbbf24;
}

.info-content {
    flex: 1;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-sm);
    margin-bottom: 4px;
}

.info-value {
    color: #e0e0e0;
    font-size: var(--font-md);
    font-weight: 600;
}

.investigation-timeline {
    margin-bottom: 24px;
}

.investigation-timeline h4 {
    color: #e0e0e0;
    font-size: var(--font-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #22c55e);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-marker {
    position: absolute;
    left: -12px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid rgba(26, 26, 26, 1);
}

.timeline-marker.monitoring {
    background: #e6b800;
}

.timeline-marker.completed {
    background: #22c55e;
}

.timeline-content {
    margin-left: 20px;
}

.timeline-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-sm);
    margin-bottom: 4px;
}

.timeline-event {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-base);
}

.investigation-description-enhanced {
    margin-bottom: 24px;
}

.investigation-description-enhanced h4 {
    color: #e0e0e0;
    font-size: var(--font-md);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.media-section-enhanced {
    margin-bottom: 24px;
}

.media-section-enhanced h4 {
    color: #e0e0e0;
    font-size: var(--font-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 4px;
}

.media-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-base);
}

.media-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.media-tab.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.media-item-enhanced {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item-enhanced:hover {
    transform: scale(1.02);
}

.media-item-enhanced img,
.media-item-enhanced video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: var(--font-2xl);
}

.media-item-enhanced:hover .media-overlay {
    opacity: 1;
}

.embedded-videos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.embedded-video-item h5 {
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: var(--font-base);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.no-media {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-media i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.investigation-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: var(--font-md);
}

.stat-value {
    color: #e0e0e0;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-sm);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .investigation-key-info {
        grid-template-columns: 1fr;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .investigation-stats {
        flex-direction: column;
        text-align: center;
    }
}

/* Edit Form Styles */
.edit-form-container {
    padding: 0;
}

.edit-form {
    max-width: none;
    width: 100%;
}

.form-section {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.form-section h4 {
    color: #e0e0e0;
    font-size: var(--font-md);
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #e6b800;
    font-size: var(--font-base);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group.full-width {
    flex: none;
    width: 100%;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 28px;
}

.form-group label {
    display: block;
    color: #b0b0b0;
    font-size: var(--font-base);
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e6b800;
    background: rgba(230, 184, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0 !important;
    color: #b0b0b0 !important;
    font-size: var(--font-base) !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #e6b800;
    border-color: #e6b800;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 32px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e6b800, #b8920a);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8920a, #9a7a08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 184, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Edit Form Modal Adjustments */
.modal.edit-mode .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    width: 95vw;
}

.modal.edit-mode .modal-body {
    max-height: calc(90vh - 120px);
}

/* Smart Admin UX - Edit and Create modals have higher z-index when in admin context */
.modal.edit-mode,
.modal.create-mode {
    z-index: 2500;
}

/* Admin table highlight for recently edited items */
.admin-table tr.recently-edited {
    background: rgba(230, 184, 0, 0.1);
    animation: highlight-fade 3s ease-out;
}

@keyframes highlight-fade {
    0% { background: rgba(230, 184, 0, 0.3); }
    100% { background: rgba(230, 184, 0, 0.05); }
}

/* Investigation Details Sidebar */
.investigation-sidebar {
    position: fixed;
    top: 100px; /* Cut off at the top to show map underneath - match left sidebar */
    right: 0;
    width: 320px; /* Smaller, more elegant */
    height: auto;
    max-height: calc(100vh - 160px); /* Cut off at bottom to show map underneath - match left sidebar */
    background: rgba(26, 26, 26, 0.93);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1500;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.investigation-sidebar:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
    border-top-left-radius: 12px;
}

.investigation-sidebar:not(.hidden) .sidebar-header {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-header h3 {
    color: #e0e0e0;
    font-size: var(--font-md);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #a0a0a0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-sm);
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.sidebar-content {
    flex: 0 1 auto;
    padding: 16px;
    overflow: hidden;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.investigation-sidebar:not(.hidden) .sidebar-content {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar content styles - more compact */
.sidebar-content .investigation-details {
    max-width: none;
}

/* Staggered animation for sidebar content sections */
.sidebar-content .investigation-header-enhanced {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.sidebar-content .investigation-key-info {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.sidebar-content .investigation-timeline {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
}

.sidebar-content .investigation-description-enhanced {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s;
}

.investigation-sidebar:not(.hidden) .sidebar-content .investigation-header-enhanced,
.investigation-sidebar:not(.hidden) .sidebar-content .investigation-key-info,
.investigation-sidebar:not(.hidden) .sidebar-content .investigation-timeline,
.investigation-sidebar:not(.hidden) .sidebar-content .investigation-description-enhanced {
    transform: translateY(0);
    opacity: 1;
}

.sidebar-content .investigation-header-enhanced {
    margin-bottom: 16px;
}

.sidebar-content .investigation-key-info {
    margin-bottom: 16px;
}

.sidebar-content .info-card {
    padding: 12px 16px;
    margin-bottom: 8px;
}

.sidebar-content .info-label {
    font-size: 11px;
}

.sidebar-content .info-value {
    font-size: 13px;
}

.sidebar-content .investigation-timeline,
.sidebar-content .investigation-description-enhanced {
    margin-bottom: 16px;
}

.sidebar-content h4 {
    font-size: var(--font-base);
    margin-bottom: 12px;
}

/* Map overlay effect when sidebar is open - DISABLED */
/* .map-container.sidebar-open::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 320px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.investigation-sidebar:not(.hidden) ~ * .map-container.sidebar-open::after,
.map-container.sidebar-open::after {
    opacity: 1;
} */

/* ===================
   VIDEO COMPONENTS
   =================== */

/* Video Preview in Forms */
.video-preview-container {
    margin-top: 8px;
}

.video-preview {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-preview.error {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: var(--font-sm);
}

.video-preview.error i {
    color: #ef4444;
}

.video-thumbnail {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(230, 184, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: var(--font-md);
    position: relative;
}

.play-btn:hover {
    background: #b8920a;
    transform: scale(1.1);
}

.play-btn i.fab {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: var(--font-xs);
    opacity: 0.7;
}

.play-btn i.fa-play {
    margin-left: 2px;
}

.video-info {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.video-platform {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.fullscreen-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--font-xs);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fullscreen-btn:hover {
    opacity: 1;
}

/* Floating Video Player */
.floating-video-player {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 400px;
    height: 280px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-video-player.minimized {
    height: 40px;
}

.floating-video-player.minimized .floating-video-content {
    display: none;
}

.floating-video-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-video-header:active {
    cursor: grabbing;
}

.floating-video-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0e0e0;
    font-size: var(--font-sm);
    font-weight: 500;
}

.floating-video-title i.fab {
    color: #e6b800;
}

.floating-video-controls {
    display: flex;
    gap: 4px;
}

.floating-video-controls button {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--font-xs);
    transition: all 0.2s ease;
}

.floating-video-controls button:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

.floating-video-content {
    height: calc(100% - 41px);
}

.floating-video-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fullscreen Video Player */
.fullscreen-video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: flex;
    flex-direction: column;
}

.fullscreen-video-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4001;
}

.fullscreen-video-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: var(--font-base);
    font-weight: 500;
}

.fullscreen-video-title i.fab {
    color: #e6b800;
}

.close-fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--font-base);
    transition: all 0.2s ease;
}

.close-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.fullscreen-video-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.fullscreen-video-content iframe {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 675px;
    border: none;
}

/* Sidebar Video Section */
.sidebar-video-section {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-section-header h4 {
    color: #e0e0e0;
    font-size: var(--font-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.sidebar-section-header h4 i {
    color: #e6b800;
}

.video-count {
    background: rgba(230, 184, 0, 0.2);
    color: #e6b800;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 500;
}

.sidebar-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* Compact centered video layout */
.sidebar-video-section.compact {
    padding: 12px;
    margin-top: 12px;
}

.sidebar-video-grid.centered-video {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sidebar-video-grid.centered-video .sidebar-video-item {
    flex: 0 0 auto;
    width: 140px;
}

.sidebar-video-grid.centered-video .sidebar-video-thumbnail {
    height: 90px;
}

.sidebar-video-item {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-video-thumbnail {
    position: relative;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-video-thumbnail:hover .sidebar-video-overlay {
    opacity: 1;
}

.sidebar-play-btn, .sidebar-fullscreen-btn {
    background: rgba(230, 184, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: var(--font-xs);
    position: relative;
}

.sidebar-fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-play-btn:hover, .sidebar-fullscreen-btn:hover {
    transform: scale(1.1);
}

.sidebar-play-btn i.fab {
    position: absolute;
    top: 1px;
    left: 1px;
    font-size: 6px;
    opacity: 0.7;
}

.sidebar-video-platform {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.view-all-videos-btn {
    width: 100%;
    background: rgba(230, 184, 0, 0.1);
    color: #e6b800;
    border: 1px solid rgba(230, 184, 0, 0.3);
    font-size: var(--font-xs);
}

.view-all-videos-btn:hover {
    background: rgba(230, 184, 0, 0.2);
    border-color: rgba(230, 184, 0, 0.5);
}

/* All Videos Modal */
.video-modal .modal-content {
    max-width: 900px;
    width: 95vw;
}

.all-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.all-videos-item {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-videos-thumbnail {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.all-videos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-videos-thumbnail:hover .all-videos-overlay {
    opacity: 1;
}

.all-videos-play-btn, .all-videos-fullscreen-btn {
    background: rgba(230, 184, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: var(--font-base);
    position: relative;
}

.all-videos-fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
}

.all-videos-play-btn:hover, .all-videos-fullscreen-btn:hover {
    transform: scale(1.1);
}

.all-videos-play-btn i.fab {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 8px;
    opacity: 0.7;
}

.all-videos-platform {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.all-videos-info {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
}

.video-number {
    color: #a0a0a0;
    font-size: var(--font-xs);
    font-weight: 500;
}

/* Country Highlighting Indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.highlight-indicator {
    animation: pulse 2s infinite;
}

/* Smart Country Highlight Toggle Indicator */
.country-highlight-indicator {
    position: relative;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.highlight-toggle-btn {
    position: relative;
    padding: 6px;
    border-radius: 50%;
    background: rgba(230, 184, 0, 0.1);
    border: 1px solid rgba(230, 184, 0, 0.3);
    color: #b8920a;
    font-size: var(--font-base);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.highlight-toggle-btn:hover {
    background: rgba(230, 184, 0, 0.2);
    border-color: rgba(230, 184, 0, 0.5);
    transform: scale(1.1);
}

.country-highlight-indicator.active .highlight-toggle-btn {
    background: #ffff00;
    border-color: #ffff00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

.highlight-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.highlight-status-dot.active {
    background: #ffff00;
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.7);
    animation: pulse 2s infinite;
}

/* Portfolio Stats - Interactive Country Count */
.stat-number {
    transition: all 0.2s ease;
}

.stat-number:hover {
    transform: scale(1.05);
}

/* Responsive Design for Country Highlighting */
@media (max-width: 768px) {
    .country-highlight-indicator {
        margin-left: 4px;
    }
    
    .highlight-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 4px;
    }
    
    .highlight-status-dot {
        width: 6px;
        height: 6px;
        top: -1px;
        right: -1px;
    }
}

/* Responsive Design for Edit Forms */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal.edit-mode .modal-content {
        max-width: 95vw;
        width: 95vw;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal.edit-mode .modal-body {
        max-height: calc(95vh - 120px);
    }
    
    /* Mobile sidebar adjustments */
    .investigation-sidebar {
        width: 100vw;
        top: 60px;
        height: auto;
        max-height: calc(100vh - 60px);
    }
    
    .map-container.sidebar-open::after {
        right: 0;
    }
}



/* Compact Sidebar Content Styles */
.investigation-summary {
    padding: 0;
}

.summary-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-title h3 {
    color: #e0e0e0;
    font-size: var(--font-md);
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.summary-subtitle {
    color: #a0a0a0;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-badges {
    margin-top: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.badge.commissioned {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.post-purchase {
    background: rgba(230, 184, 0, 0.2);
    color: #e6b800;
    border: 1px solid rgba(230, 184, 0, 0.3);
}

.summary-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

/* Cost disclaimer styling */
.cost-disclaimer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    font-style: italic;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.summary-icon {
    width: 28px;
    height: 28px;
    background: rgba(230, 184, 0, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6b800;
    font-size: var(--font-sm);
    flex-shrink: 0;
}

.summary-details {
    flex: 1;
    min-width: 0;
}

.summary-label {
    color: #8b8b8b;
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.summary-value {
    color: #e0e0e0;
    font-size: var(--font-base);
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
}

.summary-value.price-highlight {
    color: #10b981;
    font-weight: 600;
}



/* Create Form Styles */
.create-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.form-section h4 {
    color: #e0e0e0;
    font-size: var(--font-md);
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #e6b800;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    color: #c0c0c0;
    font-size: var(--font-base);
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    color: #e0e0e0;
    font-size: var(--font-base);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e6b800;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(230, 184, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8b8b8b;
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: #a0a0a0;
    cursor: not-allowed;
}

.form-help {
    color: #8b8b8b;
    font-size: var(--font-sm);
    margin-top: 4px;
    font-style: italic;
}

/* Location Picker Styles */
.location-picker {
    position: relative;
}

.location-picker input {
    padding-right: 40px;
}

.location-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 184, 0, 0.2);
    border: none;
    border-radius: 4px;
    color: #e6b800;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-search-btn:hover {
    background: rgba(230, 184, 0, 0.3);
    color: #a78bfa;
}

.location-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.location-result-item {
    padding: 10px 12px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-result-item:last-child {
    border-bottom: none;
}

.location-result-item:hover {
    background: rgba(230, 184, 0, 0.1);
}

.location-result-item.no-results {
    color: #8b8b8b;
    cursor: default;
}

.location-result-item.no-results:hover {
    background: transparent;
}

.location-result-item i {
    color: #e6b800;
    font-size: var(--font-sm);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions .btn {
    min-width: 120px;
}

/* Modal Enhancements for Create Mode */
.modal.create-mode .modal-content {
    max-width: 900px;
    max-height: 90vh;
    width: 95vw;
}

.modal.create-mode .modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        flex: none;
    }
    
    .create-form-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .modal.create-mode .modal-content {
        width: 95vw;
        margin: 20px auto;
    }
}

/* Sidebar Sticky Footer */
.sidebar-sticky-footer {
    flex-shrink: 0;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
    transform: translateY(30px);
    opacity: 0;
}

.investigation-sidebar:not(.hidden) .sidebar-sticky-footer {
    transform: translateY(0);
    opacity: 1;
}

.view-more-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e6b800, #b8920a);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #b8920a, #9a7a08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 184, 0, 0.3);
}

/* Detailed Modal (Compact overlay) */
.modal.detailed-view .modal-content {
    max-width: 800px;
    width: 85vw;
    max-height: 80vh;
}

.modal.detailed-view .modal-body {
    max-height: calc(80vh - 100px);
    padding: 16px;
}

/* Modal Navigation */
.modal-title-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(230, 184, 0, 0.06);
    border: 1px solid rgba(230, 184, 0, 0.15);
    border-radius: 6px;
    margin-bottom: 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(230, 184, 0, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: var(--font-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 60px;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(230, 184, 0, 1);
    transform: translateY(-0.5px);
}

.nav-btn:disabled {
    background: rgba(230, 184, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.nav-btn i {
    font-size: var(--font-xs);
}

.nav-label {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.investigation-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.current-number {
    color: #e6b800;
    font-size: var(--font-base);
    font-weight: 700;
}

.divider {
    color: #666;
    font-size: var(--font-sm);
}

.total-number {
    color: #a0a0a0;
    font-size: var(--font-base);
}

.category-label {
    color: #e6b800;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    background: rgba(230, 184, 0, 0.12);
    border-radius: 8px;
    margin-left: 8px;
}

.modal-main-title {
    color: #e0e0e0;
    font-size: var(--font-2xl);
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Marker highlighting */
.custom-marker.highlighted .marker-icon {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(230, 184, 0, 0.8);
    border: 2px solid #e6b800;
    z-index: 1001;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-grid {
        gap: 12px;
    }
    
    .summary-item {
        padding: 10px;
    }
    
    .summary-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .investigation-sidebar {
        width: 280px;
        height: auto;
        max-height: calc(100vh - 80px);
    }
    
    .sidebar-content {
        padding: 16px 16px 0 16px;
    }
    
    .sidebar-sticky-footer {
        padding: 12px 16px;
    }
    
    .modal.detailed-view .modal-content {
        width: 95vw;
        max-height: 85vh;
    }
    
    .modal.detailed-view .modal-body {
        padding: 16px;
        max-height: calc(85vh - 120px);
    }
    
    /* Mobile navigation adjustments */
    .modal-navigation {
        padding: 8px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .investigation-counter {
        order: 1;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .category-label {
        margin-left: 0;
        margin-top: 2px;
    }
    
    .modal-main-title {
        font-size: 20px;
    }
}

/* Location Search Styles */
.location-search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.location-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: var(--font-base);
    transition: border-color 0.2s ease;
}

.location-search-input:focus {
    outline: none;
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.1);
}

.location-search-btn {
    padding: 10px 16px;
    background: #e6b800;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-search-btn:hover:not(:disabled) {
    background: #b8920a;
}

.location-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.location-results {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: relative;
}

.location-results.hidden {
    display: none;
}

.location-results-header {
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: var(--font-sm);
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-result-item {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.location-result-item:hover {
    background: #f8fafc;
}

.location-result-item:last-child {
    border-bottom: none;
}

.location-name {
    font-size: var(--font-base);
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.location-coords {
    font-size: var(--font-sm);
    color: #64748b;
    font-family: 'Monaco', 'Menlo', monospace;
}

.location-loading,
.location-no-results,
.location-error {
    padding: 16px;
    text-align: center;
    font-size: var(--font-base);
}

.location-loading {
    color: #64748b;
}

.location-no-results {
    color: #94a3b8;
}

.location-error {
    color: #dc2626;
}

/* Readonly coordinate inputs styling */
input[readonly] {
    background-color: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
}

input[readonly]:focus {
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

/* Admin Table Controls */
.admin-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.table-search {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: var(--font-base);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.table-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: var(--font-base);
    min-width: 120px;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.1);
}

/* Sortable Table Styles */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable-table th.sortable:hover {
    background-color: rgba(230, 184, 0, 0.08);
    color: #374151;
}

.sort-icon {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable-table th.sortable:hover .sort-icon {
    opacity: 0.8;
}

.sortable-table th.sorted-asc .sort-icon {
    opacity: 1;
    color: #e6b800;
}

.sortable-table th.sorted-desc .sort-icon {
    opacity: 1;
    color: #e6b800;
    transform: rotate(180deg);
}

.sortable-table th.sorted-asc .sort-icon::before {
    content: "\f0de"; /* fa-sort-up */
}

.sortable-table th.sorted-desc .sort-icon::before {
    content: "\f0dd"; /* fa-sort-down */
}

/* Table Row Hover Effects */
.admin-table tbody tr:hover {
    background-color: rgba(230, 184, 0, 0.04) !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* Filter Active State */
.filter-select:not([value=""]) {
    border-color: #e6b800;
    background-color: #fef3c7;
}

/* Clear Filters Button */
.admin-btn.secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: var(--font-base);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-btn.secondary:hover {
    background: #4b5563;
}

/* Table Stats */
.table-stats {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: var(--font-base);
    color: #64748b;
    text-align: center;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive Table Controls */
@media (max-width: 768px) {
    .admin-table-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .table-search {
        max-width: none;
    }
    
    .table-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: 100px;
    }
}

/* Client Name Styling for Detailed Modal Only */
.modal.detailed-view .banner-info-item:has(.info-label:contains('Client')) .info-value,
.investigation-details.enhanced .banner-info-item:has(.info-label:contains('Client')) .info-value {
    font-weight: 700; /* Bold client names only in detailed modal view */
}

/* Fallback for browsers that don't support :has() - target first banner info item which is client */
.modal.detailed-view .banner-info-item:first-child .info-value,
.investigation-details.enhanced .banner-info-item:first-child .info-value {
    font-weight: 700; /* Bold client names only in detailed modal view */
}

/* Enhanced Video Gallery Styles */
.media-gallery.video-focused {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.media-item-enhanced.video.enlarged {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.media-item-enhanced.video.enlarged:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.media-item-enhanced.video.enlarged .video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.media-item-enhanced.video.enlarged .media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item-enhanced.video.enlarged:hover .media-overlay {
    opacity: 1;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #333;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-button-large:hover {
    transform: scale(1.1);
    background: #ffff00;
    color: #000;
}

.video-info-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.video-platform-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Enhanced Video Modal Styles */
.enhanced-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enhanced-video-modal .video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.enhanced-video-modal .video-modal-content {
    position: relative;
    width: 75vw;
    max-width: 900px;
    height: 65vh;
    max-height: 506px; /* 16:9 ratio for max-width */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.enhanced-video-modal .video-modal-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.enhanced-video-modal .video-modal-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enhanced-video-modal .video-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.enhanced-video-modal .video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.enhanced-video-modal .video-modal-player {
    flex: 1;
    position: relative;
    background: #000;
}

.enhanced-video-modal .video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Photo Modal Styles */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-modal .photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.photo-modal .photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-modal .photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.photo-modal .photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.photo-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Responsive Video Gallery */
@media (max-width: 768px) {
    .media-gallery.video-focused {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .media-item-enhanced.video.enlarged {
        min-height: 200px;
    }
    
    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .enhanced-video-modal .video-modal-content {
        width: 90vw;
        height: 60vh;
        margin: 0 10px;
    }
    
    .enhanced-video-modal .video-modal-header {
        padding: 12px 15px;
    }
    
    .enhanced-video-modal .video-modal-title {
        font-size: 14px;
    }
}

/* Evidence Showcase Styles */
.evidence-showcase {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin: 8px 0;
}

.evidence-showcase h4 {
    color: #e0e0e0;
    font-size: var(--font-lg);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evidence-showcase h4 i {
    color: #ffff00;
}

.evidence-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Horizontal Evidence Layout */
.evidence-content-horizontal {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evidence-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.evidence-section-half {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Video-focused layout styles */
.evidence-showcase.video-focused {
    padding: 20px;
    max-width: 900px;
    margin: 8px auto;
}

.evidence-section-full {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.evidence-video-grid-focused {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 100%;
    justify-items: center;
}

.evidence-video-grid-focused .evidence-video-item {
    width: 100%;
    max-width: 500px;
}

.evidence-video-grid-focused .evidence-video-thumbnail {
    height: 280px;
    min-height: 280px;
}

.evidence-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.evidence-section-header h5 {
    color: #c0c0c0;
    font-size: var(--font-md);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evidence-count {
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-sm);
    font-weight: 600;
}

/* Evidence Video Grid */
.evidence-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 800px;
}

/* Compact Video Grid for Side-by-Side Layout */
.evidence-video-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Compact Photo Grid for Side-by-Side Layout */
.evidence-photo-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.evidence-photo-grid-compact .evidence-photo-item {
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-height: 180px;
}

.evidence-photo-grid-compact .evidence-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.evidence-photo-grid-compact .evidence-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.evidence-photo-grid-compact .evidence-photo-item:hover .evidence-photo-overlay {
    opacity: 1;
}

.evidence-photo-grid-compact .evidence-photo-overlay i {
    color: #ffff00;
    font-size: 20px;
}

.evidence-video-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evidence-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.evidence-video-thumbnail {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-height: 180px;
}

.evidence-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evidence-video-item:hover .evidence-video-overlay {
    opacity: 1;
}

.evidence-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.evidence-play-button:hover {
    background: #ffff00;
    transform: scale(1.1);
}

.evidence-video-info {
    position: absolute;
    top: 12px;
    right: 12px;
}

.evidence-platform-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evidence-video-caption {
    padding: 12px 0 4px 0;
    color: #a0a0a0;
    font-size: var(--font-base);
    font-weight: 500;
    text-align: center;
}

/* Evidence Photo Grid */
.evidence-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    max-width: 600px;
}

.evidence-photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.evidence-photo-item:hover {
    transform: scale(1.02);
}

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

.evidence-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 18px;
}

.evidence-photo-item:hover .evidence-photo-overlay {
    opacity: 1;
}

.evidence-photo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #a0a0a0;
    font-size: var(--font-base);
    font-weight: 500;
    aspect-ratio: 4/3;
}

.no-evidence {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-evidence i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #444;
}

.no-evidence p {
    margin: 0;
    font-size: var(--font-md);
}

/* Responsive Evidence Showcase */
@media (max-width: 768px) {
    .evidence-showcase {
        padding: 16px;
        margin: 16px 0;
    }
    
    .evidence-video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }
    
    .evidence-video-thumbnail {
        max-height: 180px;
    }
    
    /* Mobile responsive for horizontal layout */
    .evidence-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .evidence-video-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .evidence-photo-grid-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Mobile responsive for video-focused layout */
    .evidence-showcase.video-focused {
        padding: 16px;
        max-width: 100%;
        margin: 16px 0;
    }
    
    .evidence-video-grid-focused {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .evidence-video-grid-focused .evidence-video-item {
        max-width: 100%;
    }
    
    .evidence-video-grid-focused .evidence-video-thumbnail {
        height: 220px;
        min-height: 220px;
    }
    
    /* Mobile responsive for compact banner */
    .investigation-banner-compact {
        padding: 10px 12px;
        margin: 12px 0;
    }
    
    .banner-badges-compact {
        gap: 4px;
    }
    
    .banner-badges-compact .status-badge,
    .banner-badges-compact .type-badge,
    .banner-badges-compact .location-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .info-item {
        font-size: 13px;
    }
    
    .evidence-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Mobile responsive for combined banner */
    .banner-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .banner-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .banner-info-item {
        font-size: 12px;
    }
    
    .evidence-play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .evidence-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Compact Investigation Description */
.investigation-description-compact {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #ffff00;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
}

.investigation-description-compact .description-content {
    color: #c0c0c0;
    font-size: var(--font-base);
    line-height: 1.6;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for investigation description in detailed modal */
.investigation-description-compact .description-content::-webkit-scrollbar {
    width: 4px;
}

.investigation-description-compact .description-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.investigation-description-compact .description-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.investigation-description-compact .description-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Updated Investigation Header */
.investigation-subtitle-enhanced {
    color: #a0a0a0;
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.investigation-subtitle-enhanced i {
    color: #ffff00;
}

/* Combined Investigation Banner */
.investigation-banner-combined {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
}

.banner-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.banner-badges {
    display: flex;
    gap: 8px;
}

.banner-location {
    color: #a0a0a0;
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-location i {
    color: #ffff00;
}

.banner-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-base);
}

.banner-info-item i {
    color: #ffff00;
    width: 16px;
    text-align: center;
}

.banner-info-item .info-label {
    color: #a0a0a0;
    font-weight: 500;
}

.banner-info-item .info-value {
    color: #e0e0e0;
    font-weight: 600;
}

.banner-info-item .price-value {
    color: #4CAF50;
    font-weight: 700;
}

/* Compact Investigation Banner */
.investigation-banner-compact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
}

.banner-header-row {
    margin-bottom: 12px;
}

.banner-badges-compact {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.banner-badges-compact .status-badge,
.banner-badges-compact .type-badge,
.banner-badges-compact .location-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.banner-badges-compact .location-badge {
    background: rgba(255, 255, 0, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 0, 0.2);
}

.banner-badges-compact .location-badge i {
    color: #ffff00;
}

.banner-info-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.info-item i {
    color: #ffff00;
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.info-item span {
    color: #e0e0e0;
}

.info-item.price-item span {
    color: #4CAF50;
    font-weight: 600;
}

/* ===================
   ACCESS TOKENS TAB STYLES
   =================== */

.token-generation-section,
.active-tokens-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.token-generation-section h4,
.active-tokens-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 18px;
}

.token-form .form-row {
    display: flex;
    gap: 20px;
    align-items: end;
}

.token-form .form-group {
    flex: 1;
}

.token-form .form-group:last-child {
    flex: 0 0 auto;
}

.token-result-display {
    margin-top: 20px;
    background: #1a4d1a;
    border: 1px solid #4ade80;
    border-radius: 8px;
    padding: 20px;
}

.token-result-display.hidden {
    display: none;
}

.token-success h4 {
    color: #4ade80;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-info {
    margin-bottom: 20px;
}

.token-field {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.token-field label {
    color: #ccc;
    font-weight: 500;
    min-width: 120px;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.token-code {
    background: #000;
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid #333;
}

.website-link {
    background: #000;
    color: #4ade80;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #333;
}

.copy-btn {
    background: #4ade80;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #22c55e;
}

.token-instructions {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #ffd700;
}

.token-instructions h5 {
    color: #ffd700;
    margin-bottom: 10px;
}

.token-instructions ol {
    color: #ccc;
    margin-bottom: 15px;
    padding-left: 20px;
}

.token-instructions li {
    margin-bottom: 5px;
}

.token-warning {
    background: #4a3300;
    color: #fbbf24;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tokens-list {
    max-height: 300px;
    overflow-y: auto;
}

.token-item {
    background: #333;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
}

.token-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.token-org-name {
    color: #ffd700;
    font-weight: 600;
    font-size: 16px;
}

.token-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.token-status.active {
    background: #4ade80;
    color: #000;
}

.token-status.expired {
    background: #ef4444;
    color: #fff;
}

.token-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    color: #ccc;
    font-size: 13px;
}

.token-detail {
    display: flex;
    flex-direction: column;
}

.token-detail-label {
    color: #999;
    font-size: 11px;
    margin-bottom: 2px;
}

.token-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.revoke-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.view-token-btn {
    background: #4ade80;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.view-token-btn:hover {
    background: #22c55e;
}

.revoke-btn:hover {
    background: #dc2626;
}



/* Responsive design */
@media (max-width: 768px) {
    .token-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .token-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .token-field label {
        min-width: auto;
    }
    
    .token-item-details {
        grid-template-columns: 1fr;
    }
}

/* ===================
   SECURE TOKEN MODAL STYLES
   =================== */

.secure-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.secure-modal.hidden {
    display: none;
}

.secure-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.secure-modal-header {
    background: #2a2a2a;
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.secure-modal-header h4 {
    color: #ffd700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #333;
    color: #fff;
}

.secure-modal-body {
    padding: 20px;
}

.secure-form {
    margin-bottom: 20px;
}

.secure-form .form-group {
    margin-bottom: 15px;
}

.secure-form label {
    display: block;
    color: #ffd700;
    margin-bottom: 5px;
    font-weight: 500;
}

.secure-form .form-control {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.secure-form .form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.secure-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.secure-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.secure-actions .btn-primary {
    background: #ffd700;
    color: #000;
}

.secure-actions .btn-primary:hover {
    background: #e6c200;
}

.secure-actions .btn-secondary {
    background: #333;
    color: #ccc;
}

.secure-actions .btn-secondary:hover {
    background: #444;
    color: #fff;
}

.secure-token-display {
    margin-top: 20px;
    padding: 20px;
    background: #0a3d0a;
    border: 1px solid #4ade80;
    border-radius: 8px;
}

.token-reveal h5 {
    color: #4ade80;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.token-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.token-info-item label {
    color: #4ade80;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

.token-info-item span {
    color: #fff;
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #333;
}

.token-value-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-value {
    flex: 1;
    word-break: break-all;
}

.copy-token-btn {
    background: #4ade80;
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-token-btn:hover {
    background: #22c55e;
}

.regenerate-section {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.regenerate-section .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.regenerate-section .btn-warning {
    background: #f59e0b;
    color: #000;
}

.regenerate-section .btn-warning:hover {
    background: #d97706;
}

.regenerate-warning {
    color: #f59e0b;
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .secure-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .secure-actions {
        flex-direction: column;
    }
    
    .token-value-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===================
   AUTO-LOCK SCREEN STYLES
   =================== */

.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.lock-screen-content {
    text-align: center;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    border: 2px solid #ffd700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.lock-icon {
    font-size: 64px;
    color: #ffd700;
    margin-bottom: 20px;
}

.lock-screen-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 24px;
}

.lock-screen-content p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.unlock-btn {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.unlock-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
    .lock-screen-content {
        padding: 30px 20px;
    }
    
    .lock-icon {
        font-size: 48px;
    }
    
    .lock-screen-content h2 {
        font-size: 20px;
    }
}