/**
 * GeoIBRAM Components CSS - Movido para o tema
 * Componentes padronizados para o sistema GeoIBRAM
 */

/* Botão "Obter localização" – animação de rotação (igual ao plano de voo / operador drone) */
@keyframes geoibram-btn-location-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.geoibram-btn-location-spin {
	animation: geoibram-btn-location-spin 1s linear infinite;
	display: inline-block;
}

/* Radio group – 2 colunas em todas as instâncias (ex.: Não/Sim, associado entidade credenciada) */
.field-radio-group,
.field-radio-group-cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}
.field-radio-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 0.875rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field-radio-option:hover { border-color: #2196F3; background-color: #F3F8FF; }
.field-radio-option.field-radio-selected { border-color: #2196F3; background-color: #E3F2FD; }
.field-radio-input { accent-color: #2196F3; }
.field-radio-label { font-size: 0.875rem; color: #374151; }

/* ========================================
   COMPONENTES BASE
   ======================================== */

/* Card Component */
.geoibram-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

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

.geoibram-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.geoibram-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.geoibram-card-body {
    padding: 1.5rem;
}

.geoibram-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

/* Button Component */
.geoibram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    line-height: 1.5;
    min-height: 2.5rem;
}

.geoibram-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.5);
}

.geoibram-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.geoibram-button-primary {
    background-color: #F0B428;
    color: #ffffff;
    border-color: #F0B428;
}

.geoibram-button-primary:hover:not(:disabled) {
    background-color: #e5a623;
    border-color: #e5a623;
}

.geoibram-button-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

.geoibram-button-secondary:hover:not(:disabled) {
    background-color: #4b5563;
    border-color: #4b5563;
}

.geoibram-button-success {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.geoibram-button-success:hover:not(:disabled) {
    background-color: #059669;
    border-color: #059669;
}

.geoibram-button-danger {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.geoibram-button-danger:hover:not(:disabled) {
    background-color: #dc2626;
    border-color: #dc2626;
}

.geoibram-button-warning {
    background-color: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.geoibram-button-warning:hover:not(:disabled) {
    background-color: #d97706;
    border-color: #d97706;
}

.geoibram-button-outline {
    background-color: transparent;
    color: #F0B428;
    border-color: #F0B428;
}

.geoibram-button-outline:hover:not(:disabled) {
    background-color: #F0B428;
    color: #ffffff;
}

.geoibram-button-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2rem;
}

.geoibram-button-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 3rem;
}

/* Input Component */
.geoibram-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.geoibram-input:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

.geoibram-input:disabled {
    background-color: #f9fafb;
    opacity: 0.6;
}

.geoibram-input-error {
    border-color: #ef4444;
}

.geoibram-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Select Component */
.geoibram-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.geoibram-select:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

/* Textarea Component */
.geoibram-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    resize: vertical;
    min-height: 100px;
}

.geoibram-textarea:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

/* Dashboard Components */
.geoibram-dashboard {
    background: #f8fafc;
    min-height: 100vh;
}

.geoibram-dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.geoibram-dashboard-content {
    padding: 2rem 0;
}

.geoibram-dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    min-height: calc(100vh - 80px);
}

/* Stats Cards */
.geoibram-stats-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.geoibram-stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #F0B428;
    line-height: 1;
}

.geoibram-stats-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.geoibram-stats-icon {
    width: 3rem;
    height: 3rem;
    background: #F0B428;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Alert Component */
.geoibram-alert {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.geoibram-alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.geoibram-alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.geoibram-alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.geoibram-alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Badge Component */
.geoibram-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.geoibram-badge-primary {
    background-color: #F0B428;
    color: #ffffff;
}

.geoibram-badge-success {
    background-color: #10b981;
    color: #ffffff;
}

.geoibram-badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

.geoibram-badge-danger {
    background-color: #ef4444;
    color: #ffffff;
}

/* Modal Component */
.geoibram-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.geoibram-modal.show {
    opacity: 1;
    visibility: visible;
}

.geoibram-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.geoibram-modal.show .geoibram-modal-content {
    transform: scale(1);
}

.geoibram-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.geoibram-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.geoibram-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.geoibram-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.geoibram-modal-body {
    padding: 1.5rem;
}

.geoibram-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Utility Classes */
.geoibram-mt-1 { margin-top: 0.25rem; }
.geoibram-mt-2 { margin-top: 0.5rem; }
.geoibram-mt-3 { margin-top: 0.75rem; }
.geoibram-mt-4 { margin-top: 1rem; }
.geoibram-mt-5 { margin-top: 1.25rem; }
.geoibram-mt-6 { margin-top: 1.5rem; }

.geoibram-mb-1 { margin-bottom: 0.25rem; }
.geoibram-mb-2 { margin-bottom: 0.5rem; }
.geoibram-mb-3 { margin-bottom: 0.75rem; }
.geoibram-mb-4 { margin-bottom: 1rem; }
.geoibram-mb-5 { margin-bottom: 1.25rem; }
.geoibram-mb-6 { margin-bottom: 1.5rem; }

.geoibram-ml-1 { margin-left: 0.25rem; }
.geoibram-ml-2 { margin-left: 0.5rem; }
.geoibram-ml-3 { margin-left: 0.75rem; }
.geoibram-ml-4 { margin-left: 1rem; }

.geoibram-mr-1 { margin-right: 0.25rem; }
.geoibram-mr-2 { margin-right: 0.5rem; }
.geoibram-mr-3 { margin-right: 0.75rem; }
.geoibram-mr-4 { margin-right: 1rem; }

/* Display Classes */
.geoibram-hidden { display: none; }
.geoibram-block { display: block; }
.geoibram-inline-block { display: inline-block; }
.geoibram-flex { display: flex; }
.geoibram-inline-flex { display: inline-flex; }

/* Text Classes */
.geoibram-text-center { text-align: center; }
.geoibram-text-left { text-align: left; }
.geoibram-text-right { text-align: right; }

.geoibram-text-sm { font-size: 0.875rem; }
.geoibram-text-base { font-size: 1rem; }
.geoibram-text-lg { font-size: 1.125rem; }
.geoibram-text-xl { font-size: 1.25rem; }

.geoibram-font-normal { font-weight: 400; }
.geoibram-font-medium { font-weight: 500; }
.geoibram-font-semibold { font-weight: 600; }
.geoibram-font-bold { font-weight: 700; }

/* Color Classes */
.geoibram-text-primary { color: #F0B428; }
.geoibram-text-success { color: #10b981; }
.geoibram-text-warning { color: #f59e0b; }
.geoibram-text-danger { color: #ef4444; }
.geoibram-text-muted { color: #6b7280; }

/* Responsive Design */
@media (max-width: 768px) {
    .geoibram-card-body {
        padding: 1rem;
    }
    
    .geoibram-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .geoibram-button {
        width: 100%;
        justify-content: center;
    }
    
    .geoibram-modal-footer {
        flex-direction: column;
    }
    
    .geoibram-modal-footer .geoibram-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .geoibram-stats-number {
        font-size: 1.5rem;
    }
    
    .geoibram-stats-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ========================================
   FOTO DE PERFIL - Redesign completo (Linear/GitHub/Dribbble)
   Estado 1: zona tracejada + Escolher foto | Estado 2: círculo + overlay câmera + Remover + badge
   ======================================== */
:root {
    --avatar-radius: 12px;
    --avatar-circle-size: 140px;
    --avatar-primary: #2563eb;
    --avatar-primary-hover: #1d4ed8;
    --avatar-remove: #dc2626;
    --avatar-remove-hover: #b91c1c;
}

.geoibram-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
    position: relative;
}

.geoibram-avatar-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- Estado 1: sem foto (círculo + toggle + asterisco) ---------- */
.geoibram-avatar-state1 {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Círculo vazio: contorno fino preto, clicável (label) */
.geoibram-avatar-circle.geoibram-avatar-circle--empty,
#avatar-upload-zone.geoibram-avatar-circle--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--avatar-circle-size);
    height: var(--avatar-circle-size);
    min-width: var(--avatar-circle-size);
    min-height: var(--avatar-circle-size);
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    flex-shrink: 0;
}
#avatar-upload-zone.geoibram-avatar-circle--empty:hover {
    border-color: #334155;
    background: #f8fafc;
}
#avatar-upload-zone.geoibram-avatar-zone-dragover {
    border-color: var(--avatar-primary);
    background: #eff6ff;
}

/* Toggle horizontal dentro do círculo (barra + círculo vermelho à direita) */
.geoibram-avatar-toggle-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.geoibram-avatar-toggle-track {
    display: block;
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.geoibram-avatar-toggle-thumb {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.geoibram-avatar-optional-asterisk {
    color: #64748b;
    font-size: 14px;
    margin-left: 4px;
    line-height: 1;
}

/* Legado: zona tracejada (não usada no novo state1) */
.geoibram-avatar-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--avatar-radius);
    background: #f8fafc;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.geoibram-avatar-upload-zone:hover,
.geoibram-avatar-zone-dragover {
    border-color: var(--avatar-primary);
    background: #eff6ff;
}
.geoibram-avatar-upload-icon {
    color: #94a3b8;
    margin-bottom: 12px;
}
.geoibram-avatar-upload-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}
.geoibram-avatar-upload-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
}
.geoibram-avatar-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--avatar-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.geoibram-avatar-btn-primary:hover {
    background: var(--avatar-primary-hover);
}
.geoibram-avatar-btn-primary:active {
    transform: scale(0.98);
}
.geoibram-avatar-formats {
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 0 0;
}

.geoibram-avatar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}

/* ---------- Estado 2: com foto ---------- */
.geoibram-avatar-state2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.geoibram-avatar-circle-wrap {
    position: relative;
}

.geoibram-avatar-circle {
    position: relative;
    width: var(--avatar-circle-size);
    height: var(--avatar-circle-size);
    min-width: var(--avatar-circle-size);
    min-height: var(--avatar-circle-size);
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.geoibram-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.geoibram-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.geoibram-avatar-circle:hover .geoibram-avatar-overlay {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: none) {
    .geoibram-avatar-overlay {
        opacity: 1;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.4);
    }
}

.geoibram-avatar-overlay-change {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    color: #1e293b;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.geoibram-avatar-overlay-change:hover {
    background: #f8fafc;
    transform: scale(1.02);
}
.geoibram-avatar-overlay-change:active {
    transform: scale(0.98);
}

.geoibram-avatar-remove-btn {
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--avatar-remove);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.geoibram-avatar-remove-btn:hover {
    color: var(--avatar-remove-hover);
    text-decoration: underline;
}

.geoibram-avatar-badge-saved {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.geoibram-avatar-circle-wrap .geoibram-avatar-saving {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.geoibram-avatar-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--avatar-primary);
    border-radius: 50%;
    animation: geoibram-avatar-spin 0.8s linear infinite;
}
@keyframes geoibram-avatar-spin {
    to { transform: rotate(360deg); }
}

.geoibram-avatar-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
    color: #b91c1c;
    text-align: center;
    max-width: 320px;
}

.geoibram-avatar-desc {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    max-width: 280px;
}

/* ---------- Multistep: squircle + toggle + Alterar foto (design anexo) ---------- */
.geoibram-multistep-avatar.geoibram-avatar-block {
    align-items: center;
}
.geoibram-multistep-avatar-state1,
.geoibram-multistep-avatar-state2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.geoibram-multistep-avatar-squircle-wrap {
    position: relative;
}
.geoibram-multistep-avatar-squircle,
.geoibram-multistep-avatar-squircle--empty {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    overflow: hidden;
    background: #f3f4f6;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.geoibram-multistep-avatar-squircle--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.geoibram-multistep-avatar-squircle--empty:hover {
    background: #e5e7eb;
}
#avatar-upload-zone.geoibram-multistep-avatar-squircle--empty.geoibram-avatar-zone-dragover {
    background: #eff6ff;
    border-color: var(--avatar-primary);
}
.geoibram-multistep-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.geoibram-multistep-avatar-squircle {
    position: relative;
}
.geoibram-multistep-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}
.geoibram-multistep-avatar-squircle:hover .geoibram-multistep-avatar-overlay {
    opacity: 1;
}
@media (hover: none) {
    .geoibram-multistep-avatar-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.35);
    }
}
.geoibram-multistep-avatar-saving {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
.geoibram-multistep-alterar-foto {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.geoibram-multistep-alterar-foto:hover {
    color: var(--avatar-primary, #2563eb);
}
.geoibram-multistep-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}
.geoibram-multistep-alterar-foto-btn {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.geoibram-multistep-alterar-foto-btn:hover {
    color: var(--avatar-primary, #2563eb);
}
.geoibram-multistep-avatar-state2 .geoibram-avatar-remove-btn {
    margin-top: 0;
}

/* ---------- Modal confirmação remover ---------- */
.geoibram-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.geoibram-avatar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.geoibram-avatar-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 380px;
    width: 100%;
}

.geoibram-avatar-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.geoibram-avatar-modal-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.geoibram-avatar-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.geoibram-avatar-modal-cancel {
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.geoibram-avatar-modal-cancel:hover {
    background: #e2e8f0;
}

.geoibram-avatar-modal-confirm-remove {
    padding: 8px 16px;
    background: var(--avatar-remove);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.geoibram-avatar-modal-confirm-remove:hover {
    background: var(--avatar-remove-hover);
}

@media (max-width: 480px) {
    :root {
        --avatar-circle-size: 120px;
    }
    .geoibram-avatar-upload-zone {
        padding: 20px 16px;
    }
    .geoibram-avatar-upload-title {
        font-size: 14px;
    }
    .geoibram-avatar-btn-primary {
        padding: 12px 24px;
        min-height: 44px;
    }
}
