/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários */
.hidden {
    display: none !important;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007bff;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007bff;
    font-weight: 500;
}

.user-info i {
    font-size: 1.5rem;
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 2rem 0;
}

.section.active {
    display: block;
}

/* Tutorial Banner */
.tutorial-banner {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-text p {
    margin: 0;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.banner-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

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

.banner-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-container h2 i {
    margin-right: 10px;
    color: #007bff;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.file-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.cep-loading {
    text-align: center;
    color: #007bff;
    font-style: italic;
    margin: 1rem 0;
}

.localizacao-status {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.status-item i {
    margin-right: 0.5rem;
    width: 16px;
}

.status-item.success {
    color: #28a745;
}

.status-item.warning {
    color: #ffc107;
}

.status-item.info {
    color: #17a2b8;
}

.status-item.loading {
    color: #007bff;
}

.status-item.loading i {
    animation: spin 1s linear infinite;
}

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

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.auth-required {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.auth-required i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Media Preview */
.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.media-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: #f8f9fa;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.media-item .remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

.media-info {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

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

.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #007bff;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

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

.filters select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    min-width: 180px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #007bff;
}

/* Reclamações Stats */
.reclamacoes-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.no-results p {
    font-size: 1.1rem;
}

/* Map Styles */
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-filters select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    min-width: 180px;
    font-size: 14px;
}

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

.map-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

.quick-filters h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.quick-filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.filter-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
}

.filter-indicator.pendente {
    background: #ffc107;
}

.filter-indicator.em-andamento {
    background: #17a2b8;
}

.filter-indicator.resolvida {
    background: #28a745;
}

.map-legend {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.map-legend h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.legend-marker.pendente {
    background: #ffc107;
}

.legend-marker.em-andamento {
    background: #17a2b8;
}

.legend-marker.resolvida {
    background: #28a745;
}

.legend-marker.with-media {
    background: #007bff;
    position: relative;
}

.legend-marker.with-media::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}

.map-container {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-loading i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.map-loading p {
    color: #666;
    font-size: 1.1rem;
}

.map-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.map-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Custom Leaflet Popup Styles */
.custom-popup {
    min-width: 300px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.popup-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 1rem;
}

.popup-category {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.popup-description {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.popup-location {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.popup-info {
    margin: 1rem 0;
}

.popup-location,
.popup-date {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}

.popup-media {
    margin: 1rem 0;
}

.popup-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.popup-media-item {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.popup-media-item img,
.popup-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.popup-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.popup-btn-primary {
    background: #007bff;
    color: white;
}

.popup-btn-primary:hover {
    background: #0056b3;
}

.popup-btn-secondary {
    background: #6c757d;
    color: white;
}

.popup-btn-secondary:hover {
    background: #545b62;
}

/* Custom Map Markers */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.marker-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    font-size: 12px;
    z-index: 2;
}

.media-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    transform: rotate(45deg);
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.marker-pin.has-media {
    border-color: #007bff;
    border-width: 4px;
}

/* User Location Marker */
.user-location-marker {
    background: transparent;
    border: none;
}

.user-location-dot {
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Marker Clusters */
.marker-cluster {
    background: rgba(0, 123, 255, 0.8);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.marker-cluster-small {
    background: rgba(0, 123, 255, 0.8);
}

.marker-cluster-medium {
    background: rgba(255, 193, 7, 0.8);
}

.marker-cluster-large {
    background: rgba(220, 53, 69, 0.8);
}

/* Popup Media Grid */
.more-media {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px dashed #dee2e6;
}

/* Nearby Reclamações */
.nearby-reclamacoes-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
}

.nearby-reclamacao-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nearby-reclamacao-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.nearby-header h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.distance-badge {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 1rem;
}

.nearby-info {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.nearby-location {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Reclamações Grid */
.reclamacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.reclamacao-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.reclamacao-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reclamacao-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.reclamacao-categoria {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.reclamacao-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pendente {
    background: #ffc107;
    color: #333;
}

.status-em-andamento {
    background: #17a2b8;
    color: white;
}

.status-resolvida {
    background: #28a745;
    color: white;
}

.reclamacao-descricao {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reclamacao-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
}

.reclamacao-localizacao,
.reclamacao-data {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reclamacao-media-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #007bff;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 15px;
    width: fit-content;
}

/* Destaque de busca */
mark {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.section.active {
    animation: fadeIn 0.5s ease;
}

.reclamacao-card {
    animation: slideInLeft 0.3s ease;
}

.btn:active {
    animation: pulse 0.2s ease;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 20px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        background: #f8f9fa;
        border-radius: 20px;
        font-size: 0.9rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .search-filters {
        padding: 1rem;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        min-width: 100%;
    }

    .reclamacoes-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1rem;
        max-height: 90vh;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .map-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .map-filters {
        flex-direction: column;
        width: 100%;
    }

    .map-filters select {
        min-width: 100%;
    }

    .map-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .quick-filter-buttons {
        justify-content: center;
    }

    .quick-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .map {
        height: 400px;
    }

    .map-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .nearby-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .distance-badge {
        align-self: flex-start;
        margin-left: 0;
    }

    .media-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .media-item img,
    .media-item video {
        height: 100px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .reclamacao-card {
        padding: 1rem;
    }

    .reclamacao-titulo {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-item .stat-number {
        font-size: 1.3rem !important;
    }
}

/* Melhorias específicas para formulários no mobile */
@media (max-width: 768px) {
    .header .container {
        padding: 0.75rem 15px;
    }
    
    .main {
        margin-top: 70px;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 0.6rem;
        display: block;
        font-weight: 600;
        color: #495057;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.875rem;
        border-radius: 10px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
        transform: translateY(-1px);
    }
    
    .btn {
        width: 100%;
        padding: 1.125rem;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        margin-top: 1.5rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 44px;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
        color: white;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    }
    
    .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .form-container {
        padding: 1.25rem 0.75rem;
        margin: 0.5rem 0.25rem;
        border-radius: 15px;
    }
    
    .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 0.75rem;
        color: #212529;
        font-weight: 700;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .btn {
        padding: 1.25rem;
        font-size: 16px;
        border-radius: 12px;
        margin-top: 2rem;
        min-height: 50px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .nav ul {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 15px;
        min-height: 44px;
    }
}

/* Animações para feedback visual */
.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Indicador de carregamento para o botão */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
