﻿body {
    background-color: #f8f9fa;
}

.header-section {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: .5rem;
}

input[type="file"] {
    display: none;
}

.avatar-upload-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    cursor: pointer;
    display: block;
    transition: border-color .3s, transform .3s;
}

    .profile-avatar:hover {
        border-color: #101f48;
        transform: scale(1.04);
    }

.avatar-upload-overlay {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: #101f48;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    border: 2px solid #fff;
    transition: background .2s, transform .2s;
}

    .avatar-upload-overlay:hover {
        background: #005eff;
        transform: scale(1.1);
    }

.config-user-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    flex-wrap: wrap;
}

.config-user-info {
    flex: 1;
    min-width: 0;
}

.config-user-nome {
    font-size: 1.1rem;
    font-weight: 800;
    color: #101f48;
    line-height: 1.2;
}

.config-user-tipo {
    font-size: .78rem;
    color: #6c757d;
    margin-top: .15rem;
    margin-bottom: .5rem;
}

.config-user-hint {
    font-size: .73rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: .35rem;
}

    .config-user-hint i {
        font-size: .8rem;
    }

.config-clinica-foto-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    flex-wrap: wrap;
}

.profile-avatar-clinica {
    border-radius: 14px !important;
}

.cropper-view-box, .cropper-face {
    border-radius: 50%;
}

.cropperImagem {
    max-width: 450px;
    max-height: 400px;
}

.nav-tabs-config {
    border-bottom: 2px solid #e9ecef;
    display: flex;
    margin-bottom: 0;
}

    .nav-tabs-config .nav-link {
        color: #6c757d;
        border: none;
        padding: .7rem 1.4rem;
        font-weight: 500;
        font-size: .875rem;
        background: transparent;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        margin-bottom: -2px;
        transition: color .2s, border-color .2s;
    }

        .nav-tabs-config .nav-link:hover {
            color: #101f48;
        }

        .nav-tabs-config .nav-link.active {
            color: #101f48;
            border-bottom-color: #101f48;
            font-weight: 600;
        }


.security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.security-info strong {
    display: block;
    font-size: .9rem;
    color: #212529;
    margin-bottom: .1rem;
}

.security-info span {
    font-size: .8rem;
    color: #6c757d;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    width: 100%;
}

    .notif-item:last-child {
        margin-bottom: 0;
    }

    .notif-item:hover {
        background: #f8f9ff;
        border-color: #c7dcff;
    }

    .notif-item:has(input:checked) {
        background: #f0f6ff;
        border-color: #0d6efd;
    }

    .notif-item input[type="checkbox"] {
        display: block;
        accent-color: #101f48;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
    }

.notif-label {
    font-size: .875rem;
    color: #495057;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.notif-icon {
    color: #adb5bd;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-item:has(input:checked) .notif-icon {
    color: #0d6efd;
}
