/**
 * WebSpot Theme
 * Clean, modern, and efficient admin theme
 */

/* Variables */
:root {
    /* Colors - Standard */
    --ws-primary: #3b82f6;
    --ws-secondary: #64748b;
    --ws-success: #10b981;
    --ws-info: #06b6d4;
    --ws-warning: #f59e0b;
    --ws-danger: #ef4444;
    --ws-dark: #1e293b;
    --ws-light: #f8fafc;

    /* Colors - Extended */
    --ws-indigo: #6366f1;
    --ws-purple: #a855f7;
    --ws-pink: #ec4899;
    --ws-orange: #f97316;
    --ws-teal: #14b8a6;
    --ws-cyan: #22d3ee;
    --ws-lime: #84cc16;
    --ws-amber: #fbbf24;
    --ws-rose: #f43f5e;
    --ws-sky: #0ea5e9;
    --ws-emerald: #10b981;
    --ws-violet: #8b5cf6;
    
    /* Sidebar */
    --ws-sidebar-width: 220px;
    --ws-sidebar-narrow-width: 56px;
    --ws-sidebar-bg: #1e293b;
    --ws-sidebar-text: #e2e8f0;
    --ws-sidebar-hover: #334155;
    --ws-sidebar-active: #1d4ed8;
    
    /* Layout */
    --ws-header-height: 60px;
    --ws-footer-height: 50px;
    
    /* Transitions */
    --ws-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    background-color: #f1f5f9;
    width: 100%;
    overflow-x: hidden;
}


/* Reset all links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Layout Structure */
.ws-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar */
.ws-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--ws-sidebar-width);
    background: var(--ws-sidebar-bg);
    color: var(--ws-sidebar-text);
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}

.ws-sidebar.narrow {
    width: var(--ws-sidebar-narrow-width);
    overflow: visible !important;
}

/* Sidebar Brand */
.ws-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: var(--ws-header-height);
    position: relative;
    overflow: visible;
}

.ws-sidebar-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    flex: 1;
    min-width: 0;
}

.ws-sidebar-brand-text {
    margin-left: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    white-space: nowrap;
    font-size: 1.3rem;
    max-width: 140px;
    
    /* No ellipsis - text will be resized by JavaScript */
    overflow: visible;
}

.ws-sidebar.narrow .ws-sidebar-brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Logo styles */
.ws-sidebar-logo-icon {
}

.ws-sidebar-logo-full {
}

.ws-sidebar.narrow .ws-sidebar-logo-full {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin-left: 0 !important;
}

.ws-sidebar.narrow .ws-sidebar-brand-logo {
    justify-content: center;
}

/* Sidebar Toggle Button */
.ws-sidebar-toggle {
    background: none;
    border: none;
    color: var(--ws-sidebar-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.ws-sidebar-toggle:hover {
    background: var(--ws-sidebar-hover);
}

/* Toggle button when sidebar is narrow */
.ws-sidebar.narrow .ws-sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 20px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--ws-primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 50%;
}

.ws-sidebar.narrow .ws-sidebar-toggle:hover {
    transform: scale(1.1);
    background: #2563eb;
}

.ws-sidebar.narrow .ws-sidebar-toggle i {
    font-size: 12px;
}

/* Change icon when sidebar is narrow */
.ws-sidebar.narrow .ws-sidebar-toggle i.fa-bars::before {
    content: "\f054"; /* Font Awesome chevron-right */
}

/* Sidebar Navigation */
.ws-sidebar-nav {
    padding: 1rem 0;
}

.ws-nav-section {
    margin-bottom: 1.5rem;
}

.ws-nav-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.ws-sidebar.narrow .ws-nav-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.ws-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--ws-sidebar-text);
    text-decoration: none;
    position: relative;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.ws-nav-link:hover {
    background: var(--ws-sidebar-hover);
    border-radius: 0 8px 8px 0;
    margin-right: 4px;
}

.ws-nav-link.active {
    background: linear-gradient(135deg, var(--ws-sidebar-active) 0%, #2563eb 100%);
    color: white;
    border-radius: 0 12px 12px 0;
    margin-right: 8px;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
    font-weight: 600;
}

.ws-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ws-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.ws-nav-text {
    line-height: 1.2;
}

.ws-sidebar.narrow .ws-nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.ws-sidebar.narrow .ws-nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.ws-sidebar.narrow .ws-nav-icon {
    margin: 0;
}

/* Main Content Wrapper */
.ws-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--ws-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ws-sidebar.narrow ~ .ws-main {
    margin-left: var(--ws-sidebar-narrow-width);
}

/* Header */
.ws-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: var(--ws-header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: var(--ws-sidebar-width);
    right: 0;
    z-index: 900;
}

.ws-sidebar.narrow ~ .ws-main .ws-header {
    left: var(--ws-sidebar-narrow-width);
}

.ws-header-left {
    flex: 1;
}

.ws-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Products Menu */
.ws-products-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.ws-product-link {
    text-decoration: none !important;
    color: #94a3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-block;
    transform: scale(1);
}

.ws-product-link:hover {
    text-decoration: none !important;
    color: #64748b !important;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ws-product-link:visited,
.ws-product-link:active,
.ws-product-link:focus {
    text-decoration: none !important;
    color: #94a3b8 !important;
    outline: none;
}

.ws-product-link.active {
    color: #475569 !important;
    font-weight: 600;
}

.ws-product-link.active:hover {
    color: #475569 !important;
}

/* Mobile - smaller gap */
@media (max-width: 768px) {
    .ws-products-menu {
        gap: 1rem;
        margin-right: 1rem;
    }

    .ws-product-link {
        font-size: 0.7rem;
    }

    .ws-header-right {
        gap: 8px;
    }

    .ws-header-right > *,
    .ws-header-right .dropdown {
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .ws-header-right {
        gap: 6px;
    }
}

/* Content Area */
.ws-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    padding: calc(var(--ws-header-height) + 1.5rem) 1.5rem calc(var(--ws-footer-height) + 1.5rem) 1.5rem;
}

.ws-container {
    max-width: none;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Footer */
.ws-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    height: var(--ws-footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    position: fixed;
    bottom: 0;
    left: var(--ws-sidebar-width);
    right: 0;
    z-index: 900;
}

.ws-footer-left {
    flex: 1;
}

.ws-footer-right {
    flex-shrink: 0;
}

.ws-sidebar.narrow ~ .ws-footer {
    left: var(--ws-sidebar-narrow-width);
}

/* Cards */
.ws-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.ws-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.ws-card-body {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.stat-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.2;
    color: white;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.3;
}

.stat-card-footer {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.8;
    color: white;
    margin-top: auto;
}

.stat-card-footer a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s;
}

.stat-card-footer a:hover {
    opacity: 1;
}

/* Main Content Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-header-actions {
    font-size: 0.875rem;
    color: #64748b;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table th a {
    color: inherit !important;
    font-weight: inherit;
    text-transform: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    transition: all 0.2s;
}

.table th a:hover {
    color: #334155 !important;
}

.table th a:hover i {
    color: #334155 !important;
}

.table td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Modern Status Colors - 2026 palette */
.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(244, 63, 94, 0.25);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.25);
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.25);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.25);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.25);
}

/* Alternative modern status styles */
.status-active {
    background: linear-gradient(135deg, #00d084 0%, #00b574 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 208, 132, 0.2);
}

/* Mobile Toggle Button */
.ws-mobile-toggle {
    background: none;
    border: none;
    color: var(--ws-text-color);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-mobile-toggle:hover {
    background: var(--ws-background-color);
    color: var(--ws-primary-color);
}

.ws-mobile-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--ws-primary-color);
}

.ws-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.status-inactive {
    background: linear-gradient(135deg, #ff5757 0%, #ff3838 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 4px rgba(255, 87, 87, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, #ffb020 0%, #ff9500 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 4px rgba(255, 176, 32, 0.2);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #0066ff;
    border-color: #0066ff;
}

.btn-primary:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-info {
    background: #3b82f6;
    border-color: #3b82f6;
}

.btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
}

.page-header p {
    color: #64748b;
    margin-bottom: 0;
}

/* Client Selector */
.ws-client-selector {
    margin-right: 1rem;
}

.ws-client-selector-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.ws-client-selector-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Desktop only - min-width */
@media (min-width: 768px) {
    .ws-client-selector-btn {
        min-width: 200px;
    }
}

.ws-client-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.ws-client-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.ws-client-name {
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.125rem;
}

.ws-client-dropdown {
    min-width: 280px;
}

.ws-dropdown-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.ws-client-item {
    flex: 1;
}

.ws-client-item-name {
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
}

.ws-client-item-company {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.ws-client-item-timezone {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.125rem;
    font-family: monospace;
}

/* Server Time */
.ws-server-time {
    display: flex;
    align-items: center;
}

.ws-server-time-content {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
}

.ws-time-label {
    margin-right: 0.25rem;
    font-weight: 500;
}

.ws-time-value {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #334155;
    margin-right: 0.25rem;
}

.ws-time-zone {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.ws-dropdown-item.active {
    background: #f0f9ff;
    color: #0369a1;
}

.ws-dropdown-item.active .ws-client-item-name {
    color: #0369a1;
}

/* Refresh Button */
.ws-refresh-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: rotate(180deg);
}

.ws-refresh-btn:hover i {
    color: #334155 !important;
}

.ws-refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* Utilities */
.ws-text-muted {
    color: #64748b;
}

.ws-mb-0 { margin-bottom: 0; }
.ws-mb-1 { margin-bottom: 0.25rem; }
.ws-mb-2 { margin-bottom: 0.5rem; }
.ws-mb-3 { margin-bottom: 0.75rem; }
.ws-mb-4 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .ws-sidebar {
        transform: translateX(-100%) !important;
        width: var(--ws-sidebar-width, 220px) !important;
    }

    .ws-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Remove narrow no mobile - sidebar deve abrir completo com texto */
    .ws-sidebar.narrow {
        width: var(--ws-sidebar-width, 220px) !important;
    }

    .ws-main {
        margin-left: 0 !important;
    }

    .ws-header {
        left: 0 !important;
        width: 100% !important;
    }

    .ws-footer {
        left: 0 !important;
    }

    .ws-content {
        padding: calc(var(--ws-header-height) + 1rem) 1rem calc(var(--ws-footer-height) + 1rem) 1rem;
    }

    .ws-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

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

    /* Mobile header toggle */
    .ws-header-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        margin-right: 1rem;
    }

    /* Esconde a seta/botão toggle dentro do sidebar - controle apenas pelo header */
    .ws-sidebar .ws-sidebar-toggle,
    .ws-sidebar-brand .ws-sidebar-toggle,
    .ws-sidebar-toggle {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Mobile: Mostrar texto mesmo quando sidebar tem classe narrow */
    .ws-sidebar.narrow .ws-nav-text {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
    }

    .ws-sidebar.narrow .ws-sidebar-brand-text {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
    }

    .ws-sidebar.narrow .ws-nav-link {
        justify-content: flex-start !important;
        padding: 0.625rem 1rem !important;
    }

    .ws-sidebar.narrow .ws-nav-icon {
        margin-right: 0.75rem !important;
    }

    .ws-sidebar.narrow .ws-sidebar-brand-logo {
        justify-content: flex-start !important;
    }
}

/* Icons (using SVG) */
.ws-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Buttons */
.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.ws-btn-primary {
    background: var(--ws-primary);
    color: white;
    border-color: var(--ws-primary);
}

.ws-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Grid System */
.ws-row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.ws-col {
    padding: 0.5rem;
    flex: 1;
}

.ws-col-12 { flex: 0 0 100%; max-width: 100%; }
.ws-col-6 { flex: 0 0 50%; max-width: 50%; }
.ws-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.ws-col-3 { flex: 0 0 25%; max-width: 25%; }
.ws-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

@media (max-width: 768px) {
    .ws-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Stats Cards */
.ws-stats-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Card Styles Variations */
/* Style 1: Minimal Card */
.ws-card-minimal {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: all 0.2s;
}

.ws-card-minimal:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Style 2: Glass Card */
.ws-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Style 3: Gradient Border Card */
.ws-card-gradient {
    background: white;
    border-radius: 12px;
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ws-card-gradient::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 10px;
    z-index: 1;
}

.ws-card-gradient > * {
    position: relative;
    z-index: 2;
}

/* Style 4: Neumorphic Card */
.ws-card-neumorphic {
    background: #f0f4f8;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #c9ccd0, -20px -20px 60px #ffffff;
    border: none;
}

/* Style 5: Dark Card */
.ws-card-dark {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ws-card-dark .ws-card-header {
    border-bottom-color: #334155;
}

.ws-card-dark .ws-card-title {
    color: #f1f5f9;
}

/* Style 6: Colored Shadow Cards */
.ws-card-shadow-primary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.ws-card-shadow-success {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.ws-card-shadow-warning {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.ws-card-shadow-danger {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

/* Style 7: Icon Cards */
.ws-card-icon {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.ws-card-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ws-card-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.ws-card-icon-circle.primary {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

.ws-card-icon-circle.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ws-card-icon-circle.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ws-card-icon-circle.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ws-stats-card.primary { 
    background: var(--ws-primary); 
    color: white;
}

.ws-stats-card.success { 
    background: var(--ws-success); 
    color: white;
}

.ws-stats-card.info { 
    background: var(--ws-info); 
    color: white;
}

.ws-stats-card.warning { 
    background: var(--ws-warning); 
    color: white;
}

.ws-stats-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ws-stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.ws-stats-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.2;
}

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

.ws-table th {
    background: #f8fafc;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.ws-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.ws-table tr:hover {
    background: #f8fafc;
}

/* Badges */
.ws-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.ws-badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.ws-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.ws-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.ws-badge-light {
    background: #f3f4f6;
    color: #374151;
}

/* Dropdown */
.ws-dropdown {
    position: relative;
}

.ws-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.ws-dropdown.open .ws-dropdown-menu {
    display: block;
}

.ws-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #334155;
    text-decoration: none;
}

.ws-dropdown-item:hover {
    background: #f8fafc;
}

.ws-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* Card Header with Actions */
.ws-card-header.position-relative {
    position: relative;
}

.ws-card-header .position-absolute {
    z-index: 10;
}

.ws-card-header .dropdown-menu {
    min-width: 160px;
    z-index: 1050;
}

.ws-card-header .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.ws-card-header .dropdown-item:hover {
    background-color: #f8f9fa;
}

.ws-card-header .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* Logo Upload Styles */
.logo-upload-container {
    position: relative;
}

.logo-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
    min-height: 120px;
    position: relative;
    cursor: pointer;
}

.logo-drop-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.logo-drop-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    border-style: solid;
}

.logo-preview-container {
    position: relative;
    display: inline-block;
}

.logo-preview-image {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
}

.logo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.logo-upload-placeholder p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.logo-upload-placeholder small {
    font-size: 0.75rem;
    color: #6b7280;
}
/* ================================================
   Extended Color Utilities
   ================================================ */

/* Background Colors - Extended */
.bg-indigo { background-color: var(--ws-indigo) !important; }
.bg-purple { background-color: var(--ws-purple) !important; }
.bg-pink { background-color: var(--ws-pink) !important; }
.bg-orange { background-color: var(--ws-orange) !important; }
.bg-teal { background-color: var(--ws-teal) !important; }
.bg-cyan { background-color: var(--ws-cyan) !important; }
.bg-lime { background-color: var(--ws-lime) !important; }
.bg-amber { background-color: var(--ws-amber) !important; }
.bg-rose { background-color: var(--ws-rose) !important; }
.bg-sky { background-color: var(--ws-sky) !important; }
.bg-emerald { background-color: var(--ws-emerald) !important; }
.bg-violet { background-color: var(--ws-violet) !important; }

/* Text Colors - Extended */
.text-indigo { color: var(--ws-indigo) !important; }
.text-purple { color: var(--ws-purple) !important; }
.text-pink { color: var(--ws-pink) !important; }
.text-orange { color: var(--ws-orange) !important; }
.text-teal { color: var(--ws-teal) !important; }
.text-cyan { color: var(--ws-cyan) !important; }
.text-lime { color: var(--ws-lime) !important; }
.text-amber { color: var(--ws-amber) !important; }
.text-rose { color: var(--ws-rose) !important; }
.text-sky { color: var(--ws-sky) !important; }
.text-emerald { color: var(--ws-emerald) !important; }
.text-violet { color: var(--ws-violet) !important; }

/* Border Colors - Extended */
.border-indigo { border-color: var(--ws-indigo) !important; }
.border-purple { border-color: var(--ws-purple) !important; }
.border-pink { border-color: var(--ws-pink) !important; }
.border-orange { border-color: var(--ws-orange) !important; }
.border-teal { border-color: var(--ws-teal) !important; }
.border-cyan { border-color: var(--ws-cyan) !important; }
.border-lime { border-color: var(--ws-lime) !important; }
.border-amber { border-color: var(--ws-amber) !important; }
.border-rose { border-color: var(--ws-rose) !important; }
.border-sky { border-color: var(--ws-sky) !important; }
.border-emerald { border-color: var(--ws-emerald) !important; }
.border-violet { border-color: var(--ws-violet) !important; }

/* Extended badge colors with gradients */
.badge.bg-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}

.badge.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.25);
}

.badge.bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.25);
}

.badge.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.25);
}

.badge.bg-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.25);
}

.badge.bg-rose {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(251, 113, 133, 0.25);
}

.badge.bg-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.25);
}

.badge.bg-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(52, 211, 153, 0.25);
}

.badge.bg-sky {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(56, 189, 248, 0.25);
}

.badge.bg-cyan {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(34, 211, 238, 0.25);
}

.badge.bg-lime {
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%) !important;
    color: #1e293b !important;
    box-shadow: 0 2px 4px rgba(163, 230, 53, 0.25);
}

.badge.bg-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1e293b !important;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.25);
}

/* ===================================================================
   Summernote Editor - Fix para dropdowns (cores, fontes, estilos)
   Funciona com Summernote Lite e Summernote BS5
   =================================================================== */

/* Fix principal: garantir overflow visible em toda a estrutura */
.note-editor,
.note-editor.note-frame,
.note-editor.note-airframe,
.note-editor .note-toolbar,
.note-editor .note-toolbar .note-btn-group {
    overflow: visible !important;
}

/* Z-index alto para dropdowns aparecerem acima de tudo */
.note-editor .dropdown-menu,
.note-editor .note-dropdown-menu,
.note-editor .note-toolbar .dropdown-menu,
.note-toolbar .note-btn-group .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    overflow: visible !important;
}

/* Garantir que dropdowns abertos sejam visíveis */
.note-editor .note-btn-group.show > .dropdown-menu,
.note-editor .note-btn-group .dropdown-menu.show,
.note-editor .note-btn-group.open .dropdown-menu,
.note-toolbar .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Containers pai - usar seletores diretos (mais compatível que :has) */
.tab-pane,
.tab-content,
.card,
.card-body {
    overflow: visible;
}

/* Forçar overflow visible quando tem editor dentro */
.card:has(.note-editor),
.card-body:has(.note-editor),
.tab-pane:has(.note-editor),
.tab-content:has(.note-editor),
.webspot-editor-container {
    overflow: visible !important;
}

/* ========================================
   TAB OVERRIDES
   ======================================== */
[role="tablist"] {
    border-bottom: 2px solid #0d6efd;
    gap: 3px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 8px 8px 0 8px;
    position: relative;
}

[role="tab"].nav-link {
    padding: 7px 12px;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    background: transparent;
    color: #6c757d !important;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: none;
}

[role="tab"].nav-link:hover {
    color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.05) !important;
}

[role="tab"].nav-link.active {
    background: #ffffff !important;
    color: #0d6efd !important;
    font-weight: 600;
    border: 2px solid #0d6efd;
    border-bottom: none;
    margin-bottom: -2px;
    position: relative;
    z-index: 10;
    padding-bottom: 9px;
    box-shadow: none;
}

/* Cobre a linha azul embaixo da tab ativa */
[role="tab"].nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffffff;
    z-index: 11;
}

/* ========================================
   WEBSPOT TABS COMPONENT - RESPONSIVE
   ======================================== */

/* Nav container: holds tabs + overflow button */
.webspot-tabs-nav-container {
    position: relative;
    display: flex;
    align-items: stretch;
}

.webspot-tabs-nav-container > .nav-tabs {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* Scroll fade indicators */
.webspot-tabs-nav-container::before,
.webspot-tabs-nav-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 12;
}

.webspot-tabs-nav-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.webspot-tabs-nav-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

.webspot-tabs-nav-container.can-scroll-left::before {
    opacity: 1;
}

.webspot-tabs-nav-container.can-scroll-right::after {
    opacity: 1;
}

/* Custom scrollbar */
[role="tablist"]::-webkit-scrollbar {
    height: 3px;
}

[role="tablist"]::-webkit-scrollbar-track {
    background: transparent;
}

[role="tablist"]::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.3);
    border-radius: 3px;
}

[role="tablist"]::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.5);
}

/* Tab scroll arrows - matches tab height */
.webspot-tabs-arrow {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0 14px;
    color: #adb5bd;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
    line-height: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.webspot-tabs-arrow:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.06);
    border-color: rgba(13, 110, 253, 0.25);
}

/* Mobile responsive */
@media (max-width: 768px) {
    [role="tablist"] {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 6px 6px 0 6px;
    }

    [role="tab"].nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .webspot-tabs-nav-container::before,
    .webspot-tabs-nav-container::after {
        width: 20px;
    }
}

@media (max-width: 480px) {
    [role="tab"].nav-link {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}
