@import url("/templates/AtualStudio11/styles/vendor/fonts/l2n-fonts.css");

:root {
    --icp-bg: #090707;
    --icp-bg-soft: #110c0c;
    --icp-panel: #151010;
    --icp-panel-soft: #1b1414;
    --icp-panel-elev: #201818;
    --icp-border: rgba(146, 121, 70, 0.18);
    --icp-border-strong: rgba(146, 121, 70, 0.28);
    --icp-gold: #927946;
    --icp-gold-soft: #b79a68;
    --icp-text: #ece4d7;
    --icp-muted: #b7ac9d;
}

html,
body {
    background: var(--icp-bg) !important;
}

body.icp-refined {
    font-family: "Poppins", Arial, sans-serif;
    color: var(--icp-text);
    background:
        radial-gradient(circle at top, rgba(146, 121, 70, 0.06), transparent 36%),
        linear-gradient(180deg, rgba(7, 5, 5, 0.88), rgba(9, 6, 6, 0.96)),
        url("/images/fondo panel.jpg") center top / cover fixed no-repeat !important;
    min-height: 100vh;
}

body.icp-refined * {
    font-family: "Poppins", Arial, sans-serif;
}

body.icp-refined a {
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

body.icp-refined header.navbar {
    background: rgba(10, 8, 8, 0.82) !important;
    border-bottom: 1px solid rgba(146, 121, 70, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.icp-refined .navbar-brand {
    color: var(--icp-gold-soft) !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}

body.icp-refined .navbar-brand:hover {
    color: #fff !important;
}

body.icp-refined .navbar-nav .nav-link {
    color: var(--icp-text) !important;
    font-weight: 600;
}

body.icp-refined .dropdown-toggle,
body.icp-refined .btn-secondary,
body.icp-refined .btn-danger,
body.icp-refined .btn-primary,
body.icp-refined .btn-outline-secondary,
body.icp-refined .custom-btn,
body.icp-refined .btn-brand {
    border: 1px solid var(--icp-border-strong) !important;
    background: linear-gradient(180deg,
            rgba(33, 24, 24, 0.94),
            rgba(17, 12, 12, 0.96)) !important;
    color: #f4eee4 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

body.icp-refined .dropdown-toggle:hover,
body.icp-refined .btn-secondary:hover,
body.icp-refined .btn-danger:hover,
body.icp-refined .btn-primary:hover,
body.icp-refined .btn-outline-secondary:hover,
body.icp-refined .custom-btn:hover,
body.icp-refined .btn-brand:hover {
    border-color: rgba(146, 121, 70, 0.46) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

body.icp-refined #sidebarMenu {
    background: rgba(12, 9, 9, 0.88) !important;
    border-right: 1px solid rgba(146, 121, 70, 0.14);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

body.icp-refined #sidebarMenu .position-sticky {
    padding: 18px 12px 28px;
}

body.icp-refined .menu-title,
body.icp-refined .sidebar-heading {
    color: var(--icp-gold-soft) !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin: 16px 8px 8px;
    padding: 0;
    border: none !important;
    background: none !important;
}

body.icp-refined #sidebarMenu .nav-link,
body.icp-refined .sidebar .nav-link {
    margin: 4px 0;
    padding: 11px 14px;
    border-radius: 12px;
    color: #ddd5c8 !important;
    font-size: 13px;
    font-weight: 600;
}

body.icp-refined #sidebarMenu .nav-link:hover,
body.icp-refined .sidebar .nav-link:hover {
    background: rgba(146, 121, 70, 0.09);
    color: #fff !important;
}

body.icp-refined #sidebarMenu .nav-link.active,
body.icp-refined .sidebar .nav-link.active {
    background: linear-gradient(180deg,
            rgba(146, 121, 70, 0.16),
            rgba(146, 121, 70, 0.07));
    box-shadow: inset 0 0 0 1px rgba(146, 121, 70, 0.2);
    color: #fff !important;
}

body.icp-refined main {
    padding-top: 26px;
    padding-bottom: 34px;
}

body.icp-refined .panel-shell {
    max-width: 1260px;
    margin: 0 auto;
}

body.icp-refined .panel-heading-block {
    padding-bottom: 14px;
    margin-bottom: 0;
}

body.icp-refined .border-bottom {
    border-bottom: 1px solid rgba(146, 121, 70, 0.14) !important;
}

body.icp-refined .panel-heading-block .h2 {
    font-weight: 700;
    color: #f4eee4;
}

body.icp-refined .panel-subtitle {
    color: var(--icp-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.icp-refined .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.icp-refined .metric-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--icp-border);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0) 28%),
        rgba(17, 12, 12, 0.72);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

body.icp-refined .metric-label {
    display: block;
    color: var(--icp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

body.icp-refined .metric-value {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

body.icp-refined .metric-note {
    display: block;
    color: var(--icp-muted);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.5;
}

body.icp-refined .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

body.icp-refined .status-pill.online {
    color: #ebf7ef;
    background: rgba(79, 179, 109, 0.12);
    border-color: rgba(79, 179, 109, 0.26);
}

body.icp-refined .status-pill.offline {
    color: #fff2f2;
    background: rgba(223, 103, 103, 0.12);
    border-color: rgba(223, 103, 103, 0.26);
}

body.icp-refined .card,
body.icp-refined .dashboard-card {
    border: 1px solid var(--icp-border) !important;
    border-radius: 20px !important;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0) 24%),
        rgba(14, 10, 10, 0.78) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.icp-refined .card-header {
    padding: 14px 18px !important;
    background: rgba(28, 20, 20, 0.82) !important;
    color: #f4eee4 !important;
    border-bottom: 1px solid rgba(146, 121, 70, 0.14) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

body.icp-refined .card-body {
    background: transparent !important;
    color: var(--icp-text) !important;
    padding: 18px !important;
}

body.icp-refined .card-section-title {
    color: var(--icp-gold-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.icp-refined .info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.icp-refined .info-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(146, 121, 70, 0.12);
    background: rgba(255, 255, 255, 0.018);
}

body.icp-refined .info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--icp-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.icp-refined .info-item span {
    color: #fff;
    font-weight: 600;
}

body.icp-refined .mini-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.icp-refined .mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 10, 10, 0.82);
    border: 1px solid rgba(146, 121, 70, 0.18);
    color: #f2ecdf;
    font-size: 12px;
    font-weight: 700;
}

body.icp-refined .table {
    color: var(--icp-text) !important;
    margin-bottom: 0;
    border-color: rgba(146, 121, 70, 0.12) !important;
}

body.icp-refined .table thead th {
    background: rgba(28, 20, 20, 0.86) !important;
    color: #f4eee4 !important;
    border-color: rgba(146, 121, 70, 0.14) !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.icp-refined .table tbody td {
    background: rgba(255, 255, 255, 0.01);
    color: var(--icp-text) !important;
    border-color: rgba(146, 121, 70, 0.1) !important;
    vertical-align: middle;
}

body.icp-refined .ranking-mini-table td:first-child {
    color: var(--icp-muted);
    width: 34%;
    font-weight: 600;
}

body.icp-refined .rule-list {
    margin: 0;
    padding-left: 18px;
    color: #ddd3c5;
}

body.icp-refined .rule-list li {
    margin-bottom: 10px;
    line-height: 1.65;
}

body.icp-refined .progress {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #1a1212;
    border: 1px solid rgba(146, 121, 70, 0.1);
}

body.icp-refined .progress .progress-bar {
    background: linear-gradient(90deg,
            rgba(146, 121, 70, 0.92),
            rgba(180, 151, 99, 0.88)) !important;
    color: #100b0b;
}

body.icp-refined .dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(146, 121, 70, 0.18);
    background: rgba(17, 12, 12, 0.96);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

body.icp-refined .dropdown-item {
    color: #e6ddd2;
    font-weight: 500;
}

body.icp-refined .dropdown-item:hover {
    background: rgba(146, 121, 70, 0.08);
    color: #fff;
}

body.icp-refined .form-control,
body.icp-refined .form-select,
body.icp-refined textarea,
body.icp-refined input[type="text"],
body.icp-refined input[type="url"],
body.icp-refined input[type="number"],
body.icp-refined input[type="email"],
body.icp-refined input[type="password"],
body.icp-refined input[type="search"] {
    background: rgba(23, 16, 16, 0.96) !important;
    color: var(--icp-text) !important;
    border: 1px solid rgba(146, 121, 70, 0.14) !important;
    border-radius: 12px !important;
    min-height: 44px;
}

body.icp-refined .form-control:focus,
body.icp-refined .form-select:focus,
body.icp-refined textarea:focus,
body.icp-refined input[type="text"]:focus,
body.icp-refined input[type="url"]:focus,
body.icp-refined input[type="number"]:focus,
body.icp-refined input[type="email"]:focus,
body.icp-refined input[type="password"]:focus,
body.icp-refined input[type="search"]:focus {
    box-shadow: 0 0 0 0.16rem rgba(146, 121, 70, 0.16) !important;
    border-color: rgba(146, 121, 70, 0.36) !important;
}

body.icp-refined .form-signin {
    max-width: 420px;
    margin: 50px auto;
    padding: 28px 28px 24px;
    border-radius: 22px;
    border: 1px solid rgba(146, 121, 70, 0.18);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0) 25%),
        rgba(11, 8, 8, 0.9);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
}

body.icp-refined .form-signin .text-muted,
body.icp-refined .form-signin p {
    color: var(--icp-muted) !important;
}

body.icp-refined .form-signin a {
    color: var(--icp-gold-soft);
}

body.icp-refined .form-signin a:hover {
    color: #fff;
}

body.icp-refined .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(146, 121, 70, 0.2);
    background: rgba(12, 8, 8, 0.98);
    color: var(--icp-text);
}

@media (max-width: 1199px) {
    body.icp-refined .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.icp-refined .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.icp-refined .metric-grid {
        grid-template-columns: 1fr;
    }

    body.icp-refined .panel-shell {
        max-width: 100%;
    }
}

/* ==== V15 ICP SUBTLE POLISH ==== */
body.icp-refined header.navbar {
    background: rgba(10, 8, 8, 0.74) !important;
    border-bottom: 1px solid rgba(146, 121, 70, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

body.icp-refined .navbar-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
}

body.icp-refined #sidebarMenu {
    background: rgba(11, 8, 8, 0.82) !important;
    border-right: 1px solid rgba(146, 121, 70, 0.1);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.015);
}

body.icp-refined #sidebarMenu .position-sticky {
    padding: 16px 10px 24px;
}

body.icp-refined .menu-title,
body.icp-refined .sidebar-heading {
    color: #ab9064 !important;
    font-size: 10.5px;
    letter-spacing: 0.95px;
    margin: 15px 8px 7px;
}

body.icp-refined #sidebarMenu .nav-link,
body.icp-refined .sidebar .nav-link {
    margin: 3px 0;
    padding: 9px 13px;
    border-radius: 10px;
    color: #d9cfbf !important;
    font-size: 12.5px;
    font-weight: 600;
    background: linear-gradient(180deg,
            rgba(20, 14, 14, 0.46),
            rgba(10, 8, 8, 0.34));
    border: 1px solid rgba(146, 121, 70, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

body.icp-refined #sidebarMenu .nav-link:hover,
body.icp-refined .sidebar .nav-link:hover {
    background: linear-gradient(180deg,
            rgba(146, 121, 70, 0.1),
            rgba(146, 121, 70, 0.05));
    border-color: rgba(146, 121, 70, 0.18);
    color: #fff !important;
}

body.icp-refined #sidebarMenu .nav-link.active,
body.icp-refined .sidebar .nav-link.active {
    background: linear-gradient(180deg,
            rgba(146, 121, 70, 0.14),
            rgba(146, 121, 70, 0.06));
    box-shadow:
        inset 0 0 0 1px rgba(146, 121, 70, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

body.icp-refined .card,
body.icp-refined .dashboard-card {
    border-color: rgba(146, 121, 70, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.icp-refined .card-header {
    padding: 13px 17px !important;
    background: rgba(25, 18, 18, 0.78) !important;
    border-bottom: 1px solid rgba(146, 121, 70, 0.11) !important;
    font-size: 12px;
    letter-spacing: 0.5px;
}

body.icp-refined .card-body {
    padding: 16px !important;
}

body.icp-refined .table thead th {
    background: rgba(24, 18, 18, 0.82) !important;
    color: #eadfcd !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

body.icp-refined .table td,
body.icp-refined .table th {
    border-color: rgba(146, 121, 70, 0.09) !important;
}

body.icp-refined input.form-control,
body.icp-refined select.form-control,
body.icp-refined textarea.form-control,
body.icp-refined .form-select {
    background: rgba(14, 10, 10, 0.82) !important;
    color: #f1eadf !important;
    border: 1px solid rgba(146, 121, 70, 0.16) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.icp-refined input.form-control:focus,
body.icp-refined select.form-control:focus,
body.icp-refined textarea.form-control:focus,
body.icp-refined .form-select:focus {
    border-color: rgba(146, 121, 70, 0.34) !important;
    box-shadow: 0 0 0 0.18rem rgba(146, 121, 70, 0.1) !important;
}

body.icp-refined .btn-secondary,
body.icp-refined .btn-primary,
body.icp-refined .btn-danger,
body.icp-refined .btn-outline-secondary,
body.icp-refined .dropdown-toggle,
body.icp-refined .custom-btn,
body.icp-refined .btn-brand {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

body.icp-refined .btn-secondary:hover,
body.icp-refined .btn-primary:hover,
body.icp-refined .btn-danger:hover,
body.icp-refined .btn-outline-secondary:hover,
body.icp-refined .dropdown-toggle:hover,
body.icp-refined .custom-btn:hover,
body.icp-refined .btn-brand:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ===== V18 ICP FINAL POLISH ===== */
@font-face {
    font-family: "Bayonetta";
    src: url("/templates/AtualStudio11/font/Bayonetta.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

body.icp-refined header.navbar.navbar-dark.sticky-top.bg-white.flex-md-nowrap.p-0.shadow {
    background: rgba(10, 8, 8, 0.82) !important;
}

body.icp-refined header.navbar .navbar-brand,
body.icp-refined header.navbar.navbar-dark.sticky-top.bg-white.flex-md-nowrap.p-0.shadow .navbar-brand {
    background: transparent !important;
    box-shadow: none !important;
    color: #c8ad7b !important;
    font-family: "Poppins", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    flex: 0 0 300px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 18px !important;
    border-right: 1px solid rgba(146, 121, 70, 0.1) !important;
}

body.icp-refined header.navbar .navbar-brand:hover {
    color: #f2dfbc !important;
}

@media (min-width: 768px) {
    body.icp-refined #sidebarMenu.col-md-3.col-lg-2 {
        flex: 0 0 300px !important;
        max-width: 300px !important;
    }

    body.icp-refined main.col-md-9.ms-sm-auto.col-lg-10 {
        flex: 1 1 auto !important;
        max-width: calc(100% - 300px) !important;
    }
}

body.icp-refined #sidebarMenu .menu-title,
body.icp-refined #sidebarMenu .sidebar-heading,
body.icp-refined #sidebarMenu .menu-title *,
body.icp-refined #sidebarMenu .sidebar-heading * {
    font-family: "Cinzel", Georgia, serif !important;
    font-size: 24px !important;
    font-weight: normal !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    color: #af9365 !important;
    line-height: 1.05 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.icp-refined #sidebarMenu .menu-title,
body.icp-refined #sidebarMenu .sidebar-heading {
    position: relative;
    margin: 18px 8px 10px !important;
    padding: 0 2px 10px !important;
}

body.icp-refined #sidebarMenu .menu-title::after,
body.icp-refined #sidebarMenu .sidebar-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0),
            rgba(146, 121, 70, 0.18) 14%,
            rgba(218, 186, 129, 0.78) 50%,
            rgba(146, 121, 70, 0.18) 86%,
            rgba(0, 0, 0, 0));
    box-shadow: 0 0 8px rgba(198, 162, 104, 0.18);
}

body.icp-refined #sidebarMenu .nav-link {
    min-height: 44px;
}

body.icp-refined input.form-control,
body.icp-refined textarea.form-control,
body.icp-refined select.form-control,
body.icp-refined .form-select,
body.icp-refined input[type="text"],
body.icp-refined input[type="email"],
body.icp-refined input[type="password"],
body.icp-refined input[type="search"],
body.icp-refined input[type="number"],
body.icp-refined input[type="url"] {
    background-image: none !important;
    background-repeat: no-repeat !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.icp-refined .h2,
body.icp-refined h1.h2,
body.icp-refined .card-header,
body.icp-refined .card-section-title {
    background-image: none !important;
}

body.icp-refined .card-header,
body.icp-refined .card-section-title {
    font-family: "Poppins", Arial, sans-serif !important;
}

@media (min-width: 768px) {
    body.icp-refined nav#sidebarMenu {
        flex: 0 0 300px !important;
        max-width: 300px !important;
        width: 300px !important;
    }

    body.icp-refined main {
        flex: 0 0 calc(100% - 300px) !important;
        max-width: calc(100% - 300px) !important;
        width: calc(100% - 300px) !important;
    }
}
