/**
 * Orion ERP - Estilos Principais
 * Conversão completa de TailwindCSS + CSS customizado para CSS puro
 */

/* ============================================
   RESET E BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   VARIÁVEIS CSS (HSL)
   ============================================ */

:root {
    /* Core surfaces */
    --background: 210 40% 5%;
    --foreground: 210 20% 96%;
    
    --card: 210 32% 8%;
    --card-foreground: 210 20% 96%;
    
    --popover: 210 40% 6%;
    --popover-foreground: 210 20% 96%;
    
    /* Brand colors */
    --primary: 164 86% 52%;
    --primary-foreground: 210 40% 6%;
    
    --secondary: 160 18% 18%;
    --secondary-foreground: 210 20% 96%;
    
    --muted: 210 24% 14%;
    --muted-foreground: 215 16% 70%;
    
    --accent: 210 24% 14%;
    --accent-foreground: 210 20% 96%;
    
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    
    --border: 210 18% 18%;
    --input: 210 18% 20%;
    --ring: 164 86% 52%;
    
    --radius: 0.9rem;
    
    /* Sidebar specific */
    --sidebar-background: 210 32% 7%;
    --sidebar-foreground: 210 18% 92%;
    --sidebar-primary: 164 86% 52%;
    --sidebar-primary-foreground: 210 40% 6%;
    --sidebar-accent: 160 18% 18%;
    --sidebar-accent-foreground: 210 20% 96%;
    --sidebar-border: 210 18% 18%;
    --sidebar-ring: 164 86% 52%;
    
    /* Orion extras */
    --orion-accent: 164 86% 52%;
    --orion-accent-soft: 158 76% 42%;
    --orion-indigo: 268 88% 60%;
    --orion-surface: 210 28% 7%;
    --orion-surface-elevated: 210 26% 10%;
    --orion-border-subtle: 210 18% 20%;
    --orion-success: 142 72% 45%;
    --orion-warning: 38 94% 55%;
    
    /* Brand gradients */
    --brand-cyan: hsl(164, 86%, 52%);
    --brand-purple: hsl(268, 88%, 60%);
}

/* ============================================
   TIPOGRAFIA E BODY
   ============================================ */

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BACKGROUNDS E GRADIENTES
   ============================================ */

.orion-gradient-bg {
    min-height: 100vh;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, hsl(var(--orion-accent) / 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, hsl(var(--orion-indigo) / 0.12), transparent),
        radial-gradient(ellipse 40% 60% at 0% 100%, hsl(164 80% 30% / 0.08), transparent),
        linear-gradient(180deg, hsl(210 40% 4%) 0%, hsl(210 35% 6%) 50%, hsl(210 30% 8%) 100%);
    background-attachment: fixed;
    position: relative;
}

.orion-gradient-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================
   CARDS
   ============================================ */

.orion-auth-card {
    position: relative;
    background: linear-gradient(145deg, hsl(var(--orion-surface-elevated)) 0%, hsl(210 30% 9%) 100%);
    box-shadow: 
        0 25px 50px -12px hsl(0 0% 0% / 0.5),
        0 0 80px hsl(var(--orion-accent) / 0.06),
        inset 0 1px 0 hsl(210 20% 20% / 0.5);
    border-radius: 1.5rem;
    border: 1px solid hsl(210 18% 15%);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.orion-section-card {
    border-radius: 1rem;
    background: linear-gradient(160deg, hsl(var(--orion-surface-elevated)) 0%, hsl(210 28% 8%) 100%);
    border: 1px solid hsl(210 18% 14%);
    box-shadow: 
        0 10px 40px hsl(0 0% 0% / 0.4),
        inset 0 1px 0 hsl(210 20% 18% / 0.4);
    padding: 1.5rem;
}

.orion-stat-card {
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(165deg, hsl(210 28% 10%) 0%, hsl(210 30% 7%) 100%);
    border: 1px solid hsl(210 18% 14%);
    overflow: hidden;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem;
}

.orion-stat-card:hover {
    border-color: hsl(var(--orion-accent) / 0.3);
    box-shadow: 
        0 12px 40px hsl(0 0% 0% / 0.4),
        0 0 40px hsl(var(--orion-accent) / 0.05);
    transform: translateY(-2px);
}

.orion-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--orion-accent)), hsl(var(--orion-indigo)));
    opacity: 0.9;
}

/* ============================================
   SCROLLBAR
   ============================================ */

.orion-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: hsl(210 18% 25%) transparent;
}

.orion-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.orion-scroll-area::-webkit-scrollbar-thumb {
    background-color: hsl(210 18% 25%);
    border-radius: 999px;
}

.orion-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: hsl(210 18% 35%);
}

/* ============================================
   LAYOUT - LOGIN
   ============================================ */

.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.login-main {
    width: 100%;
    max-width: 28rem;
}

.auth-glow {
    pointer-events: none;
    position: absolute;
    left: -8rem;
    top: -10rem;
    height: 16rem;
    width: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, hsl(var(--primary) / 0.35), transparent 65%);
}

.auth-header {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.auth-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    border-top: 1px solid hsl(var(--border) / 0.6);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   LAYOUT - APP
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 16rem;
}

.content-wrapper {
    margin: 0 auto;
    display: flex;
    width: 100%;
    max-width: 80rem;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem 2.5rem;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 16rem;
    background: hsl(var(--sidebar-background));
    border-right: 1px solid hsl(var(--sidebar-border));
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--sidebar-border));
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: hsl(var(--sidebar-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: hsl(var(--sidebar-accent));
    color: hsl(var(--sidebar-accent-foreground));
}

.sidebar-link.active {
    background: hsl(var(--sidebar-primary));
    color: hsl(var(--sidebar-primary-foreground));
}

.sidebar-icon {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid hsl(var(--sidebar-border));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.sidebar-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--sidebar-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
}

.sidebar-logout:hover {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.topbar-menu-toggle:hover {
    background: hsl(var(--muted));
}

.topbar-search {
    flex: 1;
    max-width: 28rem;
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search-icon {
    position: absolute;
    left: 0.75rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.topbar-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.topbar-search-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.topbar-action:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.topbar-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-subtitle {
    margin-top: 0.75rem;
    max-width: 42rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.page-updated {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

.stat-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.stat-change {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-success {
    color: hsl(var(--orion-success));
}

.stat-warning {
    color: hsl(var(--orion-warning));
}

/* ============================================
   DASHBOARD SECTIONS
   ============================================ */

.dashboard-sections {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: hsl(var(--muted-foreground));
}

.chart-placeholder {
    margin-top: 0.5rem;
    display: flex;
    height: 14rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.7);
    background: linear-gradient(to bottom, hsl(var(--background) / 0.4), hsl(var(--background) / 0.05));
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   ACTIVITIES LIST
   ============================================ */

.activities-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    max-height: 20rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-icon {
    margin-top: 0.25rem;
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-contrato {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.activity-cliente {
    background: hsl(var(--orion-indigo) / 0.25);
    color: hsl(var(--orion-indigo));
}

.activity-renovacao {
    background: hsl(var(--orion-warning) / 0.18);
    color: hsl(var(--orion-warning));
}

.activity-comentario {
    background: hsl(var(--muted));
    color: hsl(var(--foreground) / 0.8);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.activity-description {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.activity-time {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background) / 0.4);
    padding: 0.5rem 0.75rem;
    box-shadow: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary));
}

.form-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    outline: none;
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    margin-left: auto;
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: hsl(var(--primary));
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.0625rem;
    cursor: pointer;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.link-button:hover {
    color: hsl(var(--primary) / 0.9);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-hero {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--orion-accent-soft)));
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.3);
}

.btn-hero:hover {
    box-shadow: 0 6px 20px hsl(var(--primary) / 0.4);
    transform: translateY(-1px);
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid hsl(var(--border) / 0.7);
    background: hsl(var(--background) / 0.4);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: hsl(var(--background) / 0.7);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
    margin-bottom: 1rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 32rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--background) / 0.6);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

/* ============================================
   TABLES
   ============================================ */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    border-bottom: 1px solid hsl(var(--border));
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}

.data-table tbody tr {
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: hsl(var(--muted) / 0.3);
}

.data-table td {
    padding: 1rem;
    color: hsl(var(--foreground));
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background: hsl(var(--orion-success) / 0.15);
    color: hsl(var(--orion-success));
}

.badge-warning {
    background: hsl(var(--orion-warning) / 0.15);
    color: hsl(var(--orion-warning));
}

.badge-danger {
    background: hsl(var(--destructive) / 0.15);
    color: hsl(var(--destructive));
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.3);
    color: hsl(var(--destructive));
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 32rem;
}

.error-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.error-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.error-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.max-w-xs {
    max-width: 20rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
    .auth-header h1 {
        font-size: 2.25rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sections {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    }
    
    .page-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    
    .error-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .auth-header h1 {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .app-content {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .topbar-menu-toggle {
        display: flex;
    }
}
