:root {
    /* Main Palette - Inspired by modern, professional SaaS */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Light Theme (Default) */
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border-main: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #0f172a;
        --bg-card: #1e293b;
        --bg-input: #0f172a;
        --border-main: #334155;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --navbar-bg: rgba(15, 23, 42, 0.8);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Reformada */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-main);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--text-main);
    font-weight: 400;
}

.main-container {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Card e Estrutura */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Formulário e Inputs */
.form-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

input, select, textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

input:hover, select:hover, textarea:hover {
    border-color: var(--text-muted);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

::placeholder {
    color: #9ca3af;
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Badges e Status */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
}

.status-pendente         { background: #fef3c7; color: #92400e; }
.status-analise          { background: #dbeafe; color: #1e40af; }
.status-propostaenviada  { background: #cffafe; color: #155e75; }
.status-aprovado         { background: #dcfce7; color: #166534; }
.status-recusado         { background: #fee2e2; color: #991b1b; }
.status-standby          { background: #e0e7ff; color: #3730a3; }

@media (prefers-color-scheme: dark) {
    .status-pendente         { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
    .status-analise          { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
    .status-propostaenviada  { background: rgba(8, 145, 178, 0.2); color: #67e8f9; }
    .status-aprovado         { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
    .status-recusado         { background: rgba(239, 68, 68, 0.2); color: #f87171; }
    .status-standby          { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

/* Animações */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    animation: slideUp 0.4s ease-out;
}