/* Estilos específicos da tela de cadastro de observador */

.form-description {
    color: var(--text-light);
    margin-bottom: 18px;
}

/* Modal de Feedback */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.feedback-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

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

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

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

.feedback-icon::after {
    content: attr(data-icon);
}

.feedback-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    color: #333;
}

.feedback-messages {
    text-align: left;
    margin-bottom: 20px;
}

.feedback-messages .main-message {
    font-size: 16px;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.feedback-modal-content button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-modal-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards de localização */
.location-group {
    margin: 20px 0;
}

.location-help {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    font-weight: 500;
    text-align: center;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .location-cards {
        gap: 12px;
    }
}

.location-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 5px;
    background: white;
    border: 3px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    min-height: 140px;
}

.location-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fdf4 0%, #ffffff 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(86, 150, 28, 0.2);
}

.location-card:active:not(.disabled) {
    transform: translateY(-2px) scale(1);
}

.location-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fafafa;
    border-color: #e0e0e0;
}

.location-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e8f5e0 0%, #f4fbf0 100%);
    border-width: 4px;
    box-shadow: 0 8px 24px rgba(86, 150, 28, 0.25), inset 0 0 0 1px rgba(86, 150, 28, 0.1);
}

.location-card.active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    animation: checkmark 0.3s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.location-card .card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.location-card:hover:not(.disabled) .card-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.location-card.active .card-icon {
    filter: grayscale(0);
    transform: scale(1.05);
}

.location-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.location-card .card-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-card.disabled .card-title,
.location-card.disabled .card-subtitle {
    color: #aaa;
}

.location-card.active .card-title {
    color: var(--primary-dark);
}

.location-card.active .card-subtitle {
    color: var(--primary-color);
}

/* Card de coordenadas */
.coords-card {
    background: white;
    border: 2px solid #e8f5e0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coords-header {
    margin-bottom: 12px;
}

.coords-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f5e0 0%, #d4edda 100%);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.coords-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 600px) {
    .coords-grid {
        grid-template-columns: 1fr;
    }
}

.coords-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coord-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.coord-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.coord-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.coord-warning {
    padding: 8px 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
}

.coord-success {
    padding: 8px 12px;
    background: #d4edda;
    border-left: 3px solid #28a745;
    border-radius: 6px;
    font-size: 13px;
    color: #155724;
    font-weight: 500;
}

.coords-map-container {
    width: 100%;
    position: relative;
     z-index: 0 !important;
}

.coords-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    z-index: 0 !important;
}

@media (max-width: 600px) {
    .coords-map {
        height: 250px;
    }
}

.location-status {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.location-status .success {
    color: #28a745;
    font-weight: 500;
}

.location-status .error {
    color: #dc3545;
    font-weight: 500;
}

.location-status .loading-small {
    color: #007bff;
    font-weight: 500;
}

.manual-input-group {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Estilos dos botões de localização */
.location-group {
    margin: 20px 0;
}

.location-help {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.location-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .location-buttons {
        grid-template-columns: 1fr;
    }
}

.btn-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-location:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: #f8fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 150, 28, 0.15);
}

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

.btn-location:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.btn-location.active {
    border-color: var(--primary-color);
    background: #f0f8e8;
    border-width: 3px;
}

.btn-location .btn-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-location .btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-location .btn-text strong {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.btn-location .btn-text small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.btn-location:disabled .btn-text strong,
.btn-location:disabled .btn-text small {
    color: #999;
}

.location-status {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.location-status .success {
    color: #28a745;
    font-weight: 500;
}

.location-status .error {
    color: #dc3545;
    font-weight: 500;
}

.location-status .loading-small {
    color: #007bff;
    font-weight: 500;
}

.location-status .warning {
    color: #ffc107;
    font-weight: 500;
}

.manual-input-group {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}
