/* =========================================
   Neonblue Proposal Aesthetic (Beige Theme)
   ========================================= */
:root {
    --bg-light: #F2EDE0;
    --navy: #0C1628;
    --nb-blue: #1A52F0;

    --bg-card: rgba(255, 255, 255, 0.6);
    --border-light: rgba(12, 22, 40, 0.1);
    --border-hover: rgba(26, 82, 240, 0.3);

    --text-primary: #0C1628;
    --text-secondary: rgba(12, 22, 40, 0.6);
    --text-muted: rgba(12, 22, 40, 0.4);

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

body.theme-beige {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   Layout
   ========================================= */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 32px;
}

.proposal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .proposal-grid {
        grid-template-columns: 1fr;
    }
}

.left-col,
.right-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* =========================================
   Glassmorphism Cards (Light)
   ========================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(12, 22, 40, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(12, 22, 40, 0.08);
}

/* =========================================
   Typography & Headers
   ========================================= */
.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.badge-wrapper {
    display: inline-flex;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(26, 82, 240, 0.2);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nb-blue);
    background: rgba(26, 82, 240, 0.05);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nb-blue);
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 600px;
}

.text-link {
    color: var(--nb-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--navy);
}

/* Card Headers */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 22, 40, 0.05);
}

.icon-wrapper.navy {
    color: var(--navy);
}

.icon-wrapper.blue {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.icon-wrapper.purple {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.icon-wrapper.green {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.icon-wrapper.blue-dark {
    color: var(--nb-blue);
    background: rgba(26, 82, 240, 0.1);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-subheader {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.section-subheader.mt-0 {
    margin-top: 0;
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: -16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-6 {
    margin-top: 24px;
}

/* =========================================
   Buttons
   ========================================= */
.header-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--nb-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(26, 82, 240, 0.3);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(12, 22, 40, 0.05);
    border-color: rgba(12, 22, 40, 0.2);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(12, 22, 40, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(12, 22, 40, 0.1);
    color: var(--text-primary);
}

.btn-icon i {
    width: 14px;
    height: 14px;
}

/* =========================================
   Forms & Inputs
   ========================================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.optional {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--text-muted);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--nb-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(26, 82, 240, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-textarea.short {
    min-height: 50px;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.full-width {
    grid-column: span 2;
}

.content-row {
    margin-bottom: 20px;
}

.content-row:last-child {
    margin-bottom: 0;
}

/* =========================================
   Specific Blocks
   ========================================= */
.segment-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.segment-pill {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.add-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.add-text:hover {
    color: var(--nb-blue);
}

.add-text i {
    width: 14px;
    height: 14px;
}

.result-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.stacked-inputs {
    display: flex;
    flex-direction: column;
}

/* Utility classes */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.full-width-card {
    grid-column: 1 / -1;
}

.mb-3 {
    margin-bottom: 12px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-14 {
    gap: 14px;
}

.list-none-margin {
    margin: 0;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}