/* CSS Variable definitions for professional palette */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0d9488;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Custom card layouts */
.proposal-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proposal-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

/* Sticky Summary Card */
.sticky-summary {
    position: sticky;
    top: 2rem;
    z-index: 100;
}

/* Custom checkbox switch styling */
.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-wrap:hover {
    background-color: #f1f5f9;
}

.custom-checkbox-wrap.mandatory-item {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.custom-checkbox-wrap.active {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

/* Pill badges */
.priority-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-mandatory {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-important {
    background-color: #fef9c3;
    color: #a16207;
}

.badge-optional {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 0 0 24px 24px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-subtitle {
    color: #cbd5e1;
    font-weight: 300;
    max-width: 600px;
}

/* Animation classes */
.pulse-glow {
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
}

/* Print utilities */
@media print {
    .no-print, .d-print-none {
        display: none !important;
    }
    #print-template {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body {
        background-color: #ffffff;
        color: #1e293b;
        font-size: 11pt;
    }
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .table th, .table td {
        border: 1px solid #cbd5e1 !important;
        padding: 10px 14px !important;
    }
    .table th {
        background-color: #f8fafc !important;
        color: #0f172a !important;
    }
    /* Hide priority badges color overrides in print if needed, but standard text coloring is fine */
    .text-danger {
        color: #dc2626 !important;
    }
    .text-warning {
        color: #d97706 !important;
    }
    .text-primary {
        color: #4f46e5 !important;
    }
    .text-success {
        color: #0d9488 !important;
    }
}
