/* Citizen Reports Public Styles */

.citizen-reports-app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.app-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
}

.app-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
    font-weight: 600;
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Form Lock Overlay */
.form-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.unlock-form-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.unlock-form-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.unlock-form-btn:disabled {
    background: #28a745;
    cursor: not-allowed;
    transform: none;
}

/* Form Styles */
.citizen-report-form {
    position: relative;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

/* GPS Capture */
.gps-capture-group {
    display: flex;
    gap: 15px;
    align-items: end;
}

.capture-gps-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.capture-gps-btn:hover {
    background: #218838;
}

.gps-status {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Location Preview Map */
#location-preview {
    height: 200px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

/* Image Upload */
.image-upload-group {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.image-upload-group:hover {
    border-color: #667eea;
}

.image-validation-status {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

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

.submit-status {
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

/* Reports Archive */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.report-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.report-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.report-content {
    padding: 20px;
}

.report-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #495057;
}

.report-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.report-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

/* Single Report */
.single-report {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.report-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.report-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.report-image {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Rating System */
.rating-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.rating-star {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #ddd;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .citizen-reports-app {
        padding: 10px;
    }

    .citizen-report-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .gps-capture-group {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .app-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .citizen-reports-app {
        padding: 5px;
    }

    .citizen-report-form {
        padding: 15px;
    }

    .app-header {
        padding: 15px;
    }

    .app-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Status Messages */
.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}
