/* ===== PERFIL - ESTILOS ESPECÍFICOS ===== */

/* Variáveis CSS específicas do perfil */
:root {
    /* Cores do sistema - afetam todas as telas */
    --profile-primary-color: var(--primary-color);
    --profile-secondary-color: #ff8c42;
    --profile-gradient: linear-gradient(135deg, var(--profile-primary-color) 0%, var(--profile-secondary-color) 100%);
    --profile-shadow: 0 4px 20px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
    --profile-border-radius: 16px; /* Mais arredondado para design mais fino */
    --profile-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --profile-spacing: 1.5rem; /* Espaçamento mais refinado */
    --profile-card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --profile-hover-shadow: 0 8px 32px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.12);
}

/* ===== SEÇÕES DO PERFIL ===== */
.profile-section {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--profile-border-radius);
    margin-bottom: var(--profile-spacing);
    overflow: hidden;
    transition: var(--profile-transition);
    box-shadow: var(--profile-card-shadow);
    position: relative;
}

/* Primeira seção com mais espaço do topo */
.profile-section:first-child {
    margin-top: 2rem;
}

/* Ajuste para mobile */
@media (max-width: 767.98px) {
    .profile-section:first-child {
        margin-top: 1.5rem;
    }
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--profile-gradient);
    opacity: 0;
    transition: var(--profile-transition);
}

.profile-section:hover {
    box-shadow: var(--profile-hover-shadow);
    transform: translateY(-4px);
}

.profile-section:hover::before {
    opacity: 1;
}

/* Cabeçalho das seções */
.section-header {
    padding: 1.75rem 2rem;
    background: var(--profile-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.section-title i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.edit-section-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--profile-transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.edit-section-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ===== SEÇÃO DE FOTO DO PERFIL ===== */
.profile-photo-section {
    padding: var(--profile-spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--profile-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: var(--profile-shadow);
    transition: var(--profile-transition);
    overflow: hidden;
    position: relative;
}

.profile-photo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--profile-gradient);
    opacity: 0.3;
    z-index: -1;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--profile-transition);
}

.profile-photo-container:hover .profile-photo-overlay {
    opacity: 1;
}

.change-photo-btn {
    background: var(--profile-primary-color);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--profile-transition);
    box-shadow: 0 4px 12px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
}

.change-photo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.4);
}

.photo-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.photo-actions .btn {
    flex: 1;
    max-width: 100px;
    border-radius: 8px;
    font-weight: 500;
}

/* ===== FORMULÁRIOS ===== */
.basic-info-form,
.personal-data-form,
.business-data-form,
.social-media-form,
.preferences-form {
    padding: var(--profile-spacing);
}

.form-control {
    border: 2px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--profile-transition);
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

.form-control:focus {
    border-color: var(--profile-accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    transform: translateY(-1px);
}

.form-control:disabled {
    background-color: var(--theme-bg-secondary);
    opacity: 0.8;
    border-color: var(--theme-border-color);
}

.form-label {
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* Input groups para redes sociais */
.input-group-text {
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border-color);
    color: var(--theme-text-primary);
    border-right: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group-text i {
    font-size: 1.1rem;
}

.input-group-text .fab.fa-instagram {
    color: #E4405F;
}

.input-group-text .fab.fa-facebook {
    color: #1877F2;
}

.input-group-text .fab.fa-tiktok {
    color: #000000;
}

.input-group-text .fab.fa-youtube {
    color: #FF0000;
}

.input-group-text .fas.fa-globe {
    color: var(--profile-primary-color);
}

/* ===== PREFERÊNCIAS ===== */
.preference-item {
    background: var(--theme-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--profile-border-radius);
    border: 1px solid var(--theme-border-color);
}

.theme-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.theme-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--theme-border-color);
    border-radius: 8px;
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--profile-transition);
    font-weight: 500;
}

.theme-option:hover {
    border-color: var(--profile-primary-color);
    background: var(--theme-bg-secondary);
}

.theme-option.active {
    border-color: var(--profile-primary-color);
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
    color: var(--profile-primary-color);
}

.theme-option i {
    font-size: 1.5rem;
}

.color-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--theme-border-color);
    cursor: pointer;
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--theme-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 2px var(--profile-primary-color);
}

.color-option.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.color-option:active {
    transform: scale(0.95);
}

/* ===== SELETOR DE COR PERSONALIZADA ===== */
.custom-color-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--theme-border-color);
    position: relative;
}

.custom-color-option {
    background: linear-gradient(45deg, 
        #ff0000 0%, #ff8c00 14%, #ffd700 28%, 
        #32cd32 42%, #00bfff 57%, #8a2be2 71%, 
        #ff69b4 85%, #ff0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: rainbow-pulse 3s ease-in-out infinite;
}

.custom-color-option:hover {
    animation-play-state: paused;
}

.custom-color-option.active {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 3px var(--profile-primary-color);
    animation-play-state: paused;
}

.custom-color-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    transform: translateX(-10px) translateY(-50%) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 50%;
    left: 50px;
    background: linear-gradient(145deg, var(--theme-card-bg), rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.02));
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
    z-index: 9999;
    min-width: 170px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* Seta indicadora com gradiente */
.custom-color-controls::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--theme-card-bg);
    z-index: 10001;
    filter: drop-shadow(-1px 0 2px rgba(0, 0, 0, 0.1));
}

.custom-color-controls::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
    z-index: 10000;
}

.custom-color-controls.show {
    opacity: 1;
    transform: translateX(0) translateY(-50%) scale(1);
    pointer-events: auto;
}

.custom-color-picker {
    width: 100%;
    height: 30px;
    border: 2px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.custom-color-picker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.6), 
        rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2)
    );
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.custom-color-picker:hover {
    border-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.6);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
}

.custom-color-picker:hover::before {
    opacity: 1;
}

.custom-color-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
}

.custom-color-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.custom-color-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.custom-color-actions .btn:hover::before {
    left: 100%;
}

.custom-color-actions .btn i {
    font-size: 0.65rem;
}

.custom-color-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.custom-color-actions .btn:active {
    transform: translateY(0);
}

.custom-color-header {
    margin-bottom: 0.2rem;
}

.custom-color-header .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    text-align: center;
    justify-content: center;
}

.custom-color-header .form-label i {
    color: var(--profile-primary-color);
    font-size: 0.8rem;
    opacity: 0.9;
}

.custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 2px;
    border: none;
    border-radius: 8px;
}

.custom-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.2),
        0 1px 2px rgba(0,0,0,0.1);
}

.custom-color-picker:hover::-webkit-color-swatch {
    transform: scale(1.02);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.25),
        0 2px 8px rgba(0,0,0,0.15);
}

/* Animação do botão personalizado */
@keyframes rainbow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .custom-color-controls {
        left: -115px;
        min-width: 155px;
        padding: 0.7rem;
        z-index: 9999;
    }
    
    .custom-color-controls::before,
    .custom-color-controls::after {
        left: 115px;
        border-left: 8px solid var(--theme-card-bg);
        border-right: none;
        z-index: 10001;
    }
    
    .custom-color-controls::after {
        left: 114px;
        border-left: 9px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
        z-index: 10000;
    }
}

@media (max-width: 480px) {
    .custom-color-controls {
        left: -135px;
        top: 50px;
        min-width: 145px;
        padding: 0.6rem;
        transform: translateY(-10px) scale(0.95);
        z-index: 9999;
    }
    
    .custom-color-controls.show {
        transform: translateY(0) scale(1);
    }
    
    .custom-color-controls::before,
    .custom-color-controls::after {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 8px solid var(--theme-card-bg);
        z-index: 10001;
    }
    
    .custom-color-controls::after {
        top: -9px;
        border-bottom: 9px solid var(--theme-border-color);
        z-index: 10000;
    }
}

/* ===== ATIVIDADE DO SISTEMA ===== */
.activity-stats {
    padding: var(--profile-spacing);
}

.activity-card {
    background: var(--theme-bg-secondary);
    padding: 2rem;
    border-radius: var(--profile-border-radius);
    border: 1px solid var(--theme-border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--profile-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--profile-gradient);
    opacity: 0;
    transition: var(--profile-transition);
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    border-color: var(--profile-primary-color);
    box-shadow: var(--profile-hover-shadow);
    transform: translateY(-2px);
}

.activity-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--profile-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-info p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
}

/* ===== AÇÕES RÁPIDAS ===== */
.quick-actions {
    padding: 2rem;
}

.quick-action-btn {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--theme-border-color);
    border-radius: var(--profile-border-radius);
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--profile-transition);
    font-weight: 600;
    text-decoration: none;
}

.quick-action-btn:hover {
    border-color: var(--profile-primary-color);
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.05);
    color: var(--profile-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--profile-shadow);
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.9rem;
}

.quick-action-btn.save-btn:not(:disabled) {
    background: var(--profile-gradient);
    color: white;
    border-color: var(--profile-primary-color);
}

.quick-action-btn.save-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #e56832 0%, var(--primary-color) 100%);
    color: white;
}

.quick-action-btn.cancel-btn:not(:disabled) {
    background: linear-gradient(135deg, #dc3545 0%, #e85d75 100%);
    color: white;
    border-color: #dc3545;
}

.quick-action-btn.cancel-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: white;
}

/* ===== MODAL DE SENHA ===== */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--theme-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--profile-transition);
}

.password-toggle:hover {
    color: var(--profile-primary-color);
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
}

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--theme-border-color);
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--profile-gradient);
    border-radius: 2px;
    transition: var(--profile-transition);
    width: 0%;
}

.password-strength.weak::before { width: 25%; background: #dc3545; }
.password-strength.fair::before { width: 50%; background: #ffc107; }
.password-strength.good::before { width: 75%; background: #28a745; }
.password-strength.strong::before { width: 100%; background: var(--profile-gradient); }

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 991.98px) {
    .section-header {
        padding: 1.25rem 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .basic-info-form,
    .personal-data-form,
    .business-data-form,
    .social-media-form,
    .preferences-form,
    .activity-stats,
    .quick-actions {
        padding: 1.5rem;
    }

    .profile-photo-section {
        padding: 1.5rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
    }

    .activity-card {
        padding: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .profile-section {
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    .section-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .edit-section-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .basic-info-form,
    .personal-data-form,
    .business-data-form,
    .social-media-form,
    .preferences-form,
    .activity-stats,
    .quick-actions {
        padding: 1.25rem;
    }

    .profile-photo-section {
        padding: 1.25rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .photo-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .photo-actions .btn {
        max-width: none;
    }

    .theme-selector {
        flex-direction: column;
        gap: 0.75rem;
    }

    .activity-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .activity-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .quick-action-btn {
        padding: 1rem;
        gap: 0.5rem;
    }

    .quick-action-btn i {
        font-size: 1.25rem;
    }

    .quick-action-btn span {
        font-size: 0.85rem;
    }
}

/* Mobile pequeno */
@media (max-width: 575.98px) {
    .section-header {
        padding: 0.75rem 1rem;
    }
    
    .basic-info-form,
    .personal-data-form,
    .business-data-form,
    .social-media-form,
    .preferences-form,
    .activity-stats,
    .quick-actions {
        padding: 1rem;
    }
    
    .profile-photo-section {
        padding: 1rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .activity-card {
        padding: 1rem;
    }
    
    .quick-action-btn {
        padding: 0.875rem;
    }
    
    /* Barra flutuante responsiva */
    .floating-action-content {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .floating-action-text {
        font-size: 0.9rem;
    }
    
    .floating-action-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .floating-action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

/* ===== TEMA ESCURO - AJUSTES ESPECÍFICOS ===== */

/* Variáveis CSS dinâmicas para tema escuro */
.theme-dark {
    --theme-bg-primary: #1a1a1a;
    --theme-bg-secondary: #2d2d2d;
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #cccccc;
    --theme-border-color: #404040;
    --theme-card-bg: #252525;
}

.theme-dark .profile-section {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    background: var(--theme-card-bg);
    border-color: var(--theme-border-color);
}

.theme-dark .profile-section:hover {
    box-shadow: 0 4px 20px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
}

.theme-dark .edit-section-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.theme-dark .edit-section-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.theme-dark .activity-card,
.theme-dark .preference-item {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .activity-card:hover,
.theme-dark .preference-item:hover {
    box-shadow: 0 4px 16px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
}

.theme-dark .quick-action-btn {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .quick-action-btn:hover {
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
    box-shadow: 0 4px 20px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
    color: var(--profile-primary-color);
}

.theme-dark .form-control {
    background: var(--theme-card-bg);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .form-control:disabled {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
}

.theme-dark .form-control:focus {
    background: var(--theme-card-bg);
    border-color: var(--profile-primary-color);
    color: var(--theme-text-primary);
}

.theme-dark .form-label {
    color: var(--theme-text-primary);
}

.theme-dark .text-muted {
    color: var(--theme-text-secondary) !important;
}

.theme-dark .theme-option {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .theme-option:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--profile-primary-color);
}

.theme-dark .theme-option.active {
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
    border-color: var(--profile-primary-color);
    color: var(--profile-primary-color);
}

.theme-dark .activity-info h4 {
    color: var(--theme-text-secondary);
}

.theme-dark .activity-info p {
    color: var(--theme-text-primary);
}

.theme-dark .modal-content {
    background: var(--theme-card-bg);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .modal-header {
    border-bottom-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .modal-footer {
    border-top-color: var(--theme-border-color);
}

.theme-dark .password-toggle {
    color: var(--theme-text-secondary);
}

.theme-dark .password-toggle:hover {
    color: var(--profile-primary-color);
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
}

.theme-dark .btn-close {
    filter: invert(1);
}

.theme-dark .is-valid {
    border-color: #28a745;
}

.theme-dark .is-invalid {
    border-color: #dc3545;
}

/* Tema escuro - Barra flutuante */
.theme-dark .floating-action-bar {
    background: var(--theme-card-bg);
    border-top-color: var(--theme-border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.theme-dark .floating-action-text {
    color: var(--profile-primary-color);
}

.theme-dark .floating-action-btn.cancel-btn {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    border-color: var(--theme-border-color);
}

.theme-dark .floating-action-btn.cancel-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.theme-dark .edit-section-btn.editing-mode {
    background: rgba(220, 53, 69, 0.3) !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
}

.theme-dark .edit-section-btn.editing-mode:hover {
    background: rgba(220, 53, 69, 0.4) !important;
    border-color: rgba(220, 53, 69, 0.7) !important;
}

.theme-dark .profile-section.editing-mode {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
}

.theme-dark .form-control.editing {
    background: var(--theme-card-bg);
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 0.1rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
}

.theme-dark .form-control.editing:focus {
    background: var(--theme-card-bg);
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
}

.theme-dark .form-control.field-focused {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 0.15rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
    background: var(--theme-card-bg);
}

.theme-dark .input-group-text {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .input-group-text .fab.fa-tiktok {
    color: #ffffff;
}

/* ===== BARRA FLUTUANTE ===== */
.floating-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--theme-card-bg);
    border-top: 1px solid var(--theme-border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-action-bar.show {
    transform: translateY(0);
    pointer-events: all;
}

.floating-action-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.floating-action-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--profile-primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.floating-action-text i {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.floating-action-buttons {
    display: flex;
    gap: 12px;
}

.floating-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.floating-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.floating-action-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.floating-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-action-btn:active {
    transform: translateY(0);
}

.floating-action-btn.save-btn {
    background: var(--profile-gradient);
    color: white;
}

.floating-action-btn.save-btn:hover {
    background: linear-gradient(135deg, #e56832 0%, var(--primary-color) 100%);
}

.floating-action-btn.cancel-btn {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border-color);
}

.floating-action-btn.cancel-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.floating-action-btn i,
.floating-action-btn span {
    position: relative;
    z-index: 1;
}

/* Estados de edição */
.edit-section-btn.editing-mode {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #dc3545 !important;
}

.edit-section-btn.editing-mode:hover {
    background: rgba(220, 53, 69, 0.3) !important;
    border-color: rgba(220, 53, 69, 0.6) !important;
}

.profile-section.editing-mode {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
}

.form-control.editing {
    border-color: var(--profile-primary-color);
    background: var(--theme-bg-primary);
    box-shadow: 0 0 0 0.1rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
}

.form-control.editing:focus {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.25);
}

.form-control.field-focused {
    border-color: var(--profile-primary-color);
    box-shadow: 0 0 0 0.15rem rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.15);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* ===== ANIMAÇÕES E TRANSIÇÕES ===== */
@keyframes profileLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    animation: profileLoad 0.6s ease-out;
}

.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.2s; }
.profile-section:nth-child(3) { animation-delay: 0.3s; }
.profile-section:nth-child(4) { animation-delay: 0.4s; }
.profile-section:nth-child(5) { animation-delay: 0.5s; }

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    .profile-section,
    .profile-photo,
    .change-photo-btn,
    .form-control,
    .theme-option,
    .activity-card,
    .quick-action-btn,
    .password-toggle,
    .floating-action-bar,
    .floating-action-btn,
    .floating-action-text i,
    .form-control.field-focused {
        transition: none;
        animation: none;
    }
    
    .profile-section:hover,
    .activity-card:hover,
    .quick-action-btn:hover,
    .floating-action-btn:hover {
        transform: none;
    }
    
    .form-control.field-focused {
        transform: none;
    }
}

/* Estados de foco para acessibilidade */
.edit-section-btn:focus,
.change-photo-btn:focus,
.theme-option:focus,
.quick-action-btn:focus,
.password-toggle:focus,
.floating-action-btn:focus {
    outline: 2px solid var(--profile-primary-color);
    outline-offset: 2px;
}

/* ===== OTIMIZAÇÕES PARA IMPRESSÃO ===== */
@media print {
    .profile-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .section-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .edit-section-btn,
    .change-photo-btn,
    .photo-actions,
    .quick-actions,
    .floating-action-bar {
        display: none;
    }
}