/* kooma/admin.css — Painel administrativo Kooma
   Identidade Kooma (kooma.com.br): roxo #310072 / #12002A, laranja #FF5E00 / #FF8533, Montserrat.
   Tema claro (padrão) e escuro via html[data-theme="dark"] — ver theme_boot.php. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Marca */
    --kooma-purple: #310072;
    --kooma-night: #12002A;
    --kooma-orange: #FF5E00;
    --kooma-orange-alt: #FF8533;
    --kooma-gradient: linear-gradient(90deg, #FF5E00, #FF8533);

    /* Tokens de tema (claro) */
    --primary: #FF5E00;
    --primary-hover: #E65500;
    --primary-light: #FF8533;
    --primary-bg: #FFF1E8;
    --primary-glow: rgba(255, 94, 0, 0.28);
    --brand: #310072;
    --brand-soft: #F2ECFB;

    --bg-body: #F6F4FA;
    --white: #FFFFFF;          /* superfície (cards, tabelas) — mantém o nome usado nas páginas */
    --surface: #FFFFFF;
    --surface-2: #F9F7FC;
    --border: #ECE7F3;
    --dark: #1C1530;           /* títulos */
    --text-main: #2A2140;
    --text-light: #6B6280;
    --text-muted: #9A92AD;

    --success: #16A34A;
    --success-bg: #E8F7EE;
    --danger: #DC2626;
    --danger-bg: #FDECEC;
    --info: #2563EB;
    --info-bg: #EAF1FE;
    --warning-bg: #FFF7E0;
    --warning-border: #FCE7A8;
    --warning-text: #8A5A00;
    --success-text: #166534;
    --danger-text: #991B1B;
    --info-text: #1E40AF;

    --sidebar-bg: linear-gradient(180deg, #310072 0%, #1E0047 55%, #12002A 100%);
    --sidebar-text: rgba(255, 255, 255, 0.72);

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(28, 21, 48, 0.04), 0 6px 24px rgba(49, 0, 114, 0.06);
    --shadow-hover: 0 12px 32px rgba(49, 0, 114, 0.12);
    --sidebar-width: 264px;
    --header-height: 72px;
    --transition: 0.25s ease;
    --font: 'Montserrat', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

    color-scheme: light;
}

html[data-theme="dark"] {
    --primary-bg: rgba(255, 94, 0, 0.14);
    --primary-glow: rgba(255, 94, 0, 0.35);
    --brand-soft: rgba(140, 92, 255, 0.14);

    --bg-body: #0D0720;
    --white: #19102F;
    --surface: #19102F;
    --surface-2: #221740;
    --border: rgba(255, 255, 255, 0.08);
    --dark: #F5F2FB;
    --text-main: #E6E1F2;
    --text-light: #A79DC0;
    --text-muted: #7D7396;

    --success: #4ADE80;
    --success-bg: rgba(74, 222, 128, 0.12);
    --danger: #F87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --info: #7AA7FF;
    --info-bg: rgba(122, 167, 255, 0.12);
    --warning-bg: rgba(250, 204, 21, 0.1);
    --warning-border: rgba(250, 204, 21, 0.25);
    --warning-text: #FCD34D;
    --success-text: #4ADE80;
    --danger-text: #FCA5A5;
    --info-text: #93C5FD;

    --sidebar-bg: linear-gradient(180deg, #1A0640 0%, #12002A 60%, #0A0018 100%);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    margin: 0;
    display: flex;
    height: 100vh;
    color: var(--text-main);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
}

button, input, select, textarea { font-family: inherit; }

a { color: var(--primary); }

::selection { background: var(--primary); color: #fff; }

/* ===== Logo Kooma (mesmo desenho do kooma.com.br, em unidades relativas) ===== */
.kooma-logo {
    font-family: var(--font);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: var(--kooma-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    --logo-o: #fff;
}

.kooma-logo .o-symbol {
    color: var(--logo-o);
    position: relative;
    margin: 0 0.03em;
}

.kooma-logo .o-symbol::before,
.kooma-logo .o-symbol::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 0.085em solid transparent;
    border-top-color: var(--logo-o);
}

.kooma-logo .o-symbol::before { top: -0.12em; width: 0.28em; height: 0.28em; }
.kooma-logo .o-symbol::after  { top: -0.27em; width: 0.52em; height: 0.52em; }

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    position: relative;
    z-index: 100;
    color: #fff;
}

.brand {
    min-height: var(--header-height);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand .kooma-logo { font-size: 30px; padding-top: 6px; }

.brand-client {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.brand-client strong { color: rgba(255, 255, 255, 0.9); font-weight: 700; }

/* Compat: páginas antigas com <h3>Pneu<span>Zago</span></h3> */
.brand h3 { margin: 0; font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.brand h3 span { color: var(--kooma-orange); }

.nav-menu {
    flex: 1;
    padding: 18px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.menu-item {
    padding: 11px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background var(--transition), color var(--transition);
    border-radius: 10px;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.menu-item.active {
    background: var(--kooma-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255, 94, 0, 0.35);
}

.menu-item i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.menu-item.menu-external {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 10px 10px;
    padding-top: 16px;
}

.sidebar-footer {
    padding: 14px 28px 18px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-weight: 600; }
.sidebar-footer a:hover { color: var(--kooma-orange-alt); }

/* Mobile Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 0, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    }
}

/* ===== Área principal ===== */
.wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.top-header {
    height: var(--header-height);
    flex-shrink: 0;
    background: var(--surface) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    z-index: 50;
    gap: 12px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.toggle-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
    color: var(--text-main);
    cursor: pointer;
    display: none;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
    .top-header { padding: 0 16px; }
}

.welcome-msg { min-width: 0; }

.welcome-msg h2 {
    margin: 0;
    font-size: 19px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-msg p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .welcome-msg p { display: none; }
    .welcome-msg h2 { font-size: 16px; }
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    text-decoration: none;
    font-size: 15px;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--primary-bg);
    border-color: transparent;
    color: var(--primary);
}

/* Botão de tema */
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.user-menu { position: relative; display: inline-block; }

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: var(--surface);
    min-width: 210px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.dropdown-header strong { color: var(--dark); }

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 16px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--primary-bg);
    color: var(--primary) !important;
}

.user-menu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 20px;
    z-index: 999;
}

.user-menu:hover .dropdown-content,
.dropdown-content:hover {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.notification-wrapper { position: relative; }

.notification-wrapper .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--kooma-gradient) !important;
    color: #fff !important;
    border-radius: 50px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    border: 2px solid var(--surface);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .main-content { padding: 20px 16px; }
}

/* ===== Cards de estatística ===== */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-bg);
    box-shadow: var(--shadow-hover);
}

.stat-info h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.stat-info h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
}

/* ===== Tabelas ===== */
.table-container {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow-x: auto;
}

@media (max-width: 900px) {
    .table-container { padding: 16px; }
}

.product-thumbnail {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: #fff;
    transition: transform 0.2s;
}

.product-thumbnail:hover {
    transform: scale(2.5);
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.no-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    border: 1px dashed var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 19px;
    color: var(--dark);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

th {
    text-align: left;
    padding: 12px 18px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    padding: 16px 18px;
    background: var(--surface);
    color: var(--text-main);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: background var(--transition);
}

tr:hover > td { background: var(--surface-2); }

td:first-child {
    border-left: 1px solid var(--border);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

td:last-child {
    border-right: 1px solid var(--border);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Tabelas largas rolam na horizontal no celular */
@media (max-width: 900px) {
    .main-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== Botões e badges ===== */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active { background: var(--success-bg); color: var(--success); }
.status-badge.inactive { background: var(--danger-bg); color: var(--danger); }

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    transition: 0.2s;
    margin-right: 5px;
    text-decoration: none;
    font-size: 14px;
}

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

.btn-action.edit { background: var(--info-bg); color: var(--info); }
.btn-action.delete { background: var(--danger-bg); color: var(--danger); }

.btn-text {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    width: auto;
    height: auto;
    letter-spacing: 0.02em;
}

.btn-text:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-text:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
    background: var(--kooma-gradient);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-blue { background: #2563EB; color: #fff; }
.btn-green { background: #16A34A; color: #fff; }
.btn-red { background: #DC2626; color: #fff; }
.btn-gray { background: #6B6280; color: #fff; }

/* Banner Manager */
.banner-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.banner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.banner-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.banner-card .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #DC2626;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.banner-card .remove-btn:hover { background: #DC2626; color: #fff; }

.price-installment { color: var(--danger); font-weight: 600; }
.price-cash { color: var(--primary); font-weight: 700; }

/* Paginação */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.page-link:hover { background: var(--primary-bg); color: var(--primary); }

.page-link.active {
    background: var(--kooma-gradient);
    color: #fff;
    border-color: transparent;
}

.page-dots { padding: 0 5px; color: var(--text-muted); }

/* ===== Formulários ===== */
.form-card { overflow: hidden; }

.section-title {
    clear: both;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--dark);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="search"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
    background: var(--surface-2);
    color: var(--dark);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-bg);
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    background: var(--surface-2);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-zone i { font-size: 40px; color: var(--text-muted); margin-bottom: 15px; }
.upload-zone p { margin: 5px 0; color: var(--text-light); font-size: 14px; }
.upload-zone small { display: block; color: var(--text-muted); margin-top: 5px; font-size: 12px; }

.preview-container { margin-top: 20px; text-align: center; }

.btn-upload-trigger {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 15px;
    pointer-events: none;
}

/* Settings Header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.settings-header h2 { margin: 0; font-size: 18px; color: var(--dark); font-weight: 700; }

.settings-header .btn-icon-save {
    background: var(--kooma-gradient);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 17px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.settings-header .btn-icon-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--primary-glow);
}

/* ===== Serviços ===== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 32px;
    align-items: flex-start;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: calc(33.333% - 16px);
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 1100px) { .service-card { max-width: calc(50% - 12px); } }
@media (max-width: 700px)  { .service-card { max-width: 100%; } }

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card.is-premium { border-color: #F5B700; }

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--dark); }

.premium-badge {
    background: rgba(245, 183, 0, 0.14);
    color: #C99200;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-price-box { margin-bottom: 26px; }

.price-old-svc {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.price-current-svc { font-size: 27px; font-weight: 800; color: var(--dark); }
.price-current-svc small { font-size: 14px; font-weight: 500; color: var(--text-muted); }

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.btn-edit-svc {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-del-svc { color: var(--text-muted); font-size: 16px; transition: 0.2s; }
.btn-del-svc:hover { color: var(--danger); }

/* ===== Formulários estilo modal ===== */
.modal-form-header { margin-bottom: 30px; }
.modal-form-header h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0; }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group { flex: 1; }

.label-bold {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.04em;
}

.input-styled {
    background: var(--surface-2) !important;
    border: 1.5px solid var(--border) !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: var(--dark) !important;
}

.input-styled:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-bg) !important;
}

.checkbox-styled {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.checkbox-styled input { width: 20px; height: 20px; accent-color: var(--primary); }

.form-actions-styled {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-cancel {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
}

.btn-save-red {
    background: var(--kooma-gradient);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px var(--primary-glow);
    transition: 0.2s;
}

.btn-save-red:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--primary-glow); }

/* Badges genéricos */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 900px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ======================================================================
   TEMA ESCURO — compatibilidade com cores fixas escritas nas páginas.
   Muitas telas têm background/cores no próprio HTML (style="..."); estas
   regras trazem esses blocos para a paleta escura sem reescrever cada página.
   ====================================================================== */
html[data-theme="dark"] .main-content [style*="background: white"],
html[data-theme="dark"] .main-content [style*="background:white"],
html[data-theme="dark"] .main-content [style*="background: #fff;"],
html[data-theme="dark"] .main-content [style*="background:#fff;"],
html[data-theme="dark"] .main-content [style*="background: #fff\""],
html[data-theme="dark"] .main-content [style*="background: #ffffff"],
html[data-theme="dark"] .main-content [style*="background:#ffffff"],
html[data-theme="dark"] .main-content [style*="background: #FFF"],
html[data-theme="dark"] .main-content [style*="background-color: white"],
html[data-theme="dark"] .main-content [style*="background-color: #fff"],
html[data-theme="dark"] .main-content [style*="background-color:#fff"] {
    background: var(--surface) !important;
    color: var(--text-main);
}

html[data-theme="dark"] .main-content [style*="background: #f8f9fa"],
html[data-theme="dark"] .main-content [style*="background:#f8f9fa"],
html[data-theme="dark"] .main-content [style*="background: #f9f9f9"],
html[data-theme="dark"] .main-content [style*="background: #fafafa"],
html[data-theme="dark"] .main-content [style*="background: #f5f5f5"],
html[data-theme="dark"] .main-content [style*="background: #f4f7fc"],
html[data-theme="dark"] .main-content [style*="background:#f4f7fc"],
html[data-theme="dark"] .main-content [style*="background: #f0f0f0"],
html[data-theme="dark"] .main-content [style*="background: #eee"],
html[data-theme="dark"] .main-content [style*="background: #f1f1f1"],
html[data-theme="dark"] .main-content [style*="background: #fdfdfd"] {
    background: var(--surface-2) !important;
    color: var(--text-main);
}

/* Textos escuros fixos -> texto claro */
html[data-theme="dark"] .main-content [style*="color: #333"],
html[data-theme="dark"] .main-content [style*="color:#333"],
html[data-theme="dark"] .main-content [style*="color: #222"],
html[data-theme="dark"] .main-content [style*="color: #000"],
html[data-theme="dark"] .main-content [style*="color: #1a1a1a"],
html[data-theme="dark"] .main-content [style*="color: #2c3e50"],
html[data-theme="dark"] .main-content [style*="color:#2c3e50"],
html[data-theme="dark"] .main-content [style*="color: #37474f"],
html[data-theme="dark"] .main-content [style*="color: #263238"],
html[data-theme="dark"] .main-content [style*="color: #444"],
html[data-theme="dark"] .main-content [style*="color: #555"],
html[data-theme="dark"] .main-content [style*="color: var(--dark)"] {
    color: var(--text-main) !important;
}

html[data-theme="dark"] .main-content [style*="color: #666"],
html[data-theme="dark"] .main-content [style*="color:#666"],
html[data-theme="dark"] .main-content [style*="color: #777"],
html[data-theme="dark"] .main-content [style*="color: #888"],
html[data-theme="dark"] .main-content [style*="color: #999"],
html[data-theme="dark"] .main-content [style*="color:#999"],
html[data-theme="dark"] .main-content [style*="color: #7f8c8d"],
html[data-theme="dark"] .main-content [style*="color: #6c757d"] {
    color: var(--text-light) !important;
}

/* Bordas claras fixas */
html[data-theme="dark"] .main-content [style*="border: 1px solid #eee"],
html[data-theme="dark"] .main-content [style*="border: 1px solid #ddd"],
html[data-theme="dark"] .main-content [style*="border:1px solid #ddd"],
html[data-theme="dark"] .main-content [style*="border: 1px solid #e0e0e0"],
html[data-theme="dark"] .main-content [style*="border: 1px solid #f0f0f0"],
html[data-theme="dark"] .main-content [style*="border-bottom: 1px solid #eee"],
html[data-theme="dark"] .main-content [style*="border-bottom: 1px solid #f0f0f0"],
html[data-theme="dark"] .main-content [style*="border-top: 1px solid #eee"] {
    border-color: var(--border) !important;
}

/* Campos de formulário fora de .form-group */
html[data-theme="dark"] .main-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="color"]),
html[data-theme="dark"] .main-content select,
html[data-theme="dark"] .main-content textarea {
    background-color: var(--surface-2) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .main-content input::placeholder,
html[data-theme="dark"] .main-content textarea::placeholder { color: var(--text-muted); }

/* Títulos genéricos */
html[data-theme="dark"] .main-content h1,
html[data-theme="dark"] .main-content h2,
html[data-theme="dark"] .main-content h3,
html[data-theme="dark"] .main-content h4,
html[data-theme="dark"] .main-content h5,
html[data-theme="dark"] .main-content label { color: var(--dark); }

html[data-theme="dark"] .main-content hr { border-color: var(--border); }

/* Caixas de alerta/aviso claras (amarelo/verde/vermelho/azul) ficam translúcidas */
html[data-theme="dark"] .main-content [style*="background: #fff3cd"],
html[data-theme="dark"] .main-content [style*="background:#fff3cd"],
html[data-theme="dark"] .main-content [style*="background: #fff8e1"],
html[data-theme="dark"] .main-content [style*="background: #fffbeb"] {
    background: var(--warning-bg) !important;
    color: #FCD34D !important;
    border-color: rgba(250, 204, 21, 0.25) !important;
}

html[data-theme="dark"] .main-content [style*="background:#d4edda"],
html[data-theme="dark"] .main-content [style*="background: #d4edda"],
html[data-theme="dark"] .main-content [style*="background: #e8f5e9"],
html[data-theme="dark"] .main-content [style*="background:#e8f5e9"] {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

html[data-theme="dark"] .main-content [style*="background: #f8d7da"],
html[data-theme="dark"] .main-content [style*="background:#f8d7da"],
html[data-theme="dark"] .main-content [style*="background: #ffebee"],
html[data-theme="dark"] .main-content [style*="background:#ffebee"] {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: rgba(248, 113, 113, 0.25) !important;
}

html[data-theme="dark"] .main-content [style*="background: #e3f2fd"],
html[data-theme="dark"] .main-content [style*="background:#e3f2fd"],
html[data-theme="dark"] .main-content [style*="background: #e7f3ff"] {
    background: var(--info-bg) !important;
    color: var(--info) !important;
}
