/* Plataforma B2G — Gracias Design System Styles */
:root {
    --b2g-bg: #0f172a;
    --b2g-surface: #1e293b;
    --b2g-border: #334155;
    --b2g-brand: #4f46e5;
    --b2g-brand-hover: #4338ca;
    --b2g-text: #f1f5f9;
    --b2g-muted: #94a3b8;
}

body {
    background-color: var(--b2g-bg);
    color: var(--b2g-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Layout Container */
.b2g-shell {
    display: flex;
    min-height: 100vh;
}

.b2g-sidebar {
    width: 16rem;
    background-color: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.b2g-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.b2g-navbar {
    height: 4rem;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.b2g-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.b2g-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.b2g-badge-brand {
    background-color: rgba(79, 70, 229, 0.2);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.b2g-badge-success {
    background-color: rgba(5, 150, 105, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.b2g-badge-warning {
    background-color: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.b2g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    border: 1px solid transparent;
}

.b2g-btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
}

.b2g-btn-primary:hover {
    background-color: #4338ca;
}

.b2g-btn-secondary {
    background-color: #334155;
    color: #f1f5f9;
}

.b2g-btn-secondary:hover {
    background-color: #475569;
}

.b2g-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.b2g-form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.b2g-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.b2g-table th {
    padding: 0.75rem 1rem;
    background-color: #0f172a;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid #334155;
}

.b2g-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #1e293b;
    font-size: 0.875rem;
}

.b2g-table tr:hover td {
    background-color: rgba(51, 65, 85, 0.4);
}

/* SVG Icon Sizing Protection for Shell & Navigation */
svg {
    max-width: 100%;
}
svg.w-4, .w-4 {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}
svg.w-5, .w-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
}
svg.w-6, .w-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
    flex-shrink: 0;
}
.b2g-sidebar svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}
