/**
 * CSS Comum - Estilos compartilhados
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #8B5E3C 0%, #5C3A1E 100%) !important;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.srp-container,
#srp-app {
    background: transparent !important;
}

/* Loading */
.srp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utilidades */
.srp-mt-1 {
    margin-top: 0.5rem;
}

.srp-mt-2 {
    margin-top: 1rem;
}

.srp-mt-3 {
    margin-top: 1.5rem;
}

.srp-mb-1 {
    margin-bottom: 0.5rem;
}

.srp-mb-2 {
    margin-bottom: 1rem;
}

.srp-mb-3 {
    margin-bottom: 1.5rem;
}

.srp-text-center {
    text-align: center;
}

.srp-text-right {
    text-align: right;
}

.srp-text-left {
    text-align: left;
}

.srp-hidden {
    display: none !important;
}


/**
 * Forçar remoção da barra do WordPress
 */
body.logged-in {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* ==========================================
   AVATARES E FOTOS DE PERFIL
   ========================================== */

.srp-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    flex-shrink: 0;
}

.srp-avatar-small {
    width: 40px;
    height: 40px;
}

.srp-avatar-large {
    width: 120px;
    height: 120px;
    border: 3px solid #8B5E3C;
}

/* Container de foto no modal */
.srp-foto-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.srp-foto-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.srp-foto-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.srp-btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.srp-help-text {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
}

/* Ajustes para lista com avatares */
.srp-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.srp-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.srp-list-actions {
    display: flex;
    gap: 8px;
}

/* Status item com avatar */
.srp-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.srp-status-info {
    flex: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .srp-avatar-circle {
        width: 40px;
        height: 40px;
    }
    
    .srp-avatar-small {
        width: 35px;
        height: 35px;
    }
    
    .srp-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .srp-foto-container {
        flex-direction: column;
        text-align: center;
    }
    
    .srp-foto-actions {
        width: 100%;
    }
    
    .srp-list-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .srp-avatar-circle {
        width: 35px;
        height: 35px;
    }
    
    .srp-avatar-small {
        width: 30px;
        height: 30px;
    }
    
    .srp-avatar-large {
        width: 80px;
        height: 80px;
    }
}

