:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --surface: #10213a;
    --surface-dark: #0b192c;
    --surface-light: #162c4a;

    --border: rgba(151, 184, 226, 0.14);
    --border-strong: rgba(151, 184, 226, 0.25);

    --text: #f7faff;
    --muted: #91a3ba;
    --muted-dark: #657a95;

    --primary: #2f7cff;
    --primary-dark: #1760df;
    --primary-soft: rgba(47, 124, 255, 0.12);

    --green: #29d497;
    --purple: #8f70ff;
    --gold: #f2b84b;
    --danger: #ff7180;

    --shadow:
        0 24px 80px rgba(0, 0, 0, 0.28);

    --shadow-soft:
        0 12px 40px rgba(0, 0, 0, 0.18);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        radial-gradient(
            circle at 80% -10%,
            rgba(47, 124, 255, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 5% 105%,
            rgba(40, 195, 255, 0.08),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button {
    border: none;
}

input,
select {
    color: var(--text);
}

input::placeholder {
    color: #61758f;
}

button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.app-shell {
    min-height: 100vh;
}

/* ======================================================
   SIDEBAR
====================================================== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;

    display: flex;
    width: 270px;
    flex-direction: column;

    border-right: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(11, 25, 43, 0.99),
            rgba(7, 17, 31, 0.99)
        );

    padding: 24px 18px;

    transition:
        transform 0.25s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 27px;
}

.brand-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;

    border:
        1px solid
        rgba(87, 153, 255, 0.48);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #286fdc,
            #10376f
        );

    box-shadow:
        0 10px 28px
        rgba(47, 124, 255, 0.31);

    color: white;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 14px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-text strong {
    font-family:
        "Manrope",
        sans-serif;

    font-size: 16px;
}

.brand-text span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    position: relative;

    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;

    border-radius: 12px;

    background: transparent;

    padding: 13px 14px;

    color: #8fa4bd;

    cursor: pointer;

    font-weight: 600;
    text-align: left;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    background:
        rgba(54, 102, 166, 0.12);

    color: white;

    transform: translateX(2px);
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(47, 124, 255, 0.23),
            rgba(47, 124, 255, 0.04)
        );

    color: #8fc4ff;
}

.nav-item.active::before {
    position: absolute;
    left: -18px;

    width: 3px;
    height: 24px;

    border-radius:
        0 4px 4px 0;

    background: var(--primary);

    content: "";
}

.nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;

    font-size: 21px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-card {
    display: flex;
    align-items: center;
    gap: 10px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.025);

    padding: 13px;
}

.system-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px
        rgba(41, 212, 151, 0.09);
}

.system-card div {
    display: flex;
    flex-direction: column;
}

.system-card strong {
    font-size: 10px;
}

.system-card small {
    margin-top: 3px;

    color: var(--muted-dark);

    font-size: 9px;
}

.help-button {
    display: flex;
    align-items: center;
    gap: 10px;

    background: transparent;

    padding: 10px 13px;

    color: var(--muted);

    cursor: pointer;

    text-align: left;
}

.help-button span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;

    border:
        1px solid
        var(--border-strong);

    border-radius: 50%;
}

/* ======================================================
   CONTEÚDO PRINCIPAL
====================================================== */

.main-content {
    min-height: 100vh;
    margin-left: 270px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;

    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid
        var(--border);

    background:
        rgba(7, 17, 31, 0.84);

    padding: 14px 34px;

    backdrop-filter: blur(20px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-title div > span {
    display: block;

    margin-bottom: 4px;

    color: #607894;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.topbar-title h1 {
    margin: 0;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 22px;
}

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background: var(--surface);

    color: white;

    cursor: pointer;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-search {
    display: flex;
    width: min(340px, 31vw);
    align-items: center;
    gap: 9px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        rgba(14, 31, 53, 0.66);

    padding: 0 13px;
}

.top-search > span {
    color: #6983a5;
    font-size: 22px;
}

.top-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    padding: 11px 0;

    font-size: 12px;
}

.notification-button {
    position: relative;

    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background:
        rgba(14, 31, 53, 0.7);

    color: #aac0d9;

    cursor: pointer;
}

.notification-button i {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--danger);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    border-left:
        1px solid
        var(--border);

    padding-left: 15px;
}

.admin-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;

    border:
        1px solid
        rgba(90, 155, 255, 0.3);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #1e559e,
            #102d54
        );

    font-size: 11px;
    font-weight: 800;
}

.admin-info {
    display: flex;
    flex-direction: column;
}

.admin-info strong {
    font-size: 11px;
}

.admin-info span {
    margin-top: 3px;

    color: var(--muted-dark);

    font-size: 9px;
}

.profile-arrow {
    color: var(--muted-dark);
}

.page-content {
    width: min(1500px, 100%);
    margin: 0 auto;

    padding: 30px 34px 20px;
}

/* ======================================================
   HERO
====================================================== */

.hero-section {
    position: relative;

    display: grid;
    overflow: hidden;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(350px, 0.75fr);

    gap: 32px;

    min-height: 295px;

    border:
        1px solid
        rgba(98, 150, 223, 0.18);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            105deg,
            rgba(10, 29, 52, 0.97),
            rgba(11, 33, 61, 0.9)
        );

    box-shadow: var(--shadow);

    padding: 36px 38px;
}

.hero-section::before {
    position: absolute;
    top: -130px;
    left: 35%;

    width: 370px;
    height: 370px;

    border-radius: 50%;

    background:
        rgba(47, 124, 255, 0.12);

    filter: blur(25px);

    content: "";
}

.hero-section::after {
    position: absolute;
    right: -130px;
    bottom: -210px;

    width: 450px;
    height: 450px;

    border:
        1px solid
        rgba(62, 139, 255, 0.12);

    border-radius: 50%;

    content: "";
}

.hero-content {
    position: relative;
    z-index: 2;

    align-self: center;
}

.section-label {
    color: #67a9ff;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero-content h2 {
    max-width: 720px;

    margin:
        14px 0 14px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(30px, 3.2vw, 48px);

    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-content > p {
    max-width: 650px;

    margin: 0;

    color: #9eb1c8;

    font-size: 14px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 28px;
}

/* ======================================================
   BOTÕES
====================================================== */

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 11px;

    padding: 11px 17px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 12px 24px
        rgba(47, 124, 255, 0.26);

    color: white;
}

.btn-primary:hover {
    box-shadow:
        0 15px 30px
        rgba(47, 124, 255, 0.35);
}

.btn-secondary {
    border:
        1px solid
        var(--border-strong);

    background:
        rgba(255, 255, 255, 0.035);

    color: #b9c9dc;
}

.btn-small {
    min-height: 40px;

    border:
        1px solid
        rgba(91, 150, 234, 0.19);

    background:
        rgba(47, 124, 255, 0.08);

    color: #89baff;
}

/* ======================================================
   DR. CONDOMÍNIO
====================================================== */

.doctor-card {
    position: relative;
    z-index: 2;

    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 18px;

    align-self: stretch;

    border:
        1px solid
        rgba(91, 150, 234, 0.16);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(26, 56, 94, 0.72),
            rgba(8, 24, 44, 0.72)
        );

    padding: 22px;
}

.doctor-visual {
    position: relative;

    width: 134px;
    min-width: 134px;
    height: 190px;

    align-self: flex-end;
}

.doctor-head {
    position: absolute;
    top: 26px;
    left: 30px;
    z-index: 3;

    width: 76px;
    height: 91px;

    border-radius:
        46% 46% 42% 42%;

    background:
        linear-gradient(
            145deg,
            #f2c7a5,
            #dca77f
        );

    box-shadow:
        inset -8px -8px 20px
        rgba(111, 52, 25, 0.12);
}

.doctor-hair {
    position: absolute;
    top: 12px;
    left: 23px;
    z-index: 4;

    width: 91px;
    height: 55px;

    border-radius:
        53% 50% 20% 20%;

    background:
        radial-gradient(
            circle at 15% 50%,
            #eff3fa 0 14%,
            transparent 15%
        ),
        radial-gradient(
            circle at 38% 26%,
            #dce5f3 0 19%,
            transparent 20%
        ),
        radial-gradient(
            circle at 61% 22%,
            #f5f7fb 0 20%,
            transparent 21%
        ),
        radial-gradient(
            circle at 82% 46%,
            #cdd9e9 0 18%,
            transparent 19%
        );
}

.doctor-eye {
    position: absolute;
    top: 40px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #14283e;
}

.doctor-eye-left {
    left: 23px;
}

.doctor-eye-right {
    right: 23px;
}

.doctor-smile {
    position: absolute;
    bottom: 20px;
    left: 28px;

    width: 23px;
    height: 10px;

    border-bottom:
        2px solid
        #954d3a;

    border-radius:
        0 0 50% 50%;
}

.doctor-glasses {
    position: absolute;
    top: 31px;
    left: 12px;

    width: 53px;
    height: 23px;

    border-top:
        2px solid
        #10233c;
}

.doctor-glasses::before,
.doctor-glasses::after {
    position: absolute;
    top: 0;

    width: 21px;
    height: 18px;

    border:
        2px solid
        #10233c;

    border-radius: 7px;

    content: "";
}

.doctor-glasses::before {
    left: 0;
}

.doctor-glasses::after {
    right: 0;
}

.doctor-body {
    position: absolute;
    bottom: -2px;
    left: 8px;

    width: 120px;
    height: 91px;

    border-radius:
        31px 31px 7px 7px;

    background:
        linear-gradient(
            145deg,
            #f7fbff,
            #cbd8e8
        );

    box-shadow:
        inset -12px -8px 24px
        rgba(61, 91, 122, 0.2);
}

.doctor-shirt {
    position: absolute;
    top: 0;
    left: 45px;

    width: 31px;
    height: 72px;

    background: #1f64a8;

    clip-path:
        polygon(
            0 0,
            100% 0,
            77% 100%,
            23% 100%
        );
}

.doctor-tie {
    position: absolute;
    top: 16px;
    left: 56px;

    width: 9px;
    height: 46px;

    background: #173758;

    clip-path:
        polygon(
            50% 0,
            100% 18%,
            67% 100%,
            33% 100%,
            0 18%
        );
}

.doctor-pocket {
    position: absolute;
    right: 14px;
    bottom: 21px;

    display: grid;
    width: 29px;
    height: 25px;
    place-items: center;

    border:
        1px solid
        #89a0b9;

    border-radius: 4px;

    color: #25486c;

    font-size: 7px;
    font-weight: 800;
}

.doctor-message {
    position: relative;
    z-index: 2;
}

.online-badge,
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    border:
        1px solid
        rgba(41, 212, 151, 0.19);

    border-radius: 999px;

    background:
        rgba(41, 212, 151, 0.08);

    padding: 6px 9px;

    color: #55e5ac;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.online-badge i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);
}

.doctor-message h3 {
    margin:
        14px 0 7px;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 18px;
}

.doctor-message p {
    margin: 0;

    color: #9eb1c8;

    font-size: 11px;
    line-height: 1.6;
}

/* ======================================================
   MÉTRICAS
====================================================== */

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-top: 18px;
}

.metric-card {
    display: flex;
    min-height: 122px;
    align-items: center;
    gap: 15px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(18, 38, 65, 0.9),
            rgba(11, 25, 43, 0.92)
        );

    box-shadow: var(--shadow-soft);

    padding: 20px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(113, 164, 235, 0.27);
}

.metric-icon {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    place-items: center;

    border-radius: 14px;

    font-size: 22px;
}

.metric-blue {
    background:
        rgba(47, 124, 255, 0.13);

    color: #67a9ff;
}

.metric-purple {
    background:
        rgba(143, 112, 255, 0.13);

    color: #ad98ff;
}

.metric-green {
    background:
        rgba(41, 212, 151, 0.12);

    color: #51dfad;
}

.metric-gold {
    background:
        rgba(242, 184, 75, 0.12);

    color: #f5c461;
}

.metric-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.metric-info > span {
    color: #8295ad;

    font-size: 10px;
    font-weight: 700;
}

.metric-info strong {
    margin:
        5px 0 6px;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 25px;
}

.metric-info small {
    color: #647892;

    font-size: 8px;
}

.status-online {
    color: #59dcae;
}

/* ======================================================
   PAINÉIS
====================================================== */

.workspace-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.75fr)
        minmax(310px, 0.75fr);

    gap: 18px;

    margin-top: 18px;
}

.panel {
    border:
        1px solid
        var(--border);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(17, 36, 61, 0.93),
            rgba(10, 23, 40, 0.96)
        );

    box-shadow: var(--shadow-soft);

    padding: 24px;
}

.panel-header,
.clients-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-header h3,
.clients-header h3 {
    margin:
        7px 0 6px;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 20px;
}

.panel-header p,
.clients-header p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.55;
}

.secure-badge {
    border-color:
        rgba(47, 124, 255, 0.16);

    background:
        rgba(47, 124, 255, 0.08);

    color: #76adff;

    white-space: nowrap;
}

/* ======================================================
   FORMULÁRIOS E UPLOAD
====================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        0.78fr 1.22fr;

    gap: 14px;

    margin-top: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field > span {
    color: #9cadc0;

    font-size: 9px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.slug-input {
    width: 100%;
    min-height: 45px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    outline: none;

    background:
        rgba(5, 16, 30, 0.56);

    padding:
        0 13px;

    color: white;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.slug-input:focus-within {
    border-color:
        rgba(62, 139, 255, 0.62);

    box-shadow:
        0 0 0 3px
        rgba(47, 124, 255, 0.1);
}

.form-field select {
    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #6f85a1 50%
        ),
        linear-gradient(
            135deg,
            #6f85a1 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 16px)
        calc(50% - 2px),
        calc(100% - 11px)
        calc(50% - 2px);

    background-repeat: no-repeat;

    background-size:
        5px 5px,
        5px 5px;
}

.form-field select option {
    background: #0d1d32;
    color: white;
}

.upload-dropzone {
    position: relative;

    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    border:
        1px dashed
        rgba(92, 156, 244, 0.45);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(47, 124, 255, 0.045),
            rgba(47, 124, 255, 0.015)
        );

    margin-top: 15px;

    padding: 25px;

    cursor: pointer;

    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragging {
    border-color: #4e91ef;

    background:
        rgba(47, 124, 255, 0.08);
}

.upload-dropzone input {
    position: absolute;

    overflow: hidden;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.upload-icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;

    border:
        1px solid
        rgba(75, 145, 242, 0.34);

    border-radius: 17px;

    background:
        rgba(47, 124, 255, 0.1);

    color: #62a1f8;

    font-size: 28px;
}

.upload-dropzone strong {
    margin-top: 13px;

    font-size: 12px;
}

.upload-dropzone p {
    margin:
        6px 0 8px;

    color: #7186a0;

    font-size: 10px;
}

.upload-dropzone small {
    color: #50657f;

    font-size: 8px;
}

.selected-file {
    display: none;

    max-width: 100%;

    margin-top: 14px;

    border:
        1px solid
        rgba(41, 212, 151, 0.16);

    border-radius: 9px;

    background:
        rgba(41, 212, 151, 0.06);

    padding: 8px 11px;

    color: #6ce5b5;

    font-size: 9px;

    word-break: break-all;
}

.selected-file.visible {
    display: block;
}

.upload-actions {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-top: 15px;
}

.mensagem {
    min-height: 18px;

    color: #90a4bd;

    font-size: 10px;
    line-height: 1.5;
}

.mensagem.sucesso {
    color: #62e0ae;
}

.mensagem.erro {
    color: #ff8c99;
}

/* ======================================================
   AÇÕES RÁPIDAS
====================================================== */

.quick-panel {
    display: flex;
    flex-direction: column;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 17px;
}

.quick-action {
    display: grid;

    grid-template-columns:
        42px 1fr 20px;

    align-items: center;
    gap: 12px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(5, 16, 30, 0.38);

    padding: 12px;

    color: white;

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quick-action:hover {
    transform: translateX(2px);

    border-color:
        rgba(76, 143, 236, 0.35);

    background:
        rgba(47, 124, 255, 0.06);
}

.quick-action-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(47, 124, 255, 0.09);

    color: #73adff;

    font-size: 20px;
}

.quick-action > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.quick-action strong {
    font-size: 10px;
}

.quick-action small {
    margin-top: 4px;

    color: #647892;

    font-size: 8px;
}

.quick-action b {
    color: #6481a5;
    font-size: 20px;
}

.doctor-tip {
    display: flex;
    gap: 12px;

    border:
        1px solid
        rgba(242, 184, 75, 0.12);

    border-radius: 14px;

    background:
        rgba(242, 184, 75, 0.045);

    margin-top: auto;

    padding: 15px;
}

.doctor-tip > span {
    color: #efbd5d;
}

.doctor-tip strong {
    display: block;

    color: #dfc586;

    font-size: 9px;
}

.doctor-tip p {
    margin:
        6px 0 0;

    color: #817964;

    font-size: 8px;
    line-height: 1.55;
}

/* ======================================================
   CLIENTES
====================================================== */

.clients-section {
    margin-top: 20px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(15, 32, 54, 0.93),
            rgba(9, 21, 37, 0.96)
        );

    box-shadow: var(--shadow-soft);

    padding: 25px;
}

.client-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-search {
    display: flex;
    width: 240px;
    align-items: center;
    gap: 8px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background:
        rgba(5, 16, 30, 0.46);

    padding:
        0 11px;
}

.client-search > span {
    color: #65809f;
}

.client-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    padding:
        10px 0;

    font-size: 10px;
}

.clients-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-top: 20px;
}

.client-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 45, 75, 0.78),
            rgba(9, 23, 41, 0.92)
        );

    padding: 18px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.client-card::before {
    position: absolute;
    top: -80px;
    right: -80px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        rgba(47, 124, 255, 0.07);

    content: "";
}

.client-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(102, 163, 245, 0.28);
}

.client-card-header {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;
}

.client-logo {
    display: grid;
    width: 45px;
    min-width: 45px;
    height: 45px;
    place-items: center;

    border:
        1px solid
        rgba(94, 157, 243, 0.22);

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #1c4d88,
            #102c50
        );

    color: #96c4ff;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 11px;
    font-weight: 800;
}

.client-title {
    min-width: 0;
}

.client-title h4 {
    overflow: hidden;

    margin: 0;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-title span {
    display: block;

    margin-top: 4px;

    color: #617690;

    font-size: 8px;
}

.client-status {
    margin-left: auto;

    border:
        1px solid
        rgba(41, 212, 151, 0.15);

    border-radius: 999px;

    background:
        rgba(41, 212, 151, 0.07);

    padding: 5px 8px;

    color: #55dba8;

    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    overflow: hidden;

    border:
        1px solid
        rgba(143, 176, 218, 0.08);

    border-radius: 9px;

    background:
        rgba(3, 12, 24, 0.35);

    margin:
        15px 0;

    padding:
        9px 10px;

    color: #617893;

    font-size: 8px;

    white-space: nowrap;
}

.client-link span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
}

.client-card-actions {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.client-action {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #9eb2ca;

    cursor: pointer;

    font-size: 8px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.client-action:hover {
    border-color:
        rgba(91, 151, 235, 0.35);

    background:
        rgba(47, 124, 255, 0.08);

    color: #8fc0ff;
}

.client-action.primary {
    border-color:
        rgba(47, 124, 255, 0.2);

    background:
        rgba(47, 124, 255, 0.11);

    color: #8dbbff;
}

/* ======================================================
   CARREGAMENTO
====================================================== */

.loading-state,
.empty-state {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    flex-direction: column;

    border:
        1px dashed
        var(--border-strong);

    border-radius: 16px;

    color: #657993;

    text-align: center;
}

.loading-state strong,
.empty-state strong {
    margin-top: 12px;

    color: #a6b5c8;

    font-size: 11px;
}

.loading-state span,
.empty-state span {
    margin-top: 6px;

    font-size: 9px;
}

.loading-spinner {
    width: 34px;
    height: 34px;

    border:
        3px solid
        rgba(103, 169, 255, 0.1);

    border-top-color: #67a9ff;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

/* ======================================================
   MODAL
====================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background:
        rgba(2, 9, 18, 0.79);

    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    z-index: 2;

    width:
        min(480px, 100%);

    border:
        1px solid
        rgba(92, 156, 244, 0.2);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #132641,
            #0b192c
        );

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.52);

    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #90a2b9;

    cursor: pointer;

    font-size: 22px;
}

.modal-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;

    border:
        1px solid
        rgba(90, 155, 255, 0.28);

    border-radius: 15px;

    background:
        rgba(47, 124, 255, 0.1);

    margin-bottom: 17px;

    color: #75adff;

    font-size: 23px;
}

.modal-dialog h2 {
    margin:
        7px 0;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 23px;
}

.modal-description {
    margin:
        0 0 20px;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.6;
}

.modal-dialog .form-field {
    margin-top: 14px;
}

.slug-input {
    display: flex;
    align-items: center;

    padding: 0;
}

.slug-input > span {
    padding-left: 13px;

    color: #607694;

    font-size: 10px;
}

.slug-input input {
    min-height: 43px;

    border: none;

    background: transparent;

    box-shadow: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 22px;
}

/* ======================================================
   TOAST
====================================================== */

.toast-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;

    display: flex;
    width:
        min(360px, calc(100vw - 44px));

    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(16, 34, 58, 0.97);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.38);

    padding: 14px;

    animation:
        toast-in 0.25s ease;
}

.toast.success {
    border-color:
        rgba(41, 212, 151, 0.2);
}

.toast.error {
    border-color:
        rgba(255, 113, 128, 0.22);
}

.toast-icon {
    display: grid;
    width: 28px;
    min-width: 28px;
    height: 28px;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(47, 124, 255, 0.1);

    color: #82b5ff;
}

.toast.success .toast-icon {
    background:
        rgba(41, 212, 151, 0.1);

    color: #66e3b3;
}

.toast.error .toast-icon {
    background:
        rgba(255, 113, 128, 0.1);

    color: #ff8795;
}

.toast strong {
    display: block;

    font-size: 10px;
}

.toast p {
    margin:
        4px 0 0;

    color: #7f93ac;

    font-size: 8px;
    line-height: 1.45;
}

/* ======================================================
   RODAPÉ
====================================================== */

.page-footer {
    display: flex;
    justify-content: space-between;

    padding:
        22px 5px 4px;

    color: #415775;

    font-size: 8px;
}

/* ======================================================
   ANIMAÇÕES
====================================================== */

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

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

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

@media (max-width: 1180px) {

    .hero-section {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        min-height: 220px;
    }

    .metrics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .clients-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 980px) {

    .sidebar {
        transform:
            translateX(-100%);

        box-shadow:
            20px 0 60px
            rgba(0, 0, 0, 0.4);
    }

    .sidebar.open {
        transform:
            translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu {
        display: grid;
        place-items: center;
    }

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

}

@media (max-width: 760px) {

    .topbar {
        padding:
            12px 16px;
    }

    .top-search,
    .admin-info,
    .profile-arrow {
        display: none;
    }

    .admin-profile {
        border-left: none;
        padding-left: 0;
    }

    .page-content {
        padding:
            18px 15px;
    }

    .hero-section {
        min-height: auto;

        padding:
            25px 21px;
    }

    .hero-content h2 {
        font-size: 31px;
    }

    .hero-buttons,
    .panel-header,
    .clients-header,
    .client-controls,
    .upload-actions,
    .modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .doctor-card {
        align-items: flex-end;
    }

    .doctor-message {
        align-self: center;
    }

    .metrics-grid,
    .clients-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .client-search {
        width: 100%;
    }

    .secure-badge {
        align-self: flex-start;
    }

    .page-footer {
        gap: 6px;
        flex-direction: column;
    }

}

@media (max-width: 430px) {

    .hero-buttons .btn {
        width: 100%;
    }

    .doctor-card {
        padding: 16px;
    }

    .doctor-visual {
        width: 105px;
        min-width: 105px;

        transform: scale(0.88);

        transform-origin:
            bottom left;
    }

    .client-card-actions {
        grid-template-columns: 1fr;
    }

    .modal-dialog {
        padding:
            24px 19px;
    }

}

/* ======================================================
   AJUSTE DE LUMINOSIDADE — TEMA AZUL MAIS CLARO
====================================================== */

:root {
    --bg: #0b1d33;
    --bg-soft: #102744;
    --surface: #18385f;
    --surface-dark: #102944;
    --surface-light: #214b7a;

    --border: rgba(175, 207, 244, 0.22);
    --border-strong: rgba(175, 207, 244, 0.34);

    --text: #ffffff;
    --muted: #b6c9df;
    --muted-dark: #88a3c1;

    --primary: #3f8cff;
    --primary-dark: #1f6de8;
}

body {
    background:
        radial-gradient(
            circle at 80% -10%,
            rgba(63, 140, 255, 0.24),
            transparent 38%
        ),
        radial-gradient(
            circle at 5% 105%,
            rgba(55, 190, 255, 0.14),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #0d2038,
            #0a192c
        );
}

.sidebar {
    background:
        linear-gradient(
            180deg,
            rgba(17, 42, 72, 0.99),
            rgba(11, 29, 50, 0.99)
        );
}

.topbar {
    background:
        rgba(13, 32, 56, 0.9);
}

.hero-section {
    background:
        linear-gradient(
            105deg,
            rgba(20, 54, 91, 0.98),
            rgba(18, 49, 84, 0.95)
        );
}

.doctor-card {
    background:
        linear-gradient(
            145deg,
            rgba(38, 83, 134, 0.8),
            rgba(19, 49, 83, 0.85)
        );
}

.metric-card {
    background:
        linear-gradient(
            145deg,
            rgba(28, 67, 111, 0.94),
            rgba(18, 45, 77, 0.96)
        );
}

.panel,
.clients-section {
    background:
        linear-gradient(
            145deg,
            rgba(25, 61, 102, 0.96),
            rgba(16, 42, 72, 0.97)
        );
}

.client-card {
    background:
        linear-gradient(
            145deg,
            rgba(32, 76, 124, 0.88),
            rgba(18, 47, 80, 0.95)
        );
}

.form-field input,
.form-field select,
.slug-input,
.top-search,
.client-search {
    background:
        rgba(10, 32, 57, 0.72);
}

.upload-dropzone {
    background:
        linear-gradient(
            180deg,
            rgba(63, 140, 255, 0.09),
            rgba(63, 140, 255, 0.035)
        );
}

.quick-action {
    background:
        rgba(13, 39, 68, 0.66);
}

.client-link {
    background:
        rgba(8, 27, 49, 0.58);
}

/* ======================================================
   TEMA EXECUTIVO CLARO — DR. CONDOMÍNIO
====================================================== */

:root {
    --bg: #f4f7fb;
    --bg-soft: #eef3f8;

    --surface: #ffffff;
    --surface-dark: #f8fafc;
    --surface-light: #ffffff;

    --border: rgba(43, 65, 94, 0.10);
    --border-strong: rgba(43, 65, 94, 0.16);

    --text: #1d2a3a;
    --muted: #6f8094;
    --muted-dark: #8d9aaa;

    --primary: #2b6fc8;
    --primary-dark: #1e5ca9;
    --primary-soft: rgba(43, 111, 200, 0.09);

    --green: #2da77a;
    --purple: #7467d8;
    --gold: #c99a3d;
    --danger: #d95b66;

    --shadow:
        0 20px 55px rgba(31, 48, 70, 0.08);

    --shadow-soft:
        0 8px 28px rgba(31, 48, 70, 0.07);
}

body {
    background:
        radial-gradient(
            circle at 82% -8%,
            rgba(43, 111, 200, 0.07),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #f7f9fc,
            #eef3f8
        );

    color: var(--text);
}

.sidebar {
    background:
        linear-gradient(
            180deg,
            #18324d,
            #13283e
        );

    border-right:
        1px solid rgba(255,255,255,0.06);
}

.brand-text strong {
    color: #ffffff;
}

.brand-text span,
.system-card small,
.help-button {
    color: #b7c6d6;
}

.nav-item {
    color: #c3cfdb;
}

.nav-item:hover {
    background:
        rgba(255,255,255,0.06);

    color: #ffffff;
}

.nav-item.active {
    background:
        rgba(255,255,255,0.10);

    color: #ffffff;
}

.nav-item.active::before {
    background: #65a7ff;
}

.system-card {
    border-color:
        rgba(255,255,255,0.10);

    background:
        rgba(255,255,255,0.045);
}

.topbar {
    background:
        rgba(255,255,255,0.92);

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 4px 18px rgba(31,48,70,0.04);
}

.topbar-title h1 {
    color: #243447;
}

.topbar-title div > span {
    color: #8492a3;
}

.top-search,
.client-search {
    background: #f8fafc;
    border-color: var(--border);
}

.top-search input,
.client-search input {
    color: #243447;
}

.notification-button {
    background: #ffffff;
    color: #60758d;
}

.admin-profile {
    border-left-color: var(--border);
}

.admin-info strong {
    color: #26374a;
}

.admin-info span,
.profile-arrow {
    color: #8d9aaa;
}

.hero-section {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7faff
        );

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}

.hero-section::before {
    background:
        rgba(43,111,200,0.07);
}

.hero-section::after {
    border-color:
        rgba(43,111,200,0.08);
}

.hero-content h2 {
    color: #203247;
}

.hero-content > p {
    color: #6f8094;
}

.section-label {
    color: #2b6fc8;
}

.doctor-card {
    background:
        linear-gradient(
            145deg,
            #eef5fc,
            #e7f0f9
        );

    border:
        1px solid rgba(43,111,200,0.13);
}

.doctor-message h3 {
    color: #22384f;
}

.doctor-message p {
    color: #71859a;
}

.metric-card,
.panel,
.clients-section {
    background: #ffffff;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow-soft);
}

.metric-info > span,
.metric-info small {
    color: #8391a2;
}

.metric-info strong {
    color: #213247;
}

.metric-blue {
    background:
        rgba(43,111,200,0.09);

    color: #2b6fc8;
}

.metric-purple {
    background:
        rgba(116,103,216,0.09);

    color: #7467d8;
}

.metric-green {
    background:
        rgba(45,167,122,0.09);

    color: #2da77a;
}

.metric-gold {
    background:
        rgba(201,154,61,0.10);

    color: #c99a3d;
}

.panel-header h3,
.clients-header h3 {
    color: #223247;
}

.panel-header p,
.clients-header p {
    color: #7b8999;
}

.form-field > span {
    color: #66788c;
}

.form-field input,
.form-field select,
.slug-input {
    background: #f9fbfd;
    border-color: var(--border);
    color: #27384b;
}

.form-field input::placeholder {
    color: #9aa7b6;
}

.form-field select option {
    background: #ffffff;
    color: #26384a;
}

.upload-dropzone {
    background:
        linear-gradient(
            180deg,
            #f8fbff,
            #f4f8fc
        );

    border-color:
        rgba(43,111,200,0.28);
}

.upload-dropzone:hover,
.upload-dropzone.dragging {
    background: #eef5fd;
    border-color: #2b6fc8;
}

.upload-dropzone strong {
    color: #26394c;
}

.upload-dropzone p {
    color: #7b8999;
}

.upload-dropzone small {
    color: #9ba7b5;
}

.quick-action {
    background: #f8fafc;
    border-color: var(--border);
    color: #27384a;
}

.quick-action:hover {
    background: #f1f6fb;
    border-color:
        rgba(43,111,200,0.22);
}

.quick-action strong {
    color: #27384a;
}

.quick-action small {
    color: #8895a4;
}

.quick-action-icon {
    background:
        rgba(43,111,200,0.08);

    color: #2b6fc8;
}

.doctor-tip {
    background:
        rgba(201,154,61,0.05);

    border-color:
        rgba(201,154,61,0.14);
}

.doctor-tip strong {
    color: #9b742b;
}

.doctor-tip p {
    color: #8e846f;
}

.client-card {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    border-color: var(--border);
}

.client-title h4 {
    color: #26384a;
}

.client-title span {
    color: #8c9aaa;
}

.client-link {
    background: #f6f8fb;
    border-color: var(--border);
    color: #75869a;
}

.client-action {
    background: #ffffff;
    color: #5f7288;
}

.client-action:hover {
    background:
        rgba(43,111,200,0.06);

    color: #2b6fc8;
}

.client-action.primary {
    background:
        rgba(43,111,200,0.08);

    color: #2b6fc8;
}

.loading-state,
.empty-state {
    border-color: var(--border-strong);
    color: #7b8999;
}

.loading-state strong,
.empty-state strong {
    color: #43546a;
}

.modal-overlay {
    background:
        rgba(29,42,58,0.46);
}

.modal-dialog {
    background: #ffffff;

    border:
        1px solid var(--border);

    box-shadow:
        0 28px 80px
        rgba(31,48,70,0.18);
}

.modal-dialog h2 {
    color: #243447;
}

.modal-description {
    color: #76869a;
}

.modal-close {
    background: #f6f8fb;
    color: #6e8095;
}

.toast {
    background: #ffffff;
    color: #26384a;

    border-color: var(--border);

    box-shadow:
        0 18px 45px
        rgba(31,48,70,0.14);
}

.page-footer {
    color: #94a0ae;
}

/* ======================================================
   TEMA EXECUTIVO BALANCEADO
   Branco + Azul Gelo + Azul Corporativo
====================================================== */

body {
    background:
        radial-gradient(
            circle at 75% 5%,
            rgba(53, 118, 190, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #e7eef6 0%,
            #edf3f8 45%,
            #e3ebf4 100%
        );
}

/* ÁREA PRINCIPAL */
.main-content {
    background: transparent;
}

/* TOPBAR */
.topbar {
    background: rgba(248, 251, 254, 0.94);
    border-bottom: 1px solid rgba(46, 78, 112, 0.12);
}

/* HERO — ganha identidade sem ficar pesado */
.hero-section {
    background:
        radial-gradient(
            circle at 88% 30%,
            rgba(53, 126, 205, 0.13),
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #f8fbff 0%,
            #edf5fc 55%,
            #e5f0fa 100%
        );

    border: 1px solid rgba(55, 101, 150, 0.16);

    box-shadow:
        0 18px 45px rgba(35, 65, 98, 0.10);
}

.doctor-card {
    background:
        linear-gradient(
            145deg,
            #dceaf7,
            #edf5fc
        );

    border: 1px solid rgba(42, 105, 170, 0.18);
}

/* CARDS DE INDICADORES */
.metric-card {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4f8fc 100%
        );

    border: 1px solid rgba(48, 82, 117, 0.13);

    box-shadow:
        0 8px 24px rgba(36, 62, 91, 0.075);
}

.metric-card:hover {
    transform: translateY(-2px);

    border-color: rgba(43, 111, 200, 0.25);

    box-shadow:
        0 14px 32px rgba(36, 62, 91, 0.11);
}

/* PAINÉIS */
.panel,
.clients-section {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fafc 100%
        );

    border: 1px solid rgba(48, 82, 117, 0.13);

    box-shadow:
        0 12px 34px rgba(36, 62, 91, 0.08);
}

/* UPLOAD — agora visualmente separado */
.upload-dropzone {
    background:
        linear-gradient(
            135deg,
            #edf5fc,
            #f6faff
        );

    border: 1.5px dashed rgba(43, 111, 200, 0.36);
}

/* CAMPOS */
.form-field input,
.form-field select,
.slug-input,
.top-search,
.client-search {
    background: #f2f6fa;

    border-color:
        rgba(49, 81, 115, 0.14);
}

/* AÇÕES RÁPIDAS */
.quick-action {
    background:
        linear-gradient(
            135deg,
            #f3f7fb,
            #edf3f8
        );

    border-color:
        rgba(48, 82, 117, 0.13);
}

.quick-action:hover {
    background:
        linear-gradient(
            135deg,
            #e9f2fb,
            #f3f8fc
        );

    border-color:
        rgba(43, 111, 200, 0.28);
}

/* CLIENTES */
.client-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f1f6fa
        );

    border: 1px solid rgba(48, 82, 117, 0.14);
}

/* RODAPÉ */
.page-footer {
    color: #718399;
}

/* MAIS PROFUNDIDADE NA SIDEBAR */
.sidebar {
    background:
        linear-gradient(
            180deg,
            #183a59 0%,
            #142f49 50%,
            #10283e 100%
        );

    box-shadow:
        8px 0 28px rgba(20, 45, 70, 0.08);
}


/* ======================================================
   DR. CONDOMÍNIO — EXECUTIVE BLUE FINAL
   Contraste corporativo / premium
====================================================== */

body {
    background:
        radial-gradient(
            circle at 82% 5%,
            rgba(53, 116, 181, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #cbd9e7 0%,
            #d8e3ed 48%,
            #c7d7e6 100%
        );
}

/* CONTEÚDO */
.main-content {
    background:
        linear-gradient(
            135deg,
            rgba(221,231,241,.78),
            rgba(202,218,233,.86)
        );
}

/* HEADER */
.topbar {
    background: rgba(242,247,251,.96);
    border-bottom: 1px solid rgba(34,71,108,.18);

    box-shadow:
        0 5px 20px rgba(23,51,79,.08);
}

/* HERO */
.hero-section {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(91,155,219,.22),
            transparent 35%
        ),
        linear-gradient(
            125deg,
            #dce9f5 0%,
            #cbdff0 52%,
            #bad3e9 100%
        );

    border: 1px solid rgba(37,84,129,.20);

    box-shadow:
        0 20px 45px rgba(27,58,89,.13);
}

.hero-content h2 {
    color: #142f49;
}

.hero-content > p {
    color: #536d86;
}

.section-label {
    color: #1769bd;
}

/* CARD DO DR. */
.doctor-card {
    background:
        linear-gradient(
            145deg,
            rgba(245,249,253,.90),
            rgba(210,228,243,.92)
        );

    border: 1px solid rgba(39,93,145,.22);

    box-shadow:
        0 12px 28px rgba(31,67,101,.09);
}

/* INDICADORES */
.metric-card {
    background:
        linear-gradient(
            145deg,
            #f7fafc 0%,
            #e7eff6 100%
        );

    border: 1px solid rgba(42,76,108,.17);

    box-shadow:
        0 9px 24px rgba(28,57,85,.10);
}

.metric-card:hover {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #e2edf6
        );

    transform: translateY(-3px);

    box-shadow:
        0 16px 32px rgba(28,57,85,.14);
}

/* PAINÉIS GRANDES */
.panel,
.clients-section {
    background:
        linear-gradient(
            145deg,
            #f4f8fb 0%,
            #e8f0f6 100%
        );

    border: 1px solid rgba(42,76,108,.17);

    box-shadow:
        0 14px 32px rgba(28,57,85,.11);
}

/* CAMPOS */
.form-field input,
.form-field select,
.slug-input,
.top-search,
.client-search {
    background: rgba(255,255,255,.64);

    border:
        1px solid rgba(42,76,108,.18);

    color: #21384d;
}

/* UPLOAD */
.upload-dropzone {
    background:
        linear-gradient(
            135deg,
            #dce9f4,
            #edf4f9
        );

    border:
        1.5px dashed rgba(30,104,177,.42);
}

/* AÇÕES RÁPIDAS */
.quick-action {
    background:
        linear-gradient(
            135deg,
            #e2ecf5,
            #edf3f8
        );

    border:
        1px solid rgba(42,76,108,.16);
}

.quick-action:hover {
    background:
        linear-gradient(
            135deg,
            #d4e5f4,
            #e6f0f8
        );

    border-color:
        rgba(32,105,178,.35);
}

/* CLIENTES */
.client-card {
    background:
        linear-gradient(
            145deg,
            #eef4f8,
            #dde9f2
        );

    border:
        1px solid rgba(42,76,108,.17);

    box-shadow:
        0 9px 22px rgba(28,57,85,.09);
}

/* Mantém a sidebar como elemento de contraste */
.sidebar {
    background:
        linear-gradient(
            180deg,
            #173b5a 0%,
            #12324e 52%,
            #0e293f 100%
        );

    box-shadow:
        8px 0 30px rgba(12,37,58,.13);
}


/* Exclusão de condomínio */
.client-action-danger {
    grid-column: 1 / -1;

    border-color: rgba(190, 67, 75, 0.18);

    background:
        rgba(190, 67, 75, 0.055);

    color: #a8434b;
}

.client-action-danger:hover {
    border-color: rgba(190, 67, 75, 0.35);

    background:
        rgba(190, 67, 75, 0.10);

    color: #94353d;
}
