:root {
    /* Color Palette - Premium K-apt Style */
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-green: #10b981;

    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #005aa7 0%, #003a70 100%);
    --gradient-blue: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    --gradient-purple: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    --gradient-red: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --gradient-green: linear-gradient(135deg, #34d399 0%, #059669 100%);

    /* Backgrounds */
    --background: #f1f5f9;
    --surface: #ffffff;

    /* Text */
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Borders & Spacing */
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);
    --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
}

/* Layout */
/* Layout - Top Navigation Structure */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background);
}

.header-wrapper {
    background: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-utility {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.gnb-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gnb-item {
    position: relative;
}

.gnb-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.gnb-link:hover,
.gnb-link.active {
    color: var(--accent-blue);
}

.gnb-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* Components */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Typography & Titles */
h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    border-radius: 0;
    padding: 1.5rem 2rem 2.5rem 2rem;
    /* Compact padding with slightly more bottom for overlap */
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    /* Removing margins to sit flush against header */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff !important;
    /* Force white color on dark background */
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
    font-weight: 500;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-select {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    min-width: 150px;
}

.search-btn {
    background: #FFD700;
    color: #333;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #F4C430;
}

/* Dashboard Info Cards Wrapper */
.dashboard-overlap-container {
    margin-top: -2rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
    /* Push content down to prevent overlap */
    position: relative;
    z-index: 10;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    /* margin-bottom removed to prevent layout collapse */
    width: 100%;
}

.info-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
}

.info-card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.info-card-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: auto;
    color: var(--text-main);
    text-align: center;
}

.info-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.info-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Custom Gradients for Cards */
.card-blue {
    background: var(--gradient-blue);
}

.card-purple {
    background: var(--gradient-purple);
}

.card-red {
    background: var(--gradient-red);
}

.card-green {
    background: var(--gradient-green);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

tr:hover {
    background-color: #f1f5f9;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-high {
    background: var(--risk-high);
    color: var(--risk-high-text);
}

.badge-medium {
    background: var(--risk-medium);
    color: var(--risk-medium-text);
}

.badge-low {
    background: var(--risk-low);
    color: var(--risk-low-text);
}

/* Navigation */
/* Navigation - Legacy Sidebar Styles Removed */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-link:hover {
    filter: brightness(0.9);
}

/* Utilities */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    padding-bottom: 5px;
    /* Scrollbar spacing */
}

/* Global Responsive Styles */
@media (max-width: 992px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .gnb-menu {
        gap: 1rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* Slightly reduce base font size */
    }

    .main-content {
        padding: 1rem;
    }

    .gnb-menu {
        gap: 0.8rem;
    }

    .gnb-link {
        font-size: 1rem;
        padding: 0.25rem 0;
    }

    /* Card Padding Reset for Mobile */
    .card {
        padding: 1.25rem !important;
        /* Force reduce padding */
    }
}

/* Proposal Viewer Styles */
.proposal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.proposal-modal.show {
    display: block;
    opacity: 1;
}

.proposal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.proposal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.proposal-header {
    padding: 0.35rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    z-index: 10;
}

.proposal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proposal-logo img {
    height: 24px;
}

.proposal-logo span {
    font-weight: 800;
    color: #003a70;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.proposal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.proposal-close:hover {
    background: #e2e8f0;
}

.proposal-content-wrapper {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.proposal-scroll-area {
    width: 100%;
}

.proposal-section {
    padding: 6rem 4rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-light {
    background: #f8fafc;
}

.bg-dark {
    background: #003a70;
    color: white;
}

.text-white {
    color: white !important;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.section-num {
    background: var(--accent-blue);
    color: white;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
    letter-spacing: -1px;
}

/* Cover Section */
.proposal-cover {
    height: 70vh;
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-badge {
    background: var(--accent-blue);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.proposal-main-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.proposal-main-title .highlight {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.proposal-sub-title {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.proposal-author {
    margin-top: 4rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid white;
    border-radius: 10px;
}

/* Proposal Grid & Cards */
.proposal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.proposal-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.proposal-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.proposal-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Concept Visual */
.concept-visual {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.concept-item {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.concept-item .dot {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.concept-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: -3.5rem;
}

.concept-item h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Benefits */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.benefit-item {
    text-align: center;
}

.benefit-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.benefit-label {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Roadmap */
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.roadmap-step {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.roadmap-step h3 {
    font-size: 1.5rem;
    margin-bottom: 3px;
    color: white;
}

/* Footer Section */
.proposal-footer {
    padding: 8rem 4rem;
    text-align: center;
    background: #f8fafc;
}

.btn-close-final {
    margin-top: 3rem;
    background: #003a70;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-close-final:hover {
    transform: scale(1.05);
}

/* Animation & Dynamic Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.proposal-section {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.proposal-section.animate-active {
    opacity: 1;
}

.proposal-section.animate-active .proposal-main-title,
.proposal-section.animate-active .section-header {
    animation: fadeInUp 0.8s ease forwards;
}

.proposal-section.animate-active .proposal-card,
.proposal-section.animate-active .benefit-item,
.proposal-section.animate-active .roadmap-step {
    animation: fadeInUp 0.8s ease forwards;
}

.proposal-section.animate-active .proposal-card:nth-child(1) {
    animation-delay: 0.1s;
}

.proposal-section.animate-active .proposal-card:nth-child(2) {
    animation-delay: 0.3s;
}

.proposal-section.animate-active .proposal-card:nth-child(3) {
    animation-delay: 0.5s;
}

.proposal-section.animate-active .benefit-item:nth-child(1) {
    animation-delay: 0.2s;
}

.proposal-section.animate-active .benefit-item:nth-child(2) {
    animation-delay: 0.4s;
}

.proposal-section.animate-active .benefit-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .proposal-section {
        padding: 4rem 2rem;
    }

    .proposal-main-title {
        font-size: 3rem;
    }
}

.proposal-main-title .highlight {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    position: relative;
    display: inline-block;
}

.proposal-main-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 215, 0, 0.2);
    z-index: -1;
}

.btn-proposal-trigger {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-proposal-trigger:hover {
    transform: translateY(-1px) scale(1.05);
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-proposal-trigger:active {
    transform: translateY(0) scale(0.98);
}

/* Enhancing Sales Text */
.proposal-card h3 {
    background: linear-gradient(90deg, #003a70, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    font-weight: 800;
}

.benefit-value {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proposal-card {
    border-top: 4px solid var(--accent-blue);
}

.proposal-card:nth-child(2) {
    border-top-color: #8b5cf6;
}

.proposal-card:nth-child(3) {
    border-top-color: #ef4444;
}

@media (max-width: 768px) {

    .proposal-grid,
    .benefits-container,
    .concept-visual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .concept-line {
        display: none;
    }

    .proposal-main-title {
        font-size: 2.5rem;
    }

    .proposal-section {
        padding: 4rem 2rem;
    }
}