* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #ffffff;
    color: #212529;
    padding: 1rem 0;
    margin: 0 -20px 2rem -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: #e9ecef;
    border-color: #adb5bd;
}

.admin-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background: #c0392b;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
}

.current-user {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.current-user.admin {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.current-user.observer {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 0;
}

/* Project Title Section */
.project-title-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #3bca93 0%, #0a8028 100%);
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 95%;
    margin: 0 auto;
}

.project-title-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-title-section.hidden {
    display: none;
}

/* Info Section */
.info-section-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
    background: #ff9800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.info-section-header {
    background: #ff9800;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-section-header:hover {
    background: #fb8c00;
}

.info-section-titles {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.collapse-arrow {
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
}

.collapse-arrow.collapsed {
    transform: rotate(-90deg);
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    /* max-height: 500px; */
    overflow-y: auto;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding: 0 1rem 1rem 1rem;
    align-items: start;
}

.info-section::-webkit-scrollbar {
    width: 10px;
}

.info-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.info-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.info-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.info-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
}

.how-to-box,
.disclaimer-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    /* padding: 0.5rem; */
    border-radius: 8px;
    margin: -1rem -1rem -1rem -1rem;
}

.info-card-header:hover {
    background: #ffffff;
}

.info-card-header:not(:has(+ .info-card-content.collapsed)) {
    margin-bottom: 1rem;
}

.info-card-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.info-card-arrow {
    font-size: 1.2rem;
    color: #000000;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.info-card-arrow.collapsed {
    transform: rotate(-90deg);
}

.info-card-content {
    max-height: 250px;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    scrollbar-width: thick;
}

/* Chrome, Edge, Safari */
.info-card-content::-webkit-scrollbar {
    width: 15px;
    /* Adjust width as needed */
}

.info-card-content::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 4px;
}

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

.info-card-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.section-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.section-image {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.how-to-box ol,
.info-card-content ol {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.how-to-box li {
    margin-bottom: 0.5rem;
    color: #555;
}

.disclaimer-box {
    background: white;
}

.disclaimer-box p {
    color: #856404;
    line-height: 1.6;
}

.disclaimer-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #5a4000;
}

.map-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    height: 100%;
}

#map {
    flex: 1;
    width: 100%;
    min-height: 600px;
}

.location-info {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#locate-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

#locate-btn:hover {
    background: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

#coordinates {
    font-size: 0.9rem;
    color: #666;
}

.report-form-container {
    background: rgb(255, 255, 255);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.report-form-container h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}


input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

.required-label {
    font-weight: 600;
}

.required-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

input[required],
textarea[required] {
    border-left: 4px solid #dc3545;
}

input[required]:valid,
textarea[required]:valid {
    border-left-color: #28a745;
}

.contact-fields {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #e9ecef;
}

.contact-fields h3 {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.evidence-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.evidence-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

.evidence-btn:hover {
    background: #545b62;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.file-preview {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #666;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
}

.file-preview.has-file {
    border-color: #28a745;
    background: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.file-preview img,
.file-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.privacy-notice {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff2ca;
    border: 1px solid #fff2ca;
    border-radius: 8px;
    color: #272424;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.1);
}
.danger-notice {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #ffa7a7;
    border: 1px solid #ffa7a7;
    border-radius: 8px;
    color: #272424;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.1);
}

.submit-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.submit-btn:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.message {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #ff0000;
    color: #ffffff;
    /* border: 1px solid #f5c6cb; */
}

.hidden {
    display: none;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff0000;
    color: #ffffff;
    /* border: 2px solid #dc3545; */
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInScale 0.3s ease-out;
}

.notification-toast.hidden {
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.notification-close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-weight: bold;
}

.notification-close:hover {
    opacity: 1;
}

#notification-message {
    flex: 1;
    line-height: 1.4;
}

/* Image Modal / Lightbox */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

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

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

footer {
    background: #f8f9fa;
    color: #212529;
    padding: 1rem 0;
    margin: 0 -20px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links span {
    color: #6c757d;
}

footer a {
    color: #495057;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }

    header {
        margin: 0 -5px 1rem -5px;
        padding-left: 5px;
        padding-right: 5px;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: calc(100vh - 300px);
        padding: 0 0.75rem 0.75rem 0.75rem;
    }

    .info-section.collapsed {
        max-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .info-card-content {
        max-height: 250px;
        word-break: break-all;
    }

    .info-section-titles {
        font-size: 1.2rem;
    }

    .info-section-header {
        padding: 0.75rem 1rem;
    }

    .info-card-header h3 {
        font-size: 1.1rem;
    }

    #map {
        min-height: 400px;
        max-height: 600px;
        width: 85%;
        margin: 0 auto;
    }

    .location-info {
        flex-direction: column;
        text-align: center;
    }

    .report-form-container {
        padding: 1.5rem;
    }

    .evidence-options {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    footer {
        margin: 0 -5px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }

    .report-form-container {
        padding: 1rem;
    }

    #map {
        height: 250px;
    }
}