/* Global styles */
:root {
    --comply-green: #8CC63F;
    --comply-green-hover: #7ab035;
    --comply-green-light: #e9f4dc;
    --comply-dark: #333333;
    --comply-light: #f8f9fa;
    --comply-gray: #6c757d;
}

body {
    background-color: #f8f9fa;
    color: var(--comply-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header styles */
.site-header {
    background-color: #ffffff;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

.logo-container {
    background: var(--comply-green-light);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
}

.logo-container i {
    transition: transform 0.2s ease;
}

.logo-container:hover i {
    transform: scale(1.1);
}

.brand-text {
    color: var(--comply-dark);
}

.navbar-nav .nav-link {
    color: var(--comply-dark);
    font-weight: 400;
    padding: 1rem 1rem;
    position: relative;
}

.navbar-nav .nav-link.active {
    color: var(--comply-green);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--comply-green);
}

.navbar-nav .nav-link:hover {
    color: var(--comply-green);
}

.navbar-light .navbar-toggler {
    border-color: transparent;
}

.text-primary {
    color: var(--comply-green) !important;
}

/* Footer styles */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    color: var(--comply-dark);
    padding: 1.5rem 0;
}

.footer-logo {
    height: 25px;
    margin-bottom: 3px;
}

.logo-container {
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--comply-dark);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--comply-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--comply-green);
    text-decoration: none;
}

.footer-contact-link {
    color: var(--comply-green);
    font-weight: 500;
    text-decoration: none;
}

.footer-contact-link:hover {
    text-decoration: underline;
}

.complyci-link, .lca-link {
    color: var(--comply-green);
    font-weight: 500;
    text-decoration: none;
}

.complyci-link:hover, .lca-link:hover {
    text-decoration: underline;
}

/* Form styles */
.form-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-card {
    background-color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.form-card-header {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    background-color: var(--comply-green) !important;
    color: white !important;
    border-bottom: none;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--comply-dark);
    min-height: 2.5rem;
    display: flex;
    align-items: flex-end;
}

/* Input with units styling */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Percent input with symbol */
.percent-suffix {
    position: relative;
}

.percent-suffix input {
    padding-right: 25px;
}

.percent-suffix::after {
    content: "%";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.875rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control, .form-select {
    background-color: #ffffff;
    border-color: #ced4da;
    color: var(--comply-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--comply-green);
    color: var(--comply-dark);
    box-shadow: 0 0 0 0.2rem rgba(140, 198, 63, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: var(--comply-green-light);
    color: var(--comply-dark);
    border-left: 4px solid var(--comply-green);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-secondary {
    background-color: #e9ecef;
    color: #6c757d;
    border-left: 4px solid #6c757d;
}

/* Button styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--comply-green);
    border-color: var(--comply-green);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--comply-green-hover);
    border-color: var(--comply-green-hover);
    color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-success {
    background-color: var(--comply-green);
    border-color: var(--comply-green);
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--comply-green-hover);
    border-color: var(--comply-green-hover);
}

.btn-outline-secondary {
    color: var(--comply-gray);
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: var(--comply-dark);
    border-color: #adb5bd;
}

.btn-outline-primary {
    color: var(--comply-green);
    border-color: var(--comply-green);
}

.btn-outline-primary:hover {
    background-color: var(--comply-green-light);
    color: var(--comply-green);
    border-color: var(--comply-green);
}

/* Results page styles */
.results-container {
    margin-bottom: 2rem;
    background-color: #2c3138;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    color: #f8f9fa;
}

.negative-value {
    color: #8CC63F;
    font-weight: 500;
}

.positive-value {
    color: #ff5252;
    font-weight: 500;
}

.total-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.chart-container {
    height: 380px;
    padding: 1.5rem 1rem 0.5rem;
    margin-bottom: 0;
    position: relative;
    background-color: #2c3138;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* Chart attribution styling */
.chart-attribution {
    margin-top: 10px;
    position: relative;
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #868e96;
}

.chart-logo {
    height: 30px;
    max-width: 90%;
    margin-bottom: 5px;
}

/* Input summary styles */
.card-header.bg-secondary {
    background-color: #3f4a59 !important;
    border-bottom: none;
    color: white;
}

.badge.bg-secondary {
    background-color: #495057 !important;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: #8CC63F !important;
}

.list-group-item {
    background-color: #2c3138;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
}

#resultsTable {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.table-responsive {
    margin-top: 0;
    padding-top: 0;
}

/* Auto-calculate buttons */
.auto-calc-btn {
    color: var(--comply-gray);
    border-color: #ced4da;
    background-color: #f8f9fa;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.auto-calc-btn:hover {
    color: var(--comply-green);
    background-color: #ffffff;
    border-color: var(--comply-green);
}

.auto-calc-btn:active {
    color: #fff;
    background-color: var(--comply-green);
    border-color: var(--comply-green);
}

/* Custom utility classes */
.greenfield-hidden {
    color: #f8f9fa !important;
}

.all-lagoon-hidden {
    color: rgba(33, 37, 41, 0.1) !important;
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Home page specific styles */
.hero-section {
    background-color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--comply-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--comply-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    height: 100%;
    min-height: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: var(--comply-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--comply-dark);
}

.feature-icon {
    font-size: 2rem;
    color: var(--comply-green);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--comply-gray);
    font-size: 0.9rem;
}

/* New Professional Home Page Styles */

/* Hero Main Section */
.hero-main {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #1a472a;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide.active img {
    animation: zoomIn 8s ease-out forwards;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.7) 0%, rgba(45, 90, 61, 0.6) 50%, rgba(140, 198, 63, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-main-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* Solutions Section */
.solutions-section {
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--comply-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--comply-gray);
    margin-bottom: 1rem;
}

.solution-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.solution-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-content {
    padding: 2rem;
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--comply-dark);
    margin-bottom: 1rem;
}

.solution-description {
    color: var(--comply-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.solution-link {
    color: var(--comply-green);
    font-weight: 500;
    font-size: 0.95rem;
}

.solution-card:hover .solution-link {
    color: var(--comply-green-hover);
}

/* Research Section */
.research-section {
    background-color: #f8f9fa;
}

.research-features {
    margin-top: 1.5rem;
}

.research-feature {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    color: var(--comply-dark);
}

.research-feature i {
    font-size: 1.25rem;
    margin-top: 2px;
}

/* Mini Tool Cards for All Tools Section */
.mini-tool-card {
    background: white;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tool-mini-icon {
    font-size: 2.5rem;
    color: var(--comply-green);
    margin-bottom: 1rem;
}

.tool-mini-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--comply-dark);
    margin-bottom: 0.75rem;
}

.tool-mini-desc {
    color: var(--comply-gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--comply-green) 0%, var(--comply-green-hover) 100%);
    color: white;
}

.cta-section .btn-light {
    background-color: white;
    color: var(--comply-green);
    border: none;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    color: var(--comply-green-hover);
}

.cta-section .btn-outline-light {
    color: white;
    border-color: white;
}

.cta-section .btn-outline-light:hover {
    background-color: white;
    color: var(--comply-green);
    border-color: white;
}

/* Tools Page Styles */
.page-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tool-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tool-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tool-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-image img {
    transform: scale(1.05);
}

.tool-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tool-icon {
    font-size: 2rem;
    color: var(--comply-green);
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--comply-dark);
    margin-bottom: 0.75rem;
}

.tool-description {
    color: var(--comply-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Tools Overview Section */
.tools-overview-section {
    background-color: #ffffff;
}

.tools-block {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
}

.premium-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4dc 100%);
    border: 2px solid var(--comply-green-light);
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
}

.tools-list li:last-child {
    border-bottom: none;
}

/* Premium Page Styles */
.premium-feature-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.premium-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.premium-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--comply-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.premium-icon {
    font-size: 2rem;
    color: var(--comply-green);
}

.coming-soon-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--comply-dark);
}

.premium-cta-box {
    background: linear-gradient(135deg, var(--comply-green-light) 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid var(--comply-green-light);
}

.benefit-card {
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--comply-green);
}

/* complyCI Section Styles */
.complyci-feature-box {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--comply-green-light);
}

.benefit-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.benefit-icon-large {
    font-size: 3rem;
    color: var(--comply-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-card-header {
        padding: 0.75rem 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-main-title {
        font-size: 2.25rem;
    }
    
    .hero-main-subtitle {
        font-size: 1rem;
    }
    
    .hero-slideshow {
        height: 500px;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .solution-title {
        font-size: 1.25rem;
    }
}

/* Prices Page Styles */
.prices-page .page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid var(--comply-green-light);
}

.prices-page .card {
    transition: all 0.3s ease;
}

.prices-page .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.prices-page .chart-container {
    min-height: 400px;
}

.prices-page .time-range-selector .btn {
    min-width: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.prices-page .time-range-selector .btn:hover {
    background-color: var(--comply-green-light);
    border-color: var(--comply-green);
    color: var(--comply-green);
}

.prices-page .time-range-selector .btn.active {
    background-color: var(--comply-green);
    border-color: var(--comply-green);
    color: white;
}

.prices-page .chart-info {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.prices-page .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.prices-page .rin-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prices-page .rin-checkboxes .form-check {
    margin-bottom: 0.5rem;
}

.prices-page .rin-checkboxes .form-check-input {
    cursor: pointer;
}

.prices-page .rin-checkboxes .form-check-label {
    cursor: pointer;
    margin-left: 0.25rem;
}

/* RIN badge colors matching chart colors exactly */
.prices-page .rin-badge-d3 {
    background-color: rgb(59, 130, 246);
    color: white;
}

.prices-page .rin-badge-d4 {
    background-color: rgb(34, 197, 94);
    color: white;
}

.prices-page .rin-badge-d5 {
    background-color: rgb(251, 191, 36);
    color: #1f2937;
}

.prices-page .rin-badge-d6 {
    background-color: rgb(14, 165, 233);
    color: white;
}

/* Responsive adjustments for prices page */
@media (max-width: 768px) {
    .prices-page .time-range-selector {
        margin-top: 1rem;
        width: 100%;
    }
    
    .prices-page .time-range-selector .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .prices-page .chart-container {
        height: 300px;
        min-height: 300px;
    }
}