@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

.img-thumbnail {
    width: 152px;
    height: 132px;
    padding: 0
}
.wide-column {
    width: 200px;
}

.img-thumbnail-lg {
    width: 220px;
    height: 220px;
    padding: 0
}
.img-thumbnail-sm {
    width: 32px;
    height: 32px;
    padding: 0
}

.img-ico {
    width: 24px;
    height: 24px;
    padding: 0
}



body,html {
    font-family: 'Inter', sans-serif;
    background-color: #f5f6ff;
    color: #1a1033;
}


a, .btn-link {
    color: #5e4bff;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6956ff 0%, #7f41ff 50%, #b934ff 100%);
    border: none;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    padding: 0.65rem 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.45), 0 0 0 0.35rem rgba(111, 66, 255, 0.35);
}

.content {
    padding-top: 0;
    font-family: 'Inter', sans-serif;
}

h1:focus {
    outline: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #160c2b;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #c92545;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(108, 64, 255, 0.25);
}

.btn.is-busy {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-busy::after {
    content: attr(data-loading-text);
    color: inherit;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn.is-busy::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 0.1);
    animation: btn-spinner 0.85s linear infinite;
    position: absolute;
    top: 50%;
    left: calc(50% - 2.2rem);
    transform: translate(-50%, -50%);
}

@keyframes btn-spinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-danger {
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.45rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5a7a 0%, #ff3e4d 40%, #d91e53 100%);
    color: #fff;
    box-shadow: 0 18px 28px rgba(217, 30, 83, 0.25);
}

.btn-outline-secondary, .btn-secondary {
    border-radius: 12px;
    padding: 0.6rem 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(90, 76, 165, 0.35);
    background: rgba(110, 88, 200, 0.12);
    color: #4b3b90;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 40px rgba(17, 11, 50, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, rgba(115, 102, 255, 0.14) 0%, rgba(102, 69, 255, 0.1) 100%);
    color: #2d1f55;
    border: none;
    padding: 0.95rem;
    font-weight: 600;
}

.table tbody tr {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(24, 16, 61, 0.12);
}

.table tbody td {
    border: none;
    padding: 0.9rem;
    vertical-align: middle;
}

.badge.rounded-pill {
    background: linear-gradient(135deg, rgba(111, 66, 255, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
    color: #5036a9;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.page-size-chooser {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(95, 76, 175, 0.15);
}

.page-size-chooser select {
    border-radius: 10px;
    border: 1px solid rgba(100, 86, 160, 0.3);
    padding: 0.45rem 0.85rem;
    background: rgba(249, 249, 255, 0.95);
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid rgba(84, 70, 150, 0.25);
    padding: 0.7rem 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(106, 86, 255, 0.75);
}

.form-label {
    font-weight: 600;
    color: #2c2059;
}

.card-surface {
    border-radius: 18px;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 10, 45, 0.14);
    border: 1px solid rgba(72, 58, 144, 0.12);
}

dl {
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(13, 9, 40, 0.12);
    overflow: hidden;
}

dl .row {
    margin: 0;
}

dt {
    font-weight: 600;
    color: #402a80;
    padding: 0.85rem 1rem;
}

dd {
    padding: 0.85rem 1rem;
    background: rgba(248, 248, 255, 0.85);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(71, 56, 122, 0.08);
}

dd:last-child {
    border-bottom: none;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.status-chip--success {
    background: rgba(46, 204, 113, 0.18);
    color: #1d8f52;
}

.status-chip--error {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.status-chip--info {
    background: rgba(52, 152, 219, 0.2);
    color: #1e6aa3;
}

.list-shell {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.list-shell__header .input-group-text {
    background: transparent;
    border: none;
    color: rgba(75, 59, 144, 0.6);
}

.list-shell__header .input-group {
    border: 1px solid rgba(84, 70, 150, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding-left: 0.2rem;
}

.list-shell__header .form-select,
.list-shell__header .form-control {
    font-size: 0.9rem;
}

.list-shell__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-shell__empty {
    padding: 2.5rem 1rem;
    text-align: center;
    font-weight: 500;
}

.table-modern thead th {
    border-bottom: 1px solid rgba(84, 70, 150, 0.08);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(52, 38, 95, 0.65);
}

.table-modern__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #40316e;
    font-weight: 600;
}

.table-modern__sort i {
    font-size: 0.75rem;
    color: rgba(64, 49, 110, 0.55);
}

.table-modern__primary {
    font-weight: 600;
    color: #26194d;
}

.table-modern__secondary {
    font-size: 0.78rem;
    color: rgba(38, 25, 77, 0.55);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-soft-info {
    background: rgba(52, 152, 219, 0.15);
    color: #1e6aa3;
}

.badge-soft-primary {
    background: rgba(111, 86, 255, 0.15);
    color: #3f2e88;
}

.badge-soft-secondary {
    background: rgba(255, 111, 206, 0.15);
    color: #a12e86;
}

.badge-soft-neutral {
    background: rgba(52, 73, 94, 0.12);
    color: #34495e;
}

.badge-soft-success {
    background: rgba(46, 204, 113, 0.18);
    color: #1d8f52;
}

.badge-soft-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.bg-primary-subtle {
    background-color: rgba(105, 86, 255, 0.15) !important;
}

.text-primary-emphasis {
    color: #3f2e88 !important;
}

.pessoa-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-card {
    border-radius: 22px;
    border: 1px solid rgba(111, 86, 255, 0.12) !important;
}

.page-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #22143f;
    margin-bottom: 1.25rem;
}


.profile-card__photo {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(84, 70, 150, 0.2);
    box-shadow: 0 14px 30px rgba(23, 16, 59, 0.16);
    margin: 0 auto;
}

.profile-card__photo img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    display: block;
}

.profile-card__name {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1d1038;
}

.profile-card__meta {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    font-size: 0.92rem;
    color: rgba(34, 20, 63, 0.7);
    font-weight: 500;
}

.profile-card__meta i {
    color: rgba(111, 86, 255, 0.85);
    margin-right: 0.5rem;
}

.profile-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #23123f;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(34, 20, 63, 0.66);
    margin-bottom: 0.85rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.35rem;
}

.info-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    color: rgba(59, 41, 102, 0.55);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.info-value {
    font-size: 1rem;
    color: #211537;
    font-weight: 500;
    word-break: break-word;
}

.pessoa-articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pessoa-articles li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(246, 244, 255, 0.7);
}

.pessoa-articles i {
    margin-top: 0.15rem;
    color: rgba(111, 86, 255, 0.8);
}

.pessoa-articles__title {
    font-weight: 600;
    color: #2a1b4d;
}

.pessoa-articles__date {
    display: block;
    font-size: 0.75rem;
    color: rgba(34, 20, 63, 0.6);
}

.pagination-modern .page-item .page-link {
    border-radius: 12px;
    border: 1px solid rgba(102, 86, 170, 0.2);
    color: #4b3b90;
    min-width: 2rem;
    text-align: center;
    transition: all 0.18s ease;
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(111, 86, 255, 0.35), rgba(143, 71, 255, 0.5));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(79, 57, 162, 0.25);
}

.pagination-modern .page-item .page-link:hover:not(:disabled) {
    background: rgba(111, 86, 255, 0.12);
    color: #34265f;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .profile-card__name {
        font-size: 1.6rem;
    }

    .profile-card-photo {
        width:140px;
        height: 140px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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

.page-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.profile-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.profile-card-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.profile-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-card__name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.profile-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-card__meta div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.profile-card__meta i {
    width: 20px;
    color: #667eea;
    font-size: 1rem;
}

.badge-soft {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-soft-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-soft-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-soft-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.badge-soft-neutral {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #2c3e50;
    text-shadow: none;
}

.badge-soft-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.badge-soft-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.profile-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.section-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.info-grid > div:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.pessoa-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pessoa-articles li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pessoa-articles li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pessoa-articles i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 2px;
}

.pessoa-articles__title {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.pessoa-articles__date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    filter: brightness(1.1);
}

.pessoa-details {
    animation: fadeInUp 0.6s ease-out;
}

.card-body {
    padding: 2rem;
}

/* ================= Pessoa Details (foto de perfil & modal) ================= */
.profile-card-photo { position: relative; display: inline-block; }
.profile-card-photo img { display: block; border-radius: 50%; }
.profile-card-photo .edit-photo-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background .2s ease; border-radius: 50%; }
.profile-card-photo:hover .edit-photo-overlay { background: rgba(0,0,0,.45); }
.profile-card-photo .edit-photo-btn { opacity: 0; transform: scale(.9); transition: opacity .2s ease, transform .2s ease; }
.profile-card-photo:hover .edit-photo-btn { opacity: 1; transform: scale(1); }

/* Modal custom centralizada reutilizável */
.custom-modal-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(15,15,25,0.55); z-index: 1050; overflow-y: auto; backdrop-filter: blur(2px); }
.custom-modal-dialog { width: 100%; max-width: 520px; }
.custom-modal-dialog .modal-content { background: #ffffff; border-radius: 14px; border: 1px solid rgba(60,40,120,0.12); box-shadow: 0 20px 50px -8px rgba(20,12,60,0.35), 0 4px 14px -2px rgba(20,12,60,0.18); animation: modalIn .22s ease; }
.custom-modal-dialog .modal-header { border-bottom: 1px solid rgba(40,25,80,0.08); }
.custom-modal-dialog .modal-footer { border-top: 1px solid rgba(40,25,80,0.08); }
.custom-modal-dialog .btn-close { box-shadow: none; }
.custom-modal-dialog .btn-close:focus { outline: none; }
@keyframes modalIn { from { opacity:0; transform: translateY(10px) scale(.98);} to { opacity:1; transform: translateY(0) scale(1);} }

/* Ajuste para bloquear rolagem quando modal aberta (opcional se quiser aplicar classe no body) */
body.modal-open { overflow: hidden; }

/* Ajuste de prioridade da modal para evitar conflitos de stacking context */
.custom-modal-overlay { z-index: 5000; }
.custom-modal-dialog .modal-content { position: relative; }

/* Fallback / reforço para modais exibidas manualmente (quando Bootstrap JS/CSS parcial ou ausente) */
.modal.d-block { position: fixed; inset:0; width:100%; height:100%; display:flex !important; align-items:center; justify-content:center; padding:1.25rem; overflow-y:auto; z-index:6000; }
.modal.d-block .modal-dialog { margin:0; max-width:520px; width:100%; }
.modal.d-block .modal-content { animation: modalIn .22s ease; border-radius:14px; }

/* Foto de perfil com overlay de edição (isolado para evitar conflito com .profile-card-photo genérica) */
.person-photo-editor { position:relative; width:120px; height:120px; border-radius:50%; overflow:hidden; display:inline-block; }
.person-photo-editor img { width:100%; height:100%; object-fit:cover; display:block; }
.person-photo-editor .edit-photo-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0); transition:background .2s ease; border-radius:50%; z-index:2; }
.person-photo-editor .edit-photo-btn { opacity:0; transform:scale(.9); transition:opacity .18s ease, transform .18s ease; z-index:3; }
.person-photo-editor:hover .edit-photo-overlay { background:rgba(0,0,0,.45); }
.person-photo-editor:hover .edit-photo-btn { opacity:1; transform:scale(1); }
