/**
 * PhantomOld — design tokens & base utilities
 * Accent:  linear-gradient(135deg, #FF9F00 0%, #ff8c00 100%)
 * Surface: linear-gradient(135deg, #0b0a05 0%, #17160d 100%)
 * Panel:   surface + border-left 4px solid #FF9F00
 */

:root {
    --po-accent: #FF9F00;
    --po-accent-dark: #e68a00;
    --po-accent-end: #ff8c00;
    --po-surface-0: #0b0a05;
    --po-surface-1: #17160d;
    --po-surface-2: #1f1e14;
    --po-border: #272618;
    --po-border-soft: rgba(255, 159, 0, 0.15);
    --po-text: #ccc;
    --po-text-muted: #888;
    --po-text-bright: #fff;
    --po-text-on-accent: #000;
    --po-success: #28a745;
    --po-danger: #dc3545;
    --po-info: #17a2b8;
    --po-warning: #ffc107;
    --po-radius: 8px;
    --po-radius-sm: 6px;
    --po-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --po-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --po-gradient-accent: linear-gradient(135deg, #FF9F00 0%, #ff8c00 100%);
    --po-gradient-surface: linear-gradient(135deg, #0b0a05 0%, #17160d 100%);
    --po-gradient-footer: linear-gradient(135deg, #000 0%, #0b0a05 100%);
    --po-gradient-header: linear-gradient(180deg, rgba(0, 0, 0, 0.97) 0%, rgba(11, 10, 5, 0.92) 100%);
    --po-font: Poppins, system-ui, -apple-system, sans-serif;
}

/* Neutralize legacy green navbar when modern shell is active */
html.po-root .nav-nac .nav-item .nav-link,
html.po-root .btn-contato,
html.po-root .btn-simule {
    /* legacy template leftovers — not used in po-header */
}

html.po-root {
    overflow: auto;
    height: auto;
    background-color: #010103;
    background-image: url(../images/background/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body.po-body {
    font-family: var(--po-font);
    padding-top: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--po-text);
}

/* Shared surfaces */
.po-gradient-accent {
    background: var(--po-gradient-accent);
}

.po-gradient-surface {
    background: var(--po-gradient-surface);
}

.po-panel {
    background: var(--po-gradient-surface);
    border-left: 4px solid var(--po-accent);
    border-radius: var(--po-radius);
    box-shadow: var(--po-shadow-sm);
}

.po-panel--info { border-left-color: var(--po-info); }
.po-panel--danger { border-left-color: var(--po-danger); }
.po-panel--success { border-left-color: var(--po-success); }
.po-panel--warning { border-left-color: var(--po-warning); }

/* Modern box shell (sidebars + main pages) */
.po-root .box,
.po-root .main-container.box {
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid var(--po-border);
    border-radius: var(--po-radius);
    box-shadow: var(--po-shadow);
}

.po-root .left-header,
.po-root .right-header,
.po-root .po-sidebar__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--po-text-on-accent);
    background: var(--po-gradient-accent);
    border-bottom: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.po-root .left-header i,
.po-root .right-header i,
.po-root .po-sidebar__title i {
    color: var(--po-text-on-accent);
    opacity: 0.9;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.po-root .leftbarcontent,
.po-root .rightbarcontent {
    padding: 8px 0;
}

/* Buttons */
.po-root .btn-orange {
    background: var(--po-gradient-accent);
    border: none;
    color: var(--po-text-on-accent);
    font-weight: 700;
    border-radius: var(--po-radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.po-root .btn-orange:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #FF9F00 100%);
    color: var(--po-text-on-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.35);
}

.po-root .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

/* Tables — unified look inside modern shell */
.po-root .main-container .table thead tr,
.po-root .po-table-dark thead tr {
    background: var(--po-gradient-accent);
}

.po-root .main-container .table thead th {
    color: var(--po-text-on-accent);
    font-weight: 700;
    border: none;
    font-size: 13px;
}

.po-root .main-container .table tbody tr:nth-child(odd) {
    background: var(--po-surface-1);
}

.po-root .main-container .table tbody tr:nth-child(even) {
    background: var(--po-surface-0);
}

.po-root .main-container .table tbody tr:hover {
    background: var(--po-surface-2);
}

.po-root .main-container .table td,
.po-root .main-container .table th {
    border-color: var(--po-border);
    color: var(--po-text);
    vertical-align: middle;
}

.po-root .main-container .table td a {
    color: var(--po-accent);
    font-weight: 600;
    text-decoration: none;
}

.po-root .main-container .table td a:hover {
    color: var(--po-text-bright);
}

/* Form controls */
.po-root .form-control,
.po-root .main-container .form-control {
    background-color: var(--po-surface-0);
    border: 1px solid var(--po-border);
    border-radius: var(--po-radius-sm);
    color: var(--po-text-bright);
    color-scheme: dark;
}

.po-root .form-control:focus {
    background-color: var(--po-surface-0);
    border-color: var(--po-accent);
    box-shadow: 0 0 0 2px rgba(255, 159, 0, 0.15);
    color: var(--po-text-bright);
}

.po-root input:-webkit-autofill,
.po-root input:-webkit-autofill:hover,
.po-root input:-webkit-autofill:focus,
.po-root input:-webkit-autofill:active,
.po-root textarea:-webkit-autofill,
.po-root textarea:-webkit-autofill:hover,
.po-root textarea:-webkit-autofill:focus,
.po-root textarea:-webkit-autofill:active,
.po-root select:-webkit-autofill,
.po-root select:-webkit-autofill:hover,
.po-root select:-webkit-autofill:focus,
.po-root select:-webkit-autofill:active {
    -webkit-text-fill-color: var(--po-text-bright) !important;
    caret-color: var(--po-text-bright);
    box-shadow: 0 0 0 1000px var(--po-surface-0) inset !important;
    -webkit-box-shadow: 0 0 0 1000px var(--po-surface-0) inset !important;
    transition: background-color 99999s ease-out 0s;
}

.po-root input:autofill,
.po-root textarea:autofill,
.po-root select:autofill {
    box-shadow: 0 0 0 1000px var(--po-surface-0) inset !important;
    -webkit-text-fill-color: var(--po-text-bright) !important;
    color: var(--po-text-bright) !important;
}
