:root {
    /* Cores de fundo e texto principal (Dark Mode) */
    --background: #09090b;
    /* zinc-950 */
    --foreground: #fafafa;
    /* zinc-50 */

    /* Cores silenciadas (para subtítulos e borders) */
    --muted: #27272a;
    /* zinc-800 */
    --muted-foreground: #a1a1aa;
    /* zinc-400 */

    /* Input, Border e Ring (focus) */
    --border: #27272a;
    /* zinc-800 */
    --input: #171717;
    /* zinc-800 */
    --ring: #FF6600;
    /* Cor Master definida nas regras */

    /* Cor Primária Mestre #FF6600 */
    --primary: #FF6600;
    --primary-hover: #e65c00;
    --primary-foreground: #ffffff;

    /* Estilos globais do shadcn/ui revisados */
    --radius: 0.5rem;
    /* Bordas mais equilibradas (reduzido) */
}

/* Reset básico similar ao CSS nativo/Tailwind base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--background);
    /* Mesmo fundo em todo canto para estilo coeso */
    /* Para não ficar colado na esquerda (além do sidebar) usamos padding interno */
    padding: 0 32px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 16px;
        /* Reduz espaçamento horizontal */
    }
}

/* 
 * Utilitários Genéricos que podem ser reaproveitados em outras páginas 
 * seguindo a regra 1 (fazer classe para cada item) 
 */

/* Form Groups e Inputs Padrão */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
}

.form-input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-input:focus-visible {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
    /* Sombra com a cor master translúcida */
}

/* Select Padronizado */
.form-select {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-select:focus-visible {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

/* Botões Padronizados */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    /* Sombra base */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    opacity: 0.9;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary:active {
    transform: scale(0.99);
    /* Micro-interação ao clicar */
}
