/* Prompt Font */
@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.btn-language {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s;
}

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

.btn-language i {
    font-size: 14px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.header-icon i {
    font-size: 40px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.header h1 {
    color: var(--gray-900);
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 15px;
}

.location-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Alert Box */
.alert-box {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.alert-box.hidden {
    display: none;
}

.alert-box.success {
    background: #d1fae5;
    color: var(--success);
}

.alert-box.error {
    background: #fee2e2;
    color: var(--danger);
}

.alert-box i {
    font-size: 24px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    font-size: 16px;
}

.form-group label i {
    color: var(--primary);
    font-size: 18px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Prompt', sans-serif;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: 'Prompt', sans-serif;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 13px;
}

/* Location Display */
.location-display {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
}

.location-loading i {
    font-size: 20px;
    color: var(--primary);
}

.location-success {
    text-align: left;
    width: 100%;
}

.location-success i {
    color: var(--success);
    font-size: 24px;
    margin-bottom: 10px;
}

.location-coords {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
    font-family: monospace;
}

.location-error {
    text-align: center;
    color: var(--danger);
}

.location-error i {
    font-size: 24px;
    margin-bottom: 10px;
}

.btn-refresh {
    padding: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-family: 'Prompt', sans-serif;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: var(--gray-200);
}

.btn-refresh i {
    transition: transform 0.3s;
}

.btn-refresh:active i {
    transform: rotate(180deg);
}

/* Location Buttons */
.location-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.btn-refresh {
    grid-column: 1;
    height: 48px;
}

.btn-map-select {
    grid-column: 2;
    height: 48px;
    padding: 12px;
    font-family: 'Prompt', sans-serif;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-map-select:hover {
    background: #059669;
}

.btn-map-select.hidden {
    display: none;
}

/* Map Picker */
.map-picker {
    background: white;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.map-picker.hidden {
    display: none;
}

.map-picker-header {
    margin-bottom: 15px;
}

.map-picker-header h3 {
    color: #059669;
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-picker-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Map Search Container */
.map-search-container {
    position: relative;
    margin-bottom: 15px;
}

#mapSearchInput {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

#mapSearchInput:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

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

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-item i {
    color: #10b981;
    margin-right: 10px;
}

.search-result-name {
    font-weight: 600;
    color: var(--gray-900);
    display: block;
    margin-bottom: 3px;
}

.search-result-address {
    font-size: 13px;
    color: var(--gray-600);
}

.search-loading {
    padding: 12px 15px;
    text-align: center;
    color: var(--gray-600);
}

.search-no-results {
    padding: 12px 15px;
    text-align: center;
    color: var(--gray-600);
}

/* Fix Leaflet Map Display */
#pickMap {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    z-index: 1;
}

#pickMap .leaflet-container {
    border-radius: 12px;
}

.map-picker-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-confirm {
    flex: 1;
    padding: 12px;
    background: #10b981;
    font-family: 'Prompt', sans-serif;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background: #059669;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #ef4444;
    font-family: 'Prompt', sans-serif;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

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

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f0f9ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    cursor: pointer;
    font-weight: 500;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Reporter Info Section */
.reporter-info {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

.reporter-info.hidden {
    display: none;
}

.reporter-info h3 {
    color: #92400e;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.reporter-info .form-group:last-child {
    margin-bottom: 0;
}

.reporter-info select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

/* Info Box */
.info-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-box > i {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 8px;
}

.warning-text {
    color: var(--warning);
    font-weight: 600;
}

/* Emergency Contacts */
.emergency-contacts {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.emergency-contacts h3 {
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-contacts h3 i {
    color: var(--danger);
}

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

.contact-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-card:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.contact-card i {
    font-size: 28px;
    color: var(--danger);
}

.contact-card:hover i {
    color: white;
}

.contact-card span {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.contact-card:hover span {
    color: white;
}

.contact-card small {
    font-size: 12px;
    color: var(--gray-600);
}

.contact-card:hover small {
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
    position: relative;
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-700);
}

.btn-close-modal:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.developer-logo {
    max-width: 200px;
    height: auto;
    margin: 20px auto;
    display: block;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon i {
    font-size: 40px;
    color: white;
}

.modal-content h2 {
    color: var(--gray-900);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 10px;
    line-height: 1.6;
}

.btn-modal {
    margin-top: 25px;
    padding: 12px 30px;
    background: var(--gray-900);
    font-family: 'Prompt', sans-serif;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-modal:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }

    .header {
        padding: 18px 12px;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .subtitle {
        font-size: 14px;
    }

    .form-container {
        padding: 18px 12px;
        border-radius: 15px;
    }

    .info-box {
        padding: 12px;
        border-radius: 15px;
    }

    .emergency-contacts {
        padding: 18px 12px;
        border-radius: 15px;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .contact-card {
        padding: 15px 8px;
    }

    .contact-card i {
        font-size: 24px;
    }

    .contact-card span {
        font-size: 18px;
    }
}

/* Footer */
.app-footer {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-section {
    padding-bottom: 0;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer-section p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.app-version {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.app-description {
    color: var(--gray-600);
    font-size: 14px;
}

.privacy-notice {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    font-size: 13px;
    line-height: 1.7;
}

.copyright {
    color: var(--gray-600);
    font-size: 13px;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--gray-50);
    transition: all 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links a i {
    font-size: 14px;
}

/* Version History */
.version-history {
    margin-top: 10px;
}

.version-history details {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.version-history summary {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    user-select: none;
}

.version-history summary::-webkit-details-marker {
    display: none;
}

.version-history summary::before {
    content: '▶';
    font-size: 12px;
    transition: transform 0.3s;
}

.version-history details[open] summary::before {
    transform: rotate(90deg);
}

.version-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}

.version-item {
    margin-bottom: 10px;
}

.version-item:last-child {
    margin-bottom: 0;
}

.version-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.version-item ul {
    margin: 0;
    padding-left: 18px;
}

.version-item li {
    color: var(--gray-700);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: 18px 12px;
        margin-top: 10px;
        border-radius: 15px;
    }

    .footer-grid {
        gap: 15px;
    }

    .footer-column {
        gap: 15px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .developer-logo {
        max-width: 150px;
    }
}
