/*
Theme Name: Moveus
Theme URI: 
Description: Tema para mapeamento de problemas urbanos
Author: Seu Nome
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moveus
*/ 

/* Estilos Gerais */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    padding: 2rem 1rem;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.site-title {
    font-weight: 700;
    color: #0d6efd;
    margin: 0;
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.25rem;
}

.card-header h5 {
    font-weight: 600;
    margin: 0;
}

/* Estatísticas Cards */
.stats-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stats-card .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-card .card-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Tabelas */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Status Select */
.status-problema {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    width: 140px;
}

/* Botões */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.btn-info {
    background: #0dcaf0;
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: #0bb5d7;
    color: #fff;
}

/* Mapa */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mapa-dashboard {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.25rem;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pendente {
    background-color: #dc3545;
    color: white;
}

.status-em-andamento {
    background-color: #ffc107;
    color: #000;
}

.status-resolvido {
    background-color: #198754;
    color: white;
}

/* Formulários */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .stats-card .card-text {
        font-size: 2rem;
    }

    .table-responsive {
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.user-marker {
    background: transparent;
}

.pulse {
    width: 10px;
    height: 10px;
    background: #2196F3;
    border-radius: 50%;
    position: relative;
}

.pulse:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(33, 150, 243, 0.4);
    border-radius: 50%;
    top: -5px;
    left: -5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Estilo para o formulário */
.form-group {
    margin-bottom: 1rem;
}

#mapa {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para o marcador de problema */
.problem-marker {
    color: #f44336;
}

.custom-map-control-button {
    /* background-color: #fff; */
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    height: 40px;
    cursor: pointer;
}

.custom-map-control-button:hover {
    /* background: #ebebeb; */
}

/* Estilos para o mapa do dashboard */
#mapa-dashboard {
    height: 500px !important;
    width: 100% !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Garantir que o container do mapa tenha altura */
.dashboard-map-container {
    height: 500px;
    width: 100%;
    position: relative;
}

/* Estilo para o InfoWindow */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Estilo para os botões do mapa */
.custom-map-control-button.btn-danger {
    background-color: #dc3545;
    color: white;
}

.custom-map-control-button.btn-danger:hover {
    background-color: #bb2d3b;
}

/* Estilo para o formulário */
.form-problem {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.location-instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #0d6efd;
}

/* Estilos para o Pegman */
.pegman-marker {
    width: 100% !important;
    height: 100% !important;
}

.pegman-control {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.pegman-control.dragging {
    background-color: #e6e6e6;
}

.pegman-control .pegman-button {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.streetview-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000;
}

/* Estilos para o modal de problemas */
#problemDetailsModal .modal-body {
    padding: 20px;
}

#problemDetailsModal .problema-foto img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#problemDetailsModal .problema-titulo {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#problemDetailsModal .problema-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#problemDetailsModal .problema-meta p {
    margin-bottom: 0.5rem;
}

#problemDetailsModal .problema-descricao {
    line-height: 1.6;
}

#problemDetailsModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Estilos para a coluna de endereço */
.endereco-problema {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para o placeholder de carregamento */
.placeholder-glow {
    display: block;
    width: 100%;
}

.placeholder {
    display: inline-block;
    min-height: 1em;
    vertical-align: middle;
    cursor: wait;
    background-color: currentColor;
    opacity: .5;
}

/* Estilos para preview de foto */
#foto-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    border: 2px dashed #dee2e6;
}

#foto-preview img {
    max-height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para input de arquivo */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.form-control[type="file"]::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    margin-right: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    border: 0;
    border-right: 1px solid #dee2e6;
    border-radius: 4px 0 0 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-control[type="file"]::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    margin-right: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    border: 0;
    border-right: 1px solid #dee2e6;
    border-radius: 4px 0 0 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-control[type="file"]::file-selector-button:hover,
.form-control[type="file"]::-webkit-file-upload-button:hover {
    background-color: #dde0e3;
}

/* Estilos para Modal de Feedback */
.feedback-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 1rem;
}

.feedback-icon.success {
    background-color: #d4edda;
    color: #198754;
}

.feedback-icon.error {
    background-color: #f8d7da;
    color: #dc3545;
}

.feedback-icon.warning {
    background-color: #fff3cd;
    color: #ffc107;
}

.feedback-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-message {
    color: #6c757d;
    font-size: 1.1rem;
}

#feedbackModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#feedbackModal .modal-body {
    padding: 2rem;
}

.feedback-icon i {
    line-height: 1;
}

/* Estilos para busca e paginação */
.dataTables_info {
    font-size: 0.875rem;
    color: #6c757d;
}

.pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

#problemasSearch {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

#problemasSearch:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Estilos para scroll infinito */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #fff;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #fff;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 4px;
    border: 2px solid #fff;
}

#tableLoader {
    opacity: 0;
    transition: opacity 0.3s;
}

#tableLoader.visible {
    opacity: 1;
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 1024px !important;
    }
}

/* Estilos para a página de edição de perfil */
.profile-edit-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-edit-container h1 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #444;
}

.avatar-section {
    text-align: center;
}

.current-avatar {
    margin-bottom: 1rem;
}

.current-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.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 textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.button-primary {
    background: #0073aa;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button-primary:hover {
    background: #005177;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    /* text-align: center; */
}

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

/* Responsividade */
@media (max-width: 768px) {
    .profile-edit-container {
        padding: 1rem;
        margin: 1rem;
    }

    .form-section {
        padding: 1rem;
    }
}

/* Estilos para o header do usuário */
.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 20px;
    color: #6c757d;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .header-avatar {
        width: 28px;
        height: 28px;
    }
}

/* Estilos para preview de avatar */
.current-avatar img {
    transition: opacity 0.3s ease;
}

.avatar-section label.btn {
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
}

.avatar-section label.btn:hover {
    background-color: #0073aa;
    color: white;
}

/* Estilos para a página de login */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

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

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

.login-form .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.login-form .form-control {
    border-left: none;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.login-form .input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.login-form .input-group:focus-within .input-group-text,
.login-form .input-group:focus-within .form-control {
    border-color: #86b7fe;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer .separator {
    color: #6c757d;
    margin: 0 0.5rem;
}

.login-footer .register-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-footer .register-link:hover {
    text-decoration: underline;
}

.login-prompt {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 400px;
}

.login-prompt h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.login-footer .d-flex {
    margin-top: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }
}

.login-prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-prompt .btn {
    min-width: 140px;
}

.login-prompt .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-prompt-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .login-prompt .btn {
        width: 100%;
    }
}

/* Estilos para os filtros da tabela */
.card-header .form-select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-position: right 0.5rem center;
}

.card-header .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.card-header .d-flex.gap-2 > * {
    min-width: 120px;
}

@media (max-width: 768px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .card-header .d-flex > * {
        width: 100% !important;
    }
}

/* Estilos para loading da busca */
.search-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.position-relative {
    position: relative;
}

/* Estilos para o ícone de localização */
.feedback-icon.info {
    background-color: #cfe2ff;
    color: #0d6efd;
}

.feedback-icon .fa-map-marker-alt {
    font-size: 36px;
}

#confirmLocationModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#confirmLocationModal .modal-body {
    padding: 2rem;
}

/* Estilos para o endereço no modal */
.location-address {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.location-address p {
    margin: 0;
}

.location-address .text-muted {
    font-size: 0.9rem;
}

.location-address .fw-bold {
    color: #0d6efd;
} 