/* ==================================
   WebTHI Admin Panel - Style v8.0
   Premium Dark Mode Design System
   Google Font: Plus Jakarta Sans
================================== */

:root {
    --primary: #ff8c00;
    --primary-dark: #e07a00;
    --green: #00d4aa;
    --blue: #3b82f6;
    --red: #ff4757;
    --purple: #a855f7;
    --yellow: #fbbf24;

    --bg-main: #0f1117;
    --bg-sidebar: #090c13;
    --bg-card: rgba(255,255,255,0.025);
    --bg-input: rgba(255,255,255,0.04);

    --text-main: #f3f4f6;
    --text-secondary: #6b7280;
    --text-muted: #4b5563;

    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);

    --sidebar-width: 256px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
    --shadow-glow-primary: 0 0 18px rgba(255,140,0,0.18);
    --shadow-glow-green: 0 0 18px rgba(0,212,170,0.18);
}

/* ==================================
   Reset & Base
================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ==================================
   Layout Wrapper
================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==================================
   Sidebar
================================== */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Scrollbar */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-brand {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.sidebar-brand img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.sidebar-nav {
    padding: 12px 14px;
    flex: 1;
}

.nav-divider {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 8px 6px;
    user-select: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 3px;
    transition: all 0.22s ease;
    position: relative;
    cursor: pointer;
}

.nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.045);
}

.nav-item:hover i {
    transform: scale(1.12);
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(255,140,0,0.1);
    font-weight: 700;
}

.nav-item.active i {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 300;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
}

/* ==================================
   Main Content
================================== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main);
    min-width: 0;
    transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
    max-width: calc(100vw - var(--sidebar-width));
}

.admin-wrapper.no-sidebar .admin-main {
    margin-left: 0;
    max-width: 100vw;
}

/* ==================================
   Top Bar (Header)
================================== */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 36px;
    border-bottom: 1px solid var(--border);
    background: rgba(9,12,19,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 16px;
    flex: 1;
    max-width: 360px;
    transition: border-color 0.2s;
}

.search-container:focus-within {
    border-color: var(--primary);
}

.search-container .search-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-container input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.875rem;
    flex: 1;
    caret-color: var(--primary);
}

.search-container input::placeholder { color: var(--text-muted); }

.search-shortcut {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

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

.notification-bell {
    position: relative;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.notification-bell:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bell-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 7px; height: 7px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.user-profile-trigger:hover {
    background: rgba(255,255,255,0.04);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.u-name {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.u-status {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.u-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a2035;
    border: 2px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.u-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================================
   Admin Content Area
================================== */
.admin-content {
    padding: 36px;
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ==================================
   Page Header (inside content)
================================== */
.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.admin-title p {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ==================================
   Cards
================================== */
.card-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.card-box:hover {
    border-color: var(--border-hover);
}

/* Grids de Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bento-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Stat Card */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* Botões rápidos e de ação */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #000 !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.22s;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.25);
    border: none;
    cursor: pointer;
}

.btn-add:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.25s ease;
    color: var(--text-main);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-action-btn.primary {
    background: rgba(255, 140, 0, 0.05);
    border-color: rgba(255, 140, 0, 0.2);
    color: var(--primary);
}

.quick-action-btn.primary:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--primary);
}

.quick-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.7;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

/* ==================================
   Alerts
================================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: rgba(0,212,170,0.08);
    color: var(--green);
    border: 1px solid rgba(0,212,170,0.2);
}

.alert-error {
    background: rgba(255,71,87,0.08);
    color: var(--red);
    border: 1px solid rgba(255,71,87,0.2);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================
   Modals
================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.modal-content form {
    padding: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================================
   Buttons
================================== */
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: #000;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255,140,0,0.25);
    white-space: nowrap;
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.35);
    color: #000;
}

.btn-save:active {
    transform: translateY(0);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-cancel:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}

/* ==================================
   Forms
================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.input-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
    background: rgba(255,255,255,0.06);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* ==================================
   Premium Select (Native)
================================== */
select,
select.input-field {
    width: 100%;
    background-color: rgba(255,255,255,0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 11px 40px 11px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.22s, box-shadow 0.22s, background-color 0.22s;
    outline: none;
}

select:hover {
    border-color: var(--border-hover);
    background-color: rgba(255,255,255,0.06);
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,140,0,0.12);
    background-color: rgba(255,255,255,0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
    background: #111827;
    color: var(--text-main);
    font-weight: 500;
    padding: 10px;
}

select option:checked,
select option:hover {
    background: rgba(255,140,0,0.15);
    color: var(--primary);
}

/* ==========================
   TOM SELECT Premium (Dark)
   ========================== */
.ts-wrapper {
    width: 100%;
}

.ts-control,
.ts-wrapper.single .ts-control,
.ts-wrapper.focus .ts-control {
    background-color: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
    padding: 11px 40px 11px 14px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: border-color 0.22s, box-shadow 0.22s, background-color 0.22s !important;
    min-height: unset !important;
    cursor: pointer !important;
}

.ts-wrapper.single .ts-control::after {
    content: none !important;
}

.ts-wrapper.single .ts-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}

.ts-wrapper:not(.focus) .ts-control:hover {
    border-color: var(--border-hover) !important;
    background-color: rgba(255,255,255,0.06) !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.12) !important;
    background-color: rgba(255,255,255,0.06) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}

.ts-wrapper .ts-control > input {
    color: var(--text-main) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
}

.ts-dropdown {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) !important;
    color: var(--text-main) !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    animation: tsDropdownIn 0.15s ease-out !important;
}

@keyframes tsDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ts-dropdown .ts-dropdown-content {
    padding: 6px !important;
    max-height: 260px !important;
}

.ts-dropdown .option {
    padding: 10px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: background 0.15s, color 0.15s !important;
    cursor: pointer !important;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background: rgba(255,140,0,0.1) !important;
    color: var(--primary) !important;
}

.ts-dropdown .option.selected {
    background: rgba(255,140,0,0.15) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.ts-dropdown .optgroup-header {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text-muted) !important;
    padding: 10px 14px 6px !important;
}

.ts-wrapper.multi .ts-control .item {
    background: rgba(255,140,0,0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(255,140,0,0.25) !important;
    border-radius: 6px !important;
    padding: 2px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.ts-wrapper.disabled .ts-control {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Premium Toggle (radio group) */
.premium-toggle-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-toggle {
    cursor: pointer;
}

.premium-toggle input[type="radio"] {
    display: none;
}

.premium-toggle .toggle-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.premium-toggle input:checked + .toggle-content {
    border-color: var(--primary);
    background: rgba(255,140,0,0.1);
    color: var(--text-main);
    box-shadow: 0 0 0 1px rgba(255,140,0,0.2);
}

.premium-toggle .toggle-content:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
}

/* ==================================
   Tables
================================== */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
    white-space: nowrap;
}

.modern-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
    color: var(--text-main);
}

.modern-table tbody tr {
    transition: background 0.15s;
}

.modern-table tbody tr:hover {
    background: rgba(255,255,255,0.025);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================================
   Badges
================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-green  { background: rgba(0,212,170,0.12); color: var(--green); }
.badge-red    { background: rgba(255,71,87,0.12); color: var(--red); }
.badge-orange { background: rgba(255,140,0,0.12); color: var(--primary); }
.badge-blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.badge-gray   { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* ==================================
   Utility
================================== */
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--primary); }
.text-blue   { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-muted  { color: var(--text-secondary); }

/* ==================================
   Responsive / Mobile
================================== */
@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.5);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .admin-main {
        margin-left: 0;
        max-width: 100vw;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .admin-topbar {
        padding: 14px 20px;
        padding-left: 68px;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        gap: 14px;
    }

    .admin-title h1 {
        font-size: 1.4rem;
    }

    .user-details { display: none; }
    .search-container { max-width: none; }

    .premium-toggle-group { flex-direction: column; }
}

/* ==================================
   Animations
================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-content {
    animation: fadeUp 0.35s ease-out;
}

/* ==================================
   Action Buttons (Small)
================================== */
.btn-action-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.btn-action-small::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.btn-action-small:hover::after { opacity: 1; }

/* Editar */
.btn-action-small.btn-edit {
    color: #FF8C00;
    border-color: rgba(255,140,0,0.15);
    background: rgba(255,140,0,0.06);
}
.btn-action-small.btn-edit:hover {
    background: rgba(255,140,0,0.14);
    border-color: rgba(255,140,0,0.5);
    color: #FFAB40;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,140,0,0.2), 0 0 0 1px rgba(255,140,0,0.15);
}

/* Visão 360º — pill compacto */
.btn-action-small.btn-view {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #60A5FA;
    border-color: rgba(59,130,246,0.2);
    background: rgba(59,130,246,0.07);
    border-radius: 20px;
}
.btn-action-small.btn-view:hover {
    background: rgba(59,130,246,0.16);
    border-color: rgba(59,130,246,0.55);
    color: #93C5FD;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.22), 0 0 0 1px rgba(59,130,246,0.15);
}

/* Excluir */
.btn-action-small.btn-delete {
    color: #F87171;
    border-color: rgba(239,68,68,0.15);
    background: rgba(239,68,68,0.05);
}
.btn-action-small.btn-delete:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.5);
    color: #FCA5A5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239,68,68,0.2), 0 0 0 1px rgba(239,68,68,0.15);
}
/* ==================================
   Sidebar Dropdown
================================== */
.sidebar-dropdown {
    display: flex;
    flex-direction: column;
}
.sidebar-dropdown .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s;
}
.sidebar-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    margin-top: 5px;
    margin-bottom: 5px;
}
.sidebar-dropdown.active .dropdown-menu {
    display: flex;
}
.dropdown-item {
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.dropdown-item:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.03);
}
