﻿/*
 * Identidade visual global do Campo VT.
 * Camada estritamente visual, compartilhada por todas as telas do sistema.
 */
.campo-vt-modern body {
    --dashboard-surface: rgba(13, 22, 36, 0.9);
    --dashboard-line: rgba(137, 158, 190, 0.36);
    --dashboard-shadow: 0 22px 52px rgba(0, 4, 15, 0.32);
}

.campo-vt-modern body .navbar {
    border-bottom: 1px solid var(--dashboard-line);
    background: rgba(11, 19, 32, 0.88);
    box-shadow: 0 10px 32px rgba(0, 4, 15, 0.22);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.campo-vt-modern body {
    background:
        radial-gradient(circle at 8% -8%, rgba(54, 126, 239, 0.13), transparent 30rem),
        radial-gradient(circle at 100% 12%, rgba(79, 101, 218, 0.1), transparent 28rem),
        var(--app-bg, #080f1c);
    background-attachment: fixed;
}

.campo-vt-modern body .main-content,
.campo-vt-modern body .admin-content,
.campo-vt-modern body .dashboard-content {
    animation: campo-vt-content-enter 220ms ease-out both;
}

.campo-vt-modern body .card:not(.metric-card),
.campo-vt-modern body .admin-sidebar,
.campo-vt-modern body .modal-content,
.campo-vt-modern body .system-dialog-panel,
.campo-vt-modern body .auth-card {
    border: 1px solid var(--dashboard-line);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(94, 161, 255, 0.055), transparent 38%),
        linear-gradient(145deg, rgba(18, 29, 47, 0.97), rgba(10, 17, 30, 0.97));
    box-shadow: var(--dashboard-shadow), inset 0 1px rgba(255, 255, 255, 0.035);
}

.campo-vt-modern body .card-title,
.campo-vt-modern body .modal-title,
.campo-vt-modern body .auth-header h1,
.campo-vt-modern body .auth-header h2 {
    color: var(--app-heading, #f8fbff);
    letter-spacing: -0.025em;
}

.campo-vt-modern body .form-control,
.campo-vt-modern body .form-select,
.campo-vt-modern body textarea,
.campo-vt-modern body input[type="date"],
.campo-vt-modern body input[type="month"],
.campo-vt-modern body input[type="time"] {
    border-color: rgba(132, 154, 187, 0.34);
    border-radius: 0.78rem;
    background-color: rgba(7, 15, 27, 0.78);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14);
}

.campo-vt-modern body .form-control:focus,
.campo-vt-modern body .form-select:focus,
.campo-vt-modern body textarea:focus {
    border-color: rgba(105, 158, 255, 0.82);
    box-shadow: 0 0 0 0.22rem rgba(73, 126, 230, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.campo-vt-modern body .btn {
    border-radius: 0.78rem;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.campo-vt-modern body .btn:hover,
.campo-vt-modern body .btn:focus-visible {
    transform: translateY(-1px);
}

.campo-vt-modern body .btn-primary {
    border-color: rgba(122, 157, 255, 0.62);
    background: linear-gradient(135deg, #647ce3, #3e559f);
    box-shadow: 0 9px 24px rgba(57, 82, 175, 0.28);
}

.campo-vt-modern body .table-responsive,
.campo-vt-modern body .data-table-wrapper {
    border: 1px solid rgba(132, 154, 187, 0.26);
    border-radius: 0.95rem;
    background: rgba(8, 16, 29, 0.38);
}

.campo-vt-modern body .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-color, #e8f0fa);
    --bs-table-border-color: rgba(132, 154, 187, 0.2);
    --bs-table-striped-bg: rgba(110, 145, 213, 0.035);
    --bs-table-hover-bg: rgba(82, 120, 200, 0.09);
}

.campo-vt-modern body .table thead th {
    background: rgba(10, 21, 37, 0.74);
    color: var(--app-muted, #9aabc0);
}

.campo-vt-modern body .alert,
.campo-vt-modern body .badge,
.campo-vt-modern body .dropdown-menu,
.campo-vt-modern body .system-select-options {
    border-radius: 0.85rem;
}

.campo-vt-modern body .admin-sidebar .sidebar-link,
.campo-vt-modern body .admin-sidebar .nav-link {
    border-radius: 0.78rem;
}

.campo-vt-modern body .admin-sidebar .sidebar-link:hover,
.campo-vt-modern body .admin-sidebar .sidebar-link:focus-visible,
.campo-vt-modern body .admin-sidebar .sidebar-link.active,
.campo-vt-modern body .admin-sidebar .nav-link:hover,
.campo-vt-modern body .admin-sidebar .nav-link.active {
    border-color: rgba(111, 143, 232, 0.3);
    background: linear-gradient(110deg, rgba(74, 99, 180, 0.22), rgba(48, 68, 126, 0.12));
    color: var(--app-heading, #f8fbff);
}

@keyframes campo-vt-content-enter {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.campo-vt-modern body .admin-project-brand img {
    display: block;
    flex: 0 0 2.375rem;
    width: 2.375rem;
    height: 2.375rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.campo-vt-modern body .user-badge,
.campo-vt-modern body .navbar-user .btn-icon-only {
    border: 1px solid var(--dashboard-line);
    background: rgba(13, 22, 36, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.campo-vt-modern body .metrics-grid {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.campo-vt-modern body .metrics-grid .metric-card {
    min-height: 9.25rem;
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--dashboard-line);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(94, 161, 255, 0.08), transparent 42%),
        linear-gradient(145deg, rgba(18, 29, 47, 0.96), rgba(10, 17, 30, 0.96));
    box-shadow: var(--dashboard-shadow), inset 0 1px rgba(255, 255, 255, 0.035);
}

.campo-vt-modern body .metrics-grid .metric-card::after {
    content: "";
    position: absolute;
    inset: auto -3rem -4rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 161, 255, 0.13), transparent 70%);
    pointer-events: none;
}

.campo-vt-modern body .metrics-grid .metric-card:hover,
.campo-vt-modern body .metrics-grid .metric-card:focus-visible {
    border-color: rgba(113, 168, 255, 0.64);
    box-shadow: 0 22px 54px rgba(27, 90, 189, 0.2), inset 0 1px rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.campo-vt-modern body .metrics-grid .metric-icon {
    width: 3.45rem;
    height: 3.45rem;
    flex: 0 0 3.45rem;
    border: 1px solid rgba(121, 157, 255, 0.34);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(79, 116, 218, 0.78), rgba(34, 57, 111, 0.82));
    color: #a9bdff;
    box-shadow: 0 0 24px rgba(75, 111, 230, 0.34), inset 0 1px rgba(255, 255, 255, 0.16);
}

.campo-vt-modern body .metrics-grid .metric-icon .material-symbols-rounded {
    font-size: 1.75rem;
}

.campo-vt-modern body .metrics-grid .metric-icon.icon-success {
    border-color: rgba(53, 218, 137, 0.34);
    background: linear-gradient(145deg, rgba(42, 189, 111, 0.82), rgba(17, 89, 65, 0.86));
    color: #a3f4c8;
    box-shadow: 0 0 25px rgba(38, 207, 121, 0.3), inset 0 1px rgba(255, 255, 255, 0.16);
}

.campo-vt-modern body .metrics-grid .metric-icon.icon-warning {
    border-color: rgba(255, 184, 55, 0.36);
    background: linear-gradient(145deg, rgba(202, 139, 30, 0.82), rgba(92, 61, 13, 0.88));
    color: #ffd379;
    box-shadow: 0 0 25px rgba(246, 163, 32, 0.28), inset 0 1px rgba(255, 255, 255, 0.16);
}

.campo-vt-modern body .metrics-grid > div:first-child .metric-card {
    border-color: rgba(255, 147, 95, 0.72);
    box-shadow: 0 0 28px rgba(255, 119, 65, 0.18), var(--dashboard-shadow);
}

.campo-vt-modern body .metrics-grid > div:first-child .metric-icon {
    border-color: rgba(255, 181, 136, 0.58);
    background: linear-gradient(145deg, #ff9a65, #c95832);
    color: #fff3e8;
    box-shadow: 0 0 27px rgba(255, 125, 68, 0.46), inset 0 1px rgba(255, 255, 255, 0.24);
}

.campo-vt-modern body .metrics-grid .metric-info h3 {
    margin-bottom: 0.42rem;
    color: #aeb9c9;
    font-size: 0.76rem;
    letter-spacing: 0.055em;
}

.campo-vt-modern body .metrics-grid .metric-value {
    color: #f8fbff;
    font-size: clamp(2.1rem, 7vw, 3rem);
    font-weight: 850;
    letter-spacing: -0.055em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Menu rapido no acabamento da referencia nova. */
.campo-vt-modern body .floating-quick-menu-panel {
    width: min(24.5rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100vh - 5rem));
    border-color: rgba(133, 153, 181, 0.42);
    border-radius: 1.45rem;
    background: rgba(14, 23, 37, 0.94);
    box-shadow: 0 28px 72px rgba(0, 4, 16, 0.5), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.campo-vt-modern body .floating-quick-menu-header {
    gap: 0.9rem;
    padding: 1.25rem 1.35rem 1.05rem;
    border-bottom-color: rgba(133, 153, 181, 0.28);
}

.campo-vt-modern body .floating-quick-menu-header-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.85rem;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.campo-vt-modern body .floating-quick-menu-header strong {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.campo-vt-modern body .floating-quick-menu-header small {
    margin-top: 0.18rem;
    font-size: 0.78rem;
}

.campo-vt-modern body .floating-quick-menu-list {
    gap: 0.2rem;
    max-height: min(34rem, calc(100vh - 12rem));
    padding: 0.8rem;
}

.campo-vt-modern body .floating-quick-menu-link {
    grid-template-columns: 2.55rem minmax(0, 1fr) 1.25rem;
    gap: 0.85rem;
    min-height: 3.65rem;
    padding: 0.52rem 0.75rem;
    border-radius: 0.95rem;
    font-size: 0.94rem;
    font-weight: 780;
}

.campo-vt-modern body .floating-quick-menu-link-icon {
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid rgba(124, 147, 181, 0.12);
    border-radius: 0.82rem;
    background: linear-gradient(145deg, rgba(27, 39, 59, 0.96), rgba(9, 16, 28, 0.96));
    box-shadow: 0 9px 22px rgba(0, 4, 14, 0.28);
}

.campo-vt-modern body .floating-quick-menu-link.is-active {
    border-color: rgba(117, 132, 224, 0.55);
    background: linear-gradient(120deg, rgba(71, 78, 139, 0.48), rgba(39, 47, 82, 0.62));
    color: #8fa1ff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 8px 24px rgba(42, 53, 126, 0.2);
}

.campo-vt-modern body .floating-quick-menu-button,
.campo-vt-modern body .floating-quick-menu.is-open .floating-quick-menu-button {
    border-color: rgba(121, 145, 185, 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.15), transparent 36%),
        rgba(20, 31, 49, 0.86);
    box-shadow: 0 0 26px rgba(91, 115, 180, 0.2), 0 16px 38px rgba(0, 4, 15, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
    color: #8298ff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="light"].campo-vt-modern body {
    --dashboard-surface: rgba(255, 255, 255, 0.92);
    --dashboard-line: rgba(78, 100, 132, 0.28);
    --dashboard-shadow: 0 20px 48px rgba(35, 60, 90, 0.15);
}

:root[data-theme="light"].campo-vt-modern body .navbar {
    background: rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"].campo-vt-modern body .metrics-grid .metric-card,
:root[data-theme="light"].campo-vt-modern body .floating-quick-menu-panel,
:root[data-theme="light"].campo-vt-modern body .card:not(.metric-card),
:root[data-theme="light"].campo-vt-modern body .admin-sidebar,
:root[data-theme="light"].campo-vt-modern body .modal-content,
:root[data-theme="light"].campo-vt-modern body .system-dialog-panel,
:root[data-theme="light"].campo-vt-modern body .auth-card {
    background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"].campo-vt-modern body .metrics-grid .metric-info h3 {
    color: #60738b;
}

:root[data-theme="light"].campo-vt-modern body .metrics-grid .metric-value {
    color: #102238;
}

:root[data-theme="light"].campo-vt-modern body .form-control,
:root[data-theme="light"].campo-vt-modern body .form-select,
:root[data-theme="light"].campo-vt-modern body textarea {
    background-color: rgba(247, 250, 253, 0.96);
}

:root[data-theme="light"].campo-vt-modern body .table-responsive,
:root[data-theme="light"].campo-vt-modern body .data-table-wrapper {
    background: rgba(255, 255, 255, 0.56);
}

:root[data-theme="light"].campo-vt-modern body .table thead th {
    background: rgba(231, 238, 247, 0.8);
}

@media (max-width: 575.98px) {
    .campo-vt-modern body .metrics-grid .metric-card {
        min-height: 8.7rem;
        padding: 1.15rem 1.2rem;
    }

    .campo-vt-modern body .floating-quick-menu-panel {
        width: min(20rem, calc(100vw - 2.7rem));
        max-height: calc(100vh - 4.5rem);
        border-radius: 1.35rem;
    }

    .campo-vt-modern body .floating-quick-menu-list {
        max-height: calc(100vh - 11.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .campo-vt-modern body .main-content,
    .campo-vt-modern body .admin-content,
    .campo-vt-modern body .dashboard-content,
    .campo-vt-modern body .metrics-grid .metric-card {
        animation: none;
        transition: none;
    }
}

