/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Professional Hero Section */
.hero-section {
    background: #002C77;
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header (Legacy - keeping for compatibility) */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

/* Form Styles */
.config-section h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.form-control {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-range {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.range-value {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.form-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Button */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: #009DE0;
    color: white;
}

.btn-primary:hover {
    background: #0088c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 157, 224, 0.4);
}

.btn-primary:active {
    background: #007ab8;
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Report Actions */
.report-actions {
    margin-bottom: 1.5rem;
    text-align: right;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    text-align: center;
}

.summary-card h3 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.provider-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cost-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.cost-label {
    font-size: 0.9rem;
    color: #888;
}

.config-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.savings-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 5px;
}

.savings-label {
    font-size: 1rem;
    color: #10b981;
    font-weight: 600;
}

.carbon-value {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 5px;
}

.carbon-label {
    font-size: 0.9rem;
    color: #888;
}

.carbon-comparison {
    font-size: 0.85rem;
    color: #059669;
    margin-top: 8px;
    font-weight: 500;
}

.sustainability-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
}

.carbon-cell {
    color: #059669;
    font-weight: 600;
}

/* Mixed Instance Types */
.mixed-types-section {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mixed-types-section h3 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 1.1rem;
}

.instance-group-row {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.instance-group-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.instance-family-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.instance-family-badge.c-class {
    background: #3b82f6;
    color: white;
}

.instance-family-badge.m-class {
    background: #10b981;
    color: white;
}

.instance-family-badge.r-class {
    background: #f59e0b;
    color: white;
}

.instance-family-label {
    font-size: 0.9rem;
    color: #666;
}

.subtotal-display {
    padding: 10px 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.mixed-types-total {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 15px;
}

.mixed-types-total span {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.comparison-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.rank-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.rank-1 {
    background: #10b981;
    color: white;
}

.rank-2 {
    background: #f59e0b;
    color: white;
}

.provider-cell {
    font-weight: 600;
    text-transform: uppercase;
    color: #667eea;
}

.cost-cell {
    font-weight: 600;
}

.savings-cell {
    color: #10b981;
    font-weight: 600;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    padding: 20px;
}

.chart-card h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.1rem;
}

.chart-card canvas {
    max-height: 300px;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #991b1b;
}

.error-message strong {
    font-weight: 700;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.9;
}

.footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}


/* Tabs */
.tabs-container {
    max-width: 1200px;
    margin: -30px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.tabs {
    display: flex;
    gap: 10px;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.tab-button {
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-button:hover {
    background: white;
    color: #002C77;
    transform: translateY(-2px);
    box-shadow: 0 -4px 15px rgba(0, 157, 224, 0.1);
}

.tab-button.active {
    background: white;
    color: #009DE0;
    border-bottom-color: #009DE0;
    transform: translateY(0);
    box-shadow: 0 -4px 15px rgba(0, 157, 224, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* FAQ Styles */
.faq-wrapper {
    padding: 40px 20px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
}

.faq-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 8px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #2c3e50;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Value Proposition Section */
/* Value Proposition Section */
.value-props {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: #002C77;
    margin-bottom: 10px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
    font-weight: 400;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1400px) {
    .value-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.value-item {
    text-align: center;
    padding: 30px 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 157, 224, 0.15);
    border-color: #009DE0;
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: grayscale(0%);
}

.value-item h3 {
    font-size: 1.3rem;
    color: #002C77;
    margin-bottom: 12px;
    font-weight: 700;
}

.value-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Collapsible Configuration Groups */
.config-group {
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-group-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.config-group-header:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #f8f9fa 100%);
}

.config-group-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.config-group-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.config-group-toggle {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.config-group-toggle.collapsed {
    transform: rotate(-90deg);
}

.config-group-content {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.config-group-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    border-top: none;
}


/* Feature Highlight Card */
.feature-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #009DE0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.15);
}

.feature-highlight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-badge {
    background: #009DE0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-highlight h3 {
    color: #002C77;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.feature-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.feature-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #009DE0;
}

.feature-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(30px);
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002C77;
}


/* AI Assistant Styles */
.ai-assistant-wrapper {
    display: flex;
    flex-direction: column;
    height: 700px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Increase height on larger screens */
@media (min-height: 900px) {
    .ai-assistant-wrapper {
        height: 800px;
    }
}

@media (min-height: 1080px) {
    .ai-assistant-wrapper {
        height: 900px;
    }
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #002C77 0%, #009DE0 100%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-header-icon {
    font-size: 2.5rem;
}

.ai-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ai-header p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.ai-welcome {
    text-align: center;
    padding: 60px 20px;
}

.ai-welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ai-welcome h3 {
    font-size: 1.5rem;
    color: #002C77;
    margin-bottom: 10px;
}

.ai-welcome p {
    color: #666;
    margin-bottom: 30px;
}

.ai-example-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.ai-example-btn {
    text-align: left;
    padding: 15px 20px;
    background: white;
    border: 2px solid #009DE0;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-example-btn:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 157, 224, 0.2);
}

.ai-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message.user {
    justify-content: flex-end;
}

.ai-message.assistant {
    justify-content: flex-start;
}

.ai-message-content {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message.assistant .ai-message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 150px;
}

.ai-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009DE0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading-text {
    color: #666;
    font-size: 0.9rem;
}

.ai-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.ai-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ai-input:focus {
    outline: none;
    border-color: #009DE0;
    box-shadow: 0 0 0 3px rgba(0, 157, 224, 0.1);
}

.ai-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.ai-submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.4);
}

.ai-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-send-icon {
    font-size: 1.1rem;
}

.ai-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

.ai-error {
    padding: 12px 18px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-example-questions {
        grid-template-columns: 1fr;
    }
    
    .ai-message-content {
        max-width: 90%;
    }
}

/* AI Response Formatting Styles */
.ai-message.assistant .ai-message-content {
    line-height: 1.6;
}

.ai-paragraph {
    margin: 0 0 12px 0;
}

.ai-heading {
    color: #002C77;
    margin: 20px 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.ai-h2 {
    font-size: 1.4em;
    border-bottom: 2px solid #009DE0;
    padding-bottom: 6px;
}

.ai-h3 {
    font-size: 1.2em;
}

.ai-h4 {
    font-size: 1.1em;
    color: #009DE0;
}

.ai-heading:first-child {
    margin-top: 0;
}

.ai-divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 20px 0;
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.ai-table thead {
    background: linear-gradient(135deg, #002C77 0%, #004499 100%);
    color: white;
}

.ai-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #009DE0;
}

.ai-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.ai-table tbody tr:hover {
    background: #f8f9fa;
}

.ai-table tbody tr:last-child td {
    border-bottom: none;
}

.ai-list {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.ai-bullet, .ai-numbered {
    margin: 6px 0;
    line-height: 1.6;
}

.ai-code-block {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.ai-code-block code {
    background: none;
    padding: 0;
    border: none;
}

.ai-inline-code {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63384;
}

.ai-message.assistant strong {
    color: #002C77;
    font-weight: 600;
}

.ai-message.assistant em {
    font-style: italic;
    color: #555;
}

/* Export PDF Button */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.export-pdf-btn {
    display: none; /* Hidden by default until there are messages */
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #002C77;
    border: 2px solid #009DE0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-pdf-btn:hover {
    background: #009DE0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.3);
}

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

.export-pdf-btn svg {
    transition: transform 0.3s ease;
}

.export-pdf-btn:hover svg {
    transform: translateY(2px);
}

.export-pdf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mode Toggle Buttons */
.mode-toggle-container {
    display: flex;
    gap: 0;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
}

.mode-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-toggle-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.mode-toggle-btn.active {
    background: #002C77;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 44, 119, 0.2);
}

/* Expand Chat Button */
.expand-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #002C77;
    border: 2px solid #009DE0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-chat-btn:hover {
    background: #009DE0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.3);
}

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

/* Expanded Chat State */
#ai-assistant-content.expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #f5f5f5;
    padding: 20px;
    overflow: auto;
    margin: 0 !important;
    max-width: none !important;
}

#ai-assistant-content.expanded .ai-assistant-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

#ai-assistant-content.expanded .ai-header {
    margin-bottom: 20px;
    flex-shrink: 0;
}

#ai-assistant-content.expanded .ai-chat-container {
    height: calc(100vh - 200px) !important;
    max-height: none !important;
    flex: 1;
    min-height: 0;
}

#ai-assistant-content.expanded .ai-input-container {
    flex-shrink: 0;
    margin-top: 20px;
}

/* Hide other tabs when expanded */
body.chat-expanded .tab-nav,
body.chat-expanded #calculator-tab,
body.chat-expanded #faq-content {
    display: none !important;
}

body.chat-expanded {
    overflow: hidden;
}

body.chat-expanded .container {
    padding: 0 !important;
    max-width: none !important;
}


/* AI Optimization Services Styles */
.ai-optimization-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.optimization-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.optimization-header h1 {
    font-size: 3rem;
    color: #002C77;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.optimization-subtitle {
    font-size: 1.3rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 157, 224, 0.12);
    border-color: #009DE0;
}

.service-card.featured {
    border-color: #009DE0;
    border-width: 2px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(0, 157, 224, 0.15);
}

.service-badge {
    position: absolute;
    top: -14px;
    right: 25px;
    background: linear-gradient(135deg, #009DE0 0%, #0077b6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.4);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    color: #002C77;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.service-features li {
    color: #444;
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.service-features li::before {
    content: '✓';
    color: #009DE0;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.1rem;
}

.service-cta {
    width: 100%;
    padding: 14px 28px;
    background: white;
    color: #009DE0;
    border: 2px solid #009DE0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-cta:hover {
    background: #009DE0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 157, 224, 0.3);
}

.service-cta.primary {
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border: none;
}

.service-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 157, 224, 0.4);
}

.optimization-cta-section {
    text-align: center;
    background: linear-gradient(135deg, #002C77 0%, #0055a5 50%, #009DE0 100%);
    color: white;
    padding: 70px 50px;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 12px 32px rgba(0, 44, 119, 0.25);
    position: relative;
    overflow: hidden;
}

.optimization-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.optimization-cta-section h2 {
    font-size: 2.4rem;
    margin-bottom: 18px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.optimization-cta-section p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 18px 45px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-large.btn-primary {
    background: white;
    color: #002C77;
}

.btn-large.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.4);
}

.btn-large.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-large.btn-secondary:hover {
    background: white;
    color: #002C77;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.3);
}

.optimization-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-box {
    text-align: center;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 40px 25px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-box:hover {
    border-color: #009DE0;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 157, 224, 0.15);
}

.stat-box .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 1.05rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive adjustments for AI Optimization Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ai-optimization-wrapper {
        padding: 40px 20px;
    }
    
    .optimization-header h1 {
        font-size: 2rem;
    }
    
    .optimization-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .optimization-cta-section {
        padding: 50px 30px;
    }
    
    .optimization-cta-section h2 {
        font-size: 1.8rem;
    }
    
    .optimization-cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .optimization-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-box {
        padding: 30px 20px;
    }
    
    .stat-box .stat-number {
        font-size: 2.8rem;
    }
}

/* FinOps Co-Pilot Styles */
.copilot-wrapper {
    display: flex;
    flex-direction: column;
    height: 700px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-height: 900px) {
    .copilot-wrapper {
        height: 800px;
    }
}

@media (min-height: 1080px) {
    .copilot-wrapper {
        height: 900px;
    }
}

.copilot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #002C77 0%, #009DE0 100%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.copilot-header-icon {
    font-size: 2.5rem;
}

.copilot-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.copilot-header p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.copilot-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.copilot-welcome {
    text-align: center;
    padding: 60px 20px;
}

.copilot-welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.copilot-welcome h3 {
    font-size: 1.5rem;
    color: #002C77;
    margin-bottom: 10px;
}

.copilot-welcome p {
    color: #666;
    margin-bottom: 30px;
}

.copilot-example-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.copilot-example-btn {
    text-align: left;
    padding: 15px 20px;
    background: white;
    border: 2px solid #009DE0;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copilot-example-btn:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 157, 224, 0.2);
}

.copilot-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.copilot-message {
    display: flex;
    animation: slideIn 0.3s ease;
}

.copilot-message.user {
    justify-content: flex-end;
}

.copilot-message.assistant {
    justify-content: flex-start;
}

.copilot-message-content {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
}

.copilot-message.user .copilot-message-content {
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.copilot-message.assistant .copilot-message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.copilot-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 150px;
}

.copilot-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009DE0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.copilot-loading-text {
    color: #666;
    font-size: 0.9rem;
}

.copilot-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.copilot-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.copilot-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.copilot-input:focus {
    outline: none;
    border-color: #009DE0;
    box-shadow: 0 0 0 3px rgba(0, 157, 224, 0.1);
}

.copilot-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.copilot-submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copilot-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.4);
}

.copilot-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copilot-send-icon {
    font-size: 1.1rem;
}

.copilot-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

.copilot-error {
    padding: 12px 18px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .copilot-example-questions {
        grid-template-columns: 1fr;
    }
    
    .copilot-message-content {
        max-width: 90%;
    }
}


/* Co-Pilot Help Button */
.copilot-help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #002C77;
    border: 2px solid #009DE0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copilot-help-btn:hover {
    background: #009DE0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.3);
}

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

/* Demo Month Selector */
.demo-month-selector {
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #009DE0;
    border-radius: 12px;
    max-width: 500px;
}

.demo-month-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #002C77;
    margin-bottom: 10px;
}

.demo-month-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #002C77;
    background: white;
    border: 2px solid #009DE0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-month-dropdown:hover {
    border-color: #002C77;
    box-shadow: 0 2px 8px rgba(0, 157, 224, 0.2);
}

.demo-month-dropdown:focus {
    outline: none;
    border-color: #002C77;
    box-shadow: 0 0 0 3px rgba(0, 157, 224, 0.1);
}

/* Co-Pilot Help Modal */
.copilot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.copilot-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.copilot-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.copilot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #002C77 0%, #009DE0 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.copilot-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.copilot-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.copilot-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.copilot-modal-body {
    padding: 30px;
}

.copilot-help-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.copilot-help-step:last-of-type {
    border-bottom: none;
}

.copilot-help-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.3);
}

.copilot-help-step-content {
    flex: 1;
}

.copilot-help-step-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #002C77;
    font-weight: 700;
}

.copilot-help-step-content p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.6;
}

.copilot-help-step-content ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #555;
}

.copilot-help-step-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.copilot-help-note {
    background: #f0f9ff;
    border-left: 4px solid #009DE0;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #002C77;
    font-weight: 500;
}

.copilot-help-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    color: #002C77;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 15px;
}

.copilot-help-features {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.copilot-help-features h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #002C77;
    font-weight: 700;
}

.copilot-help-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.copilot-help-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.copilot-help-feature:hover {
    border-color: #009DE0;
    box-shadow: 0 2px 8px rgba(0, 157, 224, 0.1);
    transform: translateY(-2px);
}

.copilot-help-feature-icon {
    font-size: 1.5rem;
}

.copilot-help-feature span:last-child {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.copilot-help-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.copilot-help-cta .btn {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .copilot-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .copilot-modal-header {
        padding: 20px;
    }
    
    .copilot-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .copilot-modal-body {
        padding: 20px;
    }
    
    .copilot-help-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .copilot-help-features-grid {
        grid-template-columns: 1fr;
    }
    
    .copilot-help-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .copilot-help-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* API Playground Styles */
.api-playground-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.api-playground-header {
    text-align: center;
    margin-bottom: 40px;
}

.api-playground-header h2 {
    font-size: 2.5rem;
    color: #002C77;
    margin-bottom: 12px;
    font-weight: 800;
}

.api-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.api-playground-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Left Panel: Scenarios */
.api-scenarios-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.api-scenarios-panel h3 {
    font-size: 1.3rem;
    color: #002C77;
    margin-bottom: 8px;
    font-weight: 700;
}

.panel-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.scenario-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.scenario-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    border-color: #009DE0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.15);
}

.scenario-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.scenario-content {
    flex: 1;
}

.scenario-content h4 {
    font-size: 1.1rem;
    color: #002C77;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.scenario-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.scenario-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #009DE0;
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Budget Guardrails */
.guardrails-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #009DE0;
    border-radius: 10px;
    padding: 20px;
}

.guardrails-info h4 {
    font-size: 1.1rem;
    color: #002C77;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.guardrails-info p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.budget-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #002C77;
}

.budget-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #009DE0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #002C77;
}

.budget-currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

/* Right Panel: Request/Response */
.api-request-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-request-section,
.api-response-section,
.code-generation-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 1.2rem;
    color: #002C77;
    margin: 0;
    font-weight: 700;
}

.btn-small {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, #009DE0 0%, #002C77 100%);
    color: white;
}

.btn-small.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 157, 224, 0.4);
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.http-method {
    padding: 4px 10px;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.endpoint-url {
    font-size: 0.9rem;
    color: #002C77;
    font-weight: 600;
}

.request-body,
.generated-code {
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #002C77;
    color: white;
    border-radius: 6px 6px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block {
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.response-container {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.response-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-size: 0.95rem;
    text-align: center;
}

.response-time {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.response-success {
    padding: 15px;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 6px;
}

.response-warning {
    padding: 15px;
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 6px;
}

.response-error {
    padding: 15px;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 6px;
    color: #991b1b;
}

.response-json {
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.section-header select {
    padding: 8px 12px;
    border: 2px solid #009DE0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002C77;
    cursor: pointer;
    background: white;
}

/* CI/CD Examples Section */
.cicd-examples-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.cicd-examples-section h3 {
    font-size: 1.5rem;
    color: #002C77;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.cicd-examples-section > p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 25px 0;
}

.cicd-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.cicd-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cicd-tab-btn:hover {
    color: #009DE0;
}

.cicd-tab-btn.active {
    color: #002C77;
    border-bottom-color: #009DE0;
}

.cicd-example {
    display: none;
}

.cicd-example.active {
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .api-playground-grid {
        grid-template-columns: 1fr;
    }
    
    .api-scenarios-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .api-playground-wrapper {
        padding: 30px 15px;
    }
    
    .api-playground-header h2 {
        font-size: 2rem;
    }
    
    .api-subtitle {
        font-size: 1rem;
    }
    
    .scenario-cards {
        gap: 10px;
    }
    
    .scenario-card {
        padding: 15px;
    }
    
    .scenario-icon {
        font-size: 2rem;
    }
    
    .cicd-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .cicd-tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 10px 15px;
    }
    
    .cicd-tab-btn.active {
        border-left-color: #009DE0;
        border-bottom-color: transparent;
    }
}
