/* ====================================
   REPORT PAGES STYLING
   ==================================== */

/* Standalone report page layout */
.report-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override base.css body margin for report pages */
body.report-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f0f0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Ensure no margin on report page body - higher specificity */
html body.report-page {
    margin: 0 !important;
    padding: 0 !important;
}

.report-main {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Ensure main element has no extra spacing on report pages */
body.report-page main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

/* Hide any browser UI elements */
.report-page::-webkit-scrollbar {
    display: none;
}

.report-page {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ensure full screen coverage */
.report-page * {
    box-sizing: border-box;
}

/* Override Bootstrap container styles for report pages */
.report-page .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.report-page .row {
    margin: 0 !important;
}

.report-page .col-lg-10 {
    padding: 0 !important;
}

/* Hide any potential header/footer elements */
.report-page header,
.report-page footer,
.report-page nav {
    display: none !important;
}

/* Allow normal scrolling */
.report-page {
    overflow: auto;
}

.report-page .report-main {
    overflow: auto;
}

/* ====================================
   CATEGORIES PAGE (STEP 1)
   ==================================== */

/* Desktop layout - removed fixed positioning and viewport sizes */
@media (min-width: 769px) {
    .report-categories-container {
        background: #f0f0f0;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        max-width: none !important;
    }
    
    .report-categories-container .row {
        margin: 0;
        width: 100%;
    }
    
    .report-categories-container .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .report-categories-container .styled-section {
        background: white;
        border-radius: 0;
        margin: 0;
        width: 100%;
        box-shadow: none;
        padding: 2rem;
    }
    
    .report-info-container {
        background: #f0f0f0;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        max-width: none !important;
    }
    
    .report-info-container .row {
        margin: 0;
        width: 100%;
    }
    
    .report-info-container .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .report-info-container .styled-section {
        background: white;
        border-radius: 0 !important;
        margin: 0;
        width: 100%;
        box-shadow: none;
        padding: 2rem;
    }
    
    /* Success page layout */
    .success-content {
        background: #f0f0f0;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .success-content .row {
        margin: 0;
        width: 100%;
    }
    
    .success-content .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .success-content .styled-section {
        background: white;
        border-radius: 0;
        margin: 0;
        width: 100%;
        box-shadow: none;
        padding: 2rem;
    }
}

/* Categories Grid Layout */

.report-categories-container {
    padding-bottom: 0;
}

/* Ensure containers fill the entire viewport */
.report-categories-container,
.report-info-container,
.success-content {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure styled sections fill the container */
.report-categories-container .styled-section,
.report-info-container .styled-section,
.success-content .styled-section {
    width: 100%;
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    overflow-x: hidden;
}

/* Mobile padding adjustments */
@media (max-width: 768px) {
    .report-categories-container .styled-section,
    .report-info-container .styled-section,
    .success-content .styled-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .report-categories-container .styled-section,
    .report-info-container .styled-section,
    .success-content .styled-section {
        padding: 1rem;
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    min-height: 120px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card h3 .emoji {
    font-size: 1.4rem;
    margin-right: 0.3rem;
}

.category-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Selected state */
.btn-check:checked + .category-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-check:checked + .category-card h3 {
    color: white;
}

.btn-check:checked + .category-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ====================================
   REPORT FORM (STEP 2)
   ==================================== */

/* Form Sections */
.report-info-container {
    padding-bottom: 0;
}

.report-info-container .styled-section {
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 30px;
    padding: 3rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #007bff;
    font-size: 1.2rem;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: white;
}



.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Map controls for report form */
.map-controls {
    background: rgba(248, 249, 250, 0.95);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.map-controls .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.file-upload-area.dragover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

/* Custom File Upload Button */
.custom-file-upload {
    position: relative;
}

/* Hidden file input that's still focusable */
.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-upload-btn {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;
}

.file-upload-btn:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    color: #007bff;
}

.file-upload-btn i {
    font-size: 1rem;
    color: #6c757d;
}

.file-upload-btn:hover i {
    color: #007bff;
}

/* Enhanced file upload button styling */
.file-upload-btn {
    position: relative;
    overflow: hidden;
}

.file-upload-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.file-upload-btn:hover::after {
    left: 100%;
}



/* Form Actions */
.form-actions {
    border-top: 2px solid #e9ecef;
}

.back-button {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-button:hover {
    color: #333;
    background: rgba(248, 249, 250, 0.8);
    text-decoration: none;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Status Messages */
.verification-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.verification-status.success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 3px solid #28a745;
}

.verification-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.verification-status.loading {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 3px solid #ffc107;
}

/* ====================================
   SUCCESS PAGE
   ==================================== */

/* Success Icon */
.success-icon i {
    font-size: 5rem;
    color: #28a745;
    opacity: 0.9;
}

/* Success Content */
.success-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Protocol Display */
.success-content h4 {
    font-weight: 600;
    color: #28a745;
    padding: 1rem 2rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 15px;
    display: inline-block;
}

/* Info Alert */
.alert-info {
    background: rgba(0, 123, 255, 0.1);
    color: #004085;
    border: none;
    border-left: 4px solid #007bff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
}

.alert-info ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.alert-info li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Info Cards */
.success-content .row .col-md-6 .d-flex {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.success-content .row .col-md-6 .d-flex:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.success-content .row .col-md-6 h6 {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #333;
}

.success-content .row .col-md-6 small {
    color: #666;
    font-size: 0.85rem;
}

/* Action Buttons */
.success-actions {
    margin: 2rem 0;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-button.primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.action-button.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    border-color: #dee2e6;
}

.action-button.secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
    color: #495057;
    text-decoration: none;
}

.action-button.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.action-button.success:hover {
    background: rgba(40, 167, 69, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: #28a745;
    text-decoration: none;
}

/* Contact Cards */
.success-content .row:last-of-type .card {
    background: rgba(248, 249, 250, 0.6);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.success-content .row:last-of-type .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.success-content .row:last-of-type .card-body {
    padding: 1.5rem;
}

.success-content .row:last-of-type h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-content .row:last-of-type .small {
    color: #666;
    line-height: 1.4;
}

/* ====================================
   SHARED COMPONENTS
   ==================================== */

/* CTA Button (used across report pages) */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

/* ====================================
   MOBILE RESPONSIVENESS
   ==================================== */

/* Categories Page Mobile */
@media (max-width: 768px) {
    /* Hide header and adjust body when categories container is visible */
    body.report-page {
        margin: 0 !important;
        padding: 0 !important;
        overflow: auto;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Categories page mobile layout */
    .report-categories-container {
        background: #f0f0f0;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 6rem !important;
        width: 100%;
        max-width: none !important;
    }
    
    .report-categories-container .row {
        margin: 0;
        width: 100%;
    }
    
    .report-categories-container .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .report-categories-container .styled-section {
        background: white;
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        width: 100%;
        box-shadow: none;
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .back-button,
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .cta-button {
        margin-bottom: 2rem;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Map Improvements */
/* Mobile map styles moved to dedicated report-detail-map.css file */

/* Form Page Mobile */
@media (max-width: 768px) {
    /* Hide header and adjust body when report info container is visible */
    body.report-page {
        margin: 0 !important;
        padding: 0 !important;
        overflow: auto;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Report info container mobile layout */
    .report-info-container {
        background: #f0f0f0;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 6rem !important;
        width: 100%;
        max-width: none !important;
    }
    
    .report-info-container .row {
        margin: 0;
        width: 100%;
    }
    
    .report-info-container .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    /* Ensure no horizontal overflow */
    .report-info-container * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .report-info-container .styled-section {
        padding: 1.5rem;
        border-radius: 0 !important;
        margin: 0;
        width: 100%;
        box-shadow: none;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .back-button,
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .report-info-container .styled-section {
        padding: 1rem;
        border-radius: 0 !important;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-title i {
        font-size: 1rem;
    }
}

/* Success Page Mobile */
@media (max-width: 768px) {
    /* Success page mobile layout */
    .success-content {
        background: #f0f0f0;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .success-content .row {
        margin: 0;
        width: 100%;
        min-height: 100vh;
    }
    
    .success-content .col-lg-10 {
        padding: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .success-content .styled-section {
        background: white;
        border-radius: 0;
        margin: 0;
        width: 100%;
        box-shadow: none;
        padding: 1.5rem;
    }
    
    .success-icon i {
        font-size: 4rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        width: 80%;
        max-width: 300px;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .success-content h4 {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .alert-info {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* General Mobile Adjustments */
@media (max-width: 480px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .action-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .category-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    /* Categories page specific 480px adjustments */
    .report-categories-container .styled-section {
        padding: 1rem;
        border-radius: 0;
    }
    
    .report-categories-container .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ====================================
   REPORT DETAIL PAGE
   ==================================== */

.report-detail-container {
    min-height: calc(100vh - 200px);
    padding-bottom: 5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.report-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    word-wrap: break-word;
}

.report-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

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

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

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

.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-color: #fff3cd;
    color: #856404;
}

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

.report-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.report-id, .report-date, .report-author {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.report-location h6,
.report-description h6,
.report-transport h6,
.report-media h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.location-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Override feed.css flex display for report detail page */
.report-detail-container .report-location {
    display: block;
    align-items: unset;
}

/* Report detail page description - show full text */
.report-detail-container .description-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Override feed truncation styles */
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

.transport-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.transport-details {
    margin-top: 0.5rem;
    color: #666;
}

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

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.2s ease;
}

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

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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: 2rem;
    min-height: 150px;
}

.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-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;
}

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

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

.vote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: transparent;
    border-radius: 0;
    margin: 2rem 0;
    border: none;
}

.vote-action {
    display: flex;
    align-items: center;
}

/* Vote Shield Design - Same as feed */
.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;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Report Detail Mobile Responsiveness */
@media (max-width: 768px) {
    /* Override body overflow for report detail page */
    .report-detail-page {
        overflow: auto !important;
    }
    
    .report-detail-page body {
        overflow: auto !important;
    }
    
    .report-detail-container {
        padding: 0 1rem;
        padding-bottom: 5rem;
    }
    
    .report-detail-card {
        padding: 1.5rem;
    }
    
    .report-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .report-meta-info {
        flex-direction: column;
        gap: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .vote-section {
        padding: 1rem;
    }
    
    .vote-shield {
        margin-left: 0.8rem;
        padding: 0.15rem 0.4rem;
        min-width: 20px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .vote-count {
        font-size: 0.65rem;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .report-detail-container .report-actions .action-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .report-detail-container .vote-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        width: auto;
        justify-content: center;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .report-detail-container .description-text {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        /* Override feed truncation styles */
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }
    
    .location-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .transport-details {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Override body overflow for report detail page */
    .report-detail-page {
        overflow: auto !important;
    }
    
    .report-detail-page body {
        overflow: auto !important;
    }
    
    .report-detail-container {
        padding: 0 0.5rem;
        padding-bottom: 5rem;
    }
    
    .report-detail-card {
        padding: 1rem;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .vote-number {
        font-size: 1.2rem;
    }
    
    .report-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .report-detail-container .report-actions .action-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .report-detail-container .vote-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .vote-shield {
        margin-left: 0.6rem;
        padding: 0.1rem 0.3rem;
        min-width: 18px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .vote-count {
        font-size: 0.6rem;
    }
    
    .report-detail-container .description-text {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        /* Override feed truncation styles */
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }
    
    .location-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .transport-details {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}

/* Map styling moved to dedicated report-detail-map.css file */

/* ====================================
   REPORT DETAIL PAGE BUTTON STYLES
   ==================================== */

/* Back button now uses map page styling - no specific CSS needed */

/* Vote section styling improvements - minimalist */
.report-detail-container .vote-section {
    background: transparent;
    border-radius: 0;
    padding: 2rem;
    margin: 2rem 0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.report-detail-container .vote-action {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Report actions layout improvements */
.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Report detail action buttons - matches feed style with grey background */
.report-detail-container .report-actions .action-btn {
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.report-detail-container .report-actions .action-btn:hover {
    background-color: #d0d0d0;
    color: #333;
    text-decoration: none !important;
    transform: none;
}

.report-detail-container .report-actions .action-btn i {
    color: #007bff !important;
    margin-right: 0.5rem;
}

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

/* Vote button specific styling for report detail - matches feed style */
.report-detail-container .vote-btn {
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    min-width: 80px;
    position: relative;
    text-decoration: none;
}

.report-detail-container .vote-btn:hover {
    background-color: #d0d0d0;
    color: #333;
    transform: none;
    text-decoration: none;
}

/* Vote Shield Design - matches feed with bigger gap */
.report-detail-container .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: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    height: 20px;
    position: relative;
}

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

.report-detail-container .vote-btn:hover {
    background-color: #d0d0d0;
    color: #333;
    transform: none;
    text-decoration: none;
}

.report-detail-container .vote-btn i {
    color: #28a745 !important;
    margin-right: 0.5rem;
}

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

/* Mobile bottom spacing for category selection and report info */
.mobile-bottom-spacing {
    height: 0;
}

@media (max-width: 768px) {
    .mobile-bottom-spacing {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-spacing {
        height: 120px;
    }
}

/* Report info page bottom spacing */
.report-info-bottom-spacing {
    height: 0;
}

@media (max-width: 768px) {
    .report-info-bottom-spacing {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .report-info-bottom-spacing {
        height: 150px;
    }
}

/* File preview area styling */
#filePreview {
    margin-top: 1rem;
}

#filePreview .border {
    border-color: #e9ecef !important;
    background: rgba(248, 249, 250, 0.5) !important;
}

#filePreview h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

#fileList .d-flex {
    padding: 0.5rem;
    border-radius: 6px;
    background: white;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

#fileList .d-flex:last-child {
    margin-bottom: 0;
}

#fileList .d-flex i {
    color: #6c757d;
    font-size: 1.1rem;
    min-width: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

#fileList .d-flex span {
    color: #495057;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

#fileList .d-flex small {
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

#fileList .d-flex .btn {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Mobile-specific share button styles */
@media (max-width: 768px) {
    .report-detail-container .share-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .report-detail-container .share-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .report-detail-container .share-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .report-detail-container .share-btn i {
        font-size: 0.8rem;
    }
}

/* Share button specific styling - match other action buttons */
.report-detail-container .share-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.report-detail-container .share-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}

.report-detail-container .share-btn:active {
    transform: translateY(0);
}

.report-detail-container .share-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.report-detail-container .share-btn:hover i {
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Share modal styling */
.share-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.share-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    z-index: 10000;
}

.share-modal-header {
    margin-bottom: 1.5rem;
}

.share-modal-header h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.share-modal-header p {
    color: #666;
    font-size: 0.9rem;
}

.share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.share-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.share-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.share-option.whatsapp i {
    color: #25d366;
}

.share-option.instagram i {
    color: #e4405f;
}

.share-option.facebook i {
    color: #1877f2;
}

.share-option.twitter i {
    color: #1da1f2;
}

.share-option.telegram i {
    color: #0088cc;
}

.share-option.linkedin i {
    color: #0077b5;
}

.share-option.copy i {
    color: #6c757d;
}

.share-option span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

.share-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.share-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

@media (max-width: 768px) {
    .share-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .share-options {
        gap: 0.5rem;
    }
    
    .share-option {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .share-option i {
        font-size: 1.5rem;
    }
    
    .share-option span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .share-modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .share-options {
        gap: 0.25rem;
    }
    
    .share-option {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .share-option i {
        font-size: 1.25rem;
    }
    
    .share-option span {
        font-size: 0.65rem;
    }
}
