/* Feed Page Styles */

.feed-container {
    min-height: calc(100vh - 200px);
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Feed Header */
.feed-header {
    text-align: center;
    padding: 2rem 0;
}

.feed-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.feed-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Filters */
.filters-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
}

/* Report Cards */
.report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

/* Removed hover effect for report cards */

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.report-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    color: #333;
}

.report-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

/* Report Card Body */
.report-card-body {
    padding: 1.5rem;
}

.report-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.location-text {
    color: #666;
    font-weight: 500;
}

.report-description {
    margin-bottom: 1rem;
}

.description-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transport Info */
.report-transport {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 4px solid #007bff;
}

.transport-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.transport-type {
    font-weight: 600;
    color: #333;
}

.transport-details {
    width: 100%;
    margin-top: 0.5rem;
}

/* Media Preview */
.report-media {
    margin-top: 1rem;
}

.media-preview {
    display: flex;
    gap: 0.5rem;
    position: relative;
    flex-wrap: wrap;
    max-width: 100%;
}

.media-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

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

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.media-icon-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    color: #6c757d;
    font-size: 1.5rem;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.media-icon-thumbnail:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    color: #495057;
}

.media-icon-thumbnail i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.media-icon-thumbnail:hover i {
    opacity: 1;
}

.media-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 140px;
    height: 100px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.media-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.media-overlay-hover {
    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;
    border-radius: 8px;
}

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

.media-overlay-hover i {
    color: white;
    font-size: 1.5rem;
}

.overlay-text {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

/* File Modal Styles */
.modal-lg {
    max-width: 90%;
    max-height: 90vh;
}

.file-viewer {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.file-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#modalVideo {
    max-width: 100%;
    max-height: 100%;
}

#pdfFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-container {
    height: 100%;
    position: relative;
}

.pdf-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-fallback p {
    margin-bottom: 1rem;
}

.document-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.file-navigation button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-navigation button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.file-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.875rem;
    z-index: 1000;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .file-viewer {
        min-height: 300px;
    }
    
    #modalImage,
    #modalVideo {
        max-height: 300px;
    }
    
    #pdfFrame {
        height: 300px;
    }
    
    .file-navigation {
        padding: 0 0.5rem;
    }
    
    .file-navigation button {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Report Card Footer */
.report-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.meta-text {
    color: #666;
    margin-left: 0.25rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Removed feed-sidebar styles as sidebar is no longer used */

.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.stats-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.map-button-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* No Reports */
.no-reports {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.no-reports-content {
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.feed-pagination {
    margin-top: 3rem;
}

.pagination {
    margin-bottom: 1rem;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-info {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-title {
        font-size: 2rem;
    }
    
    .feed-header {
        padding: 1.5rem 0;
    }
    
    .filters-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .report-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .report-card-body {
        padding: 1rem;
    }
    
    .report-card-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .report-actions {
        justify-content: center;
        width: 100%;
    }
    
    .report-actions .btn {
        flex: 1;
        max-width: 150px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .media-preview {
        flex-wrap: wrap;
    }
    
    .media-item {
        width: 80px;
        height: 80px;
        flex: 0 0 auto;
    }
    
    .media-icon-thumbnail {
        font-size: 1.2rem;
    }
    
    .media-icon-thumbnail i {
        font-size: 1.8rem;
    }
    
    .media-overlay {
        width: 100px;
        height: 80px;
    }
    
    .overlay-text {
        font-size: 1rem;
    }
    
    /* Removed feed-sidebar styles as sidebar is no longer used */
}

@media (max-width: 576px) {
    .feed-container {
        padding: 0 1rem;
        padding-bottom: 5rem;
        align-items: stretch;
    }
    
    .feed-title {
        font-size: 1.8rem;
    }
    
    .filters-form .row {
        margin: 0;
    }
    
    .filters-form .col-md-4,
    .filters-form .col-md-3,
    .filters-form .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .report-actions .btn {
        max-width: none;
    }
    
    .media-item {
        width: 65px;
        height: 65px;
        flex: 0 0 auto;
    }
    
    .media-icon-thumbnail {
        font-size: 1rem;
    }
    
    .media-icon-thumbnail i {
        font-size: 1.5rem;
    }
    
    .media-overlay {
        width: 80px;
        height: 65px;
    }
    
    .overlay-text {
        font-size: 0.9rem;
    }
    
    .category-icon {
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}





/* Report action buttons styling - Solid design */
.action-btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: #e0e0e0;
    color: #666;
    border: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    text-decoration: none;
}

.action-btn:hover {
    transform: none;
    background-color: #d0d0d0;
    color: #333;
    text-decoration: none;
}

.action-btn:hover i {
    color: #007bff !important;
}

/* Vote button specific styling */
.vote-btn {
    position: relative;
    min-width: 80px;
}

.vote-btn:hover i {
    color: #28a745 !important;
}

/* Vote Shield Design */
.vote-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    color: white;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    height: 20px;
    position: relative;
}

.vote-count {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* Vote count update animation */
@keyframes voteCountUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vote-shield.vote-updated {
    animation: voteCountUpdate 0.3s ease-in-out;
}

/* Vote feedback styling */
.vote-feedback {
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile responsiveness for report action buttons */
@media (max-width: 768px) {
    .action-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .action-btn:hover {
        background-color: #d0d0d0;
        color: #333;
    }
    
    .action-btn i {
        color: #007bff !important;
    }
    
    .action-btn:hover i {
        color: #007bff !important;
    }
    
    .vote-btn i {
        color: #28a745 !important;
    }
    
    .vote-btn:hover i {
        color: #28a745 !important;
    }
    
    .vote-shield {
        margin-left: 0.3rem;
        padding: 0.15rem 0.4rem;
        min-width: 20px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .vote-count {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .action-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .action-btn i {
        color: #007bff !important;
    }
    
    .vote-btn i {
        color: #28a745 !important;
    }
    
    .vote-shield {
        margin-left: 0.2rem;
        padding: 0.1rem 0.3rem;
        min-width: 18px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .vote-count {
        font-size: 0.6rem;
    }
}

/* Statistics modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

.stats-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.activity-summary p {
    font-size: 0.95rem;
    color: #495057;
}

/* Vote verification modal styling */
.verification-status {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.verification-status.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.verification-status.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.verification-status.loading {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-color: #17a2b8;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

/* Vote Verification Modal */
/* Vote verification modal styles moved to modal.css for consistency across all pages */

/* ===== FILE MODAL ZOOM FUNCTIONALITY ===== */

.image-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #333333;
    border-radius: 8px;
}

.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: rgba(51, 51, 51, 0.95);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.zoom-controls:hover {
    background: rgba(51, 51, 51, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.zoom-controls .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zoom-controls .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.zoom-controls .btn:active {
    transform: scale(0.95);
}

.zoom-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.zoom-level {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.zoom-level.zoomed-out {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.zoom-level.zoomed-in {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #333333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoomable-image {
    max-width: none;
    max-height: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.zoomable-image:active {
    cursor: grabbing;
}

.zoomable-image.dragging {
    transition: none;
    cursor: grabbing;
}

/* Zoom animation */
.zoomable-image.zooming {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image error state */
.image-error {
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.image-error i {
    color: #ffc107;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
        padding: 8px;
        gap: 6px;
        border-radius: 10px;
    }
    
    .zoom-controls .btn {
        padding: 8px;
        font-size: 1rem;
        min-width: 36px;
        height: 36px;
    }
    
    .zoom-level {
        font-size: 0.8rem;
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .image-container {
        border-radius: 6px;
    }
    
    .zoomable-image {
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .zoom-controls {
        flex-direction: column;
        gap: 4px;
        padding: 8px 6px;
        top: 8px;
        right: 8px;
    }
    
    .zoom-controls .btn {
        padding: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        min-width: 32px;
    }
    
    .zoom-level {
        font-size: 0.75rem;
        min-width: 45px;
        padding: 4px 8px;
    }
    
    .image-error {
        padding: 1.5rem;
    }
    
    .image-error i {
        font-size: 3rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .zoom-controls {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid #000;
    }
    
    .zoom-controls .btn {
        border-width: 2px;
    }
    
    .zoom-level {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .zoomable-image {
        transition: none;
    }
    
    .zoomable-image.zooming {
        transition: none;
    }
    
    .zoom-controls {
        transition: none;
    }
    
    .zoom-controls .btn {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .image-zoom-container {
        background: #333333;
    }
    
    .zoom-controls {
        background: rgba(51, 51, 51, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .zoom-controls:hover {
        background: rgba(51, 51, 51, 1);
    }
    
    .zoom-controls .btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .zoom-controls .btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .zoom-level {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .zoom-level.zoomed-out {
        background: #333333;
        color: #cccccc;
    }
    
    .zoom-level.zoomed-in {
        background: #742a2a;
        color: #fed7d7;
        border-color: #feb2b2;
    }
    
    .image-container {
        background: #333333;
    }
    
    .image-error {
        background: #333333;
        color: #cccccc;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .zoom-controls {
        top: 5px;
        right: 5px;
        padding: 6px;
        gap: 4px;
    }
    
    .zoom-controls .btn {
        padding: 6px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .zoom-level {
        font-size: 0.7rem;
        min-width: 40px;
        padding: 4px 6px;
    }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .zoom-controls {
        top: 20px;
        right: 20px;
        padding: 12px;
        gap: 10px;
    }
    
    .zoom-controls .btn {
        padding: 10px 14px;
        font-size: 1rem;
        min-width: 44px;
        height: 44px;
    }
    
    .zoom-level {
        font-size: 1rem;
        min-width: 70px;
        padding: 10px 14px;
    }
}

/* Accessibility improvements */
.zoom-controls .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.zoom-controls .btn:focus:not(:focus-visible) {
    outline: none;
}

/* Loading state for images */
.zoomable-image.loading {
    opacity: 0.7;
    filter: blur(1px);
}

/* Smooth transitions for all interactive elements */
.zoom-controls *,
.zoomable-image,
.image-container {
    transition: all 0.2s ease;
}

/* Better touch targets for mobile */
@media (max-width: 480px) {
    .zoom-controls .btn {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .zoom-level {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Image loading state */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: white;
    background: rgba(51, 51, 51, 0.8);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Zoom instructions */
.zoom-instructions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(51, 51, 51, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
    z-index: 100;
}

.zoom-instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal footer improvements */
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    background: #333333;
    color: white;
    border-radius: 0 0 12px 12px;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.file-actions .btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.file-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced modal content */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 0;
    background: #fff;
}

/* File viewer improvements */
.file-viewer {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #fff;
}

.file-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Video viewer improvements */
#modalVideo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* PDF viewer improvements */
.pdf-container {
    height: 100%;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#pdfFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.pdf-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.pdf-fallback p {
    margin-bottom: 1rem;
}

/* Document viewer improvements */
.document-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Mobile optimizations for new elements */
@media (max-width: 768px) {
    .zoom-instructions {
        bottom: 10px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
    }
    

    
    .file-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .zoom-instructions {
        bottom: 8px;
        padding: 4px 8px;
        font-size: 0.65rem;
        max-width: 90%;
        text-align: center;
    }
    
    .modal-footer {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    

    
    .file-actions {
        justify-content: center;
    }
}

/* Dark mode support for new elements */
@media (prefers-color-scheme: dark) {
    .zoom-instructions {
        background: rgba(51, 51, 51, 0.95);
        color: #cccccc;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .modal-footer {
        background: #333333;
    }
    
    .modal-header {
        background: #333333;
    }
    
    .modal-content {
        background: #333333;
        color: #cccccc;
    }
    
    .file-viewer {
        background: #333333;
    }
    
    .file-content {
        background: #333333;
    }
    
    .pdf-container {
        background: #333333;
    }
    
    .pdf-fallback {
        background: #333333;
    }
    
    .document-placeholder {
        background: #333333;
    }
}

/* High contrast mode for new elements */
@media (prefers-contrast: high) {
    .zoom-instructions {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid #000;
        color: #000;
    }
    
    .modal-footer {
        border-top-width: 2px;
    }
    
    .modal-header {
        border-bottom-width: 2px;
    }
}

/* Reduced motion for new elements */
@media (prefers-reduced-motion: reduce) {
    .zoom-instructions {
        transition: none;
    }
    
    .image-loading .spinner-border {
        animation: none;
    }
}

/* Landscape orientation for new elements */
@media (max-width: 768px) and (orientation: landscape) {
    .zoom-instructions {
        bottom: 5px;
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .modal-footer {
        padding: 0.5rem;
    }
}

/* Large screens optimization for new elements */
@media (min-width: 1200px) {
    .zoom-instructions {
        bottom: 20px;
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .modal-footer {
        padding: 1.25rem;
    }
    

    
    .file-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modal content improvements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #333333;
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #333333;
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .modal-title {
    color: white;
}

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

.modal-body {
    background: #333333;
    color: white;
    padding: 1.5rem;
}

.file-viewer {
    background: #333333;
    color: white;
    border-radius: 8px;
    overflow: hidden;
}
