:root {
    /* Core color palette */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    /* Grays */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    /* Green palette */
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #86efac;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    /* Red palette */
    --red-300: #fca5a5;
    --red-700: #b91c1c;
    /* Yellow palette */
    --yellow-400: #facc15;
    --yellow-700: #a16207;
    /* Layout variables */
    --card-border-radius: 0.75rem;
    --btn-border-radius: 0.5rem;
    --input-border-radius: 0.5rem;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

/* Base Styles */
html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--gray-100);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.display-5 {
    font-weight: 700;
}

.display-6 {
    font-weight: 600;
}

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

.text-success {
    color: var(--green-500) !important;
}

/* Layout Components */
.container {
    max-width: 1400px;
}

/* Spacing utilities */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-7 {
    padding-top: 10rem;
}

.my-6 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.navbar-nav .nav-item {
    margin-left: 1rem;
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover {
        color: var(--green-500) !important;
    }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--green-500);
        }

/* Cards */
.card {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

    .card.hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg) !important;
    }

.card-body {
    padding: 1.5rem;
}

/* Rounded utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Tool icons and badges */
.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

    .badge.bg-success {
        background-color: var(--green-500) !important;
    }

        .badge.bg-success.bg-opacity-10 {
            background-color: rgba(16, 185, 129, 0.1) !important;
            color: var(--green-500);
        }

/* Icon styling */
.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-slate-100 {
    background-color: rgba(236, 253, 245, 0.7);
}

.bg-success.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Color utilities */
.bg-light {
    background-color: var(--light) !important;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--btn-border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.1rem;
}

.btn-outline-secondary {
    color: var(--secondary);
    border-color: var(--gray-300);
}

    .btn-outline-secondary:hover {
        background-color: var(--gray-100);
        color: var(--dark);
        border-color: var(--gray-300);
    }

.btn-outline-dark {
    color: var(--dark);
    border-color: var(--gray-300);
}

    .btn-outline-dark:hover {
        background-color: var(--dark);
        color: white;
    }

.btn-primary,
.btn-success,
.cookie-accept-btn {
    background-color: var(--green-500) !important;
    border-color: var(--green-500) !important;
}

    .btn-primary:hover,
    .btn-success:hover,
    .cookie-accept-btn:hover {
        background-color: var(--green-600) !important;
        border-color: var(--green-600) !important;
    }


/* Tables */
.table {
    font-size: 0.875rem;
}

    .table thead th {
        font-weight: 600;
        color: var(--secondary);
        border-bottom-width: 1px;
    }

    .table tbody tr:nth-of-type(odd) {
        background-color: rgba(209, 250, 229, 0.2);
    }

    .table tbody tr:hover {
        background-color: rgba(167, 243, 208, 0.3);
    }

/* Form controls */
.form-control,
.form-select {
    border-radius: var(--input-border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control,
.form-select,
.input-group-text {
    background-color: var(--light);
}

    .form-control:focus,
    .form-select:focus,
    .form-check-input:focus,
    .accordion-button:focus,
    .btn:focus {
        border-color: var(--green-500);
        box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
        background-color: white;
    }

.input-group-text {
    border-radius: 0 var(--input-border-radius) var(--input-border-radius) 0;
    background-color: var(--gray-200);
}

.input-group:focus-within .input-group-text {
    border-color: var(--green-500);
}

/* Accordion styling */
.accordion-button:not(.collapsed)::after {
    background-color: var(--green-500);
    border-radius: 50%;
}

/* Footer styling */
.footer {
    flex-shrink: 0;
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

/* Footer links styling */
.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-links-group {
    display: flex;
    align-items: center;
}

.footer-links-divider {
    height: 16px;
    width: 1px;
    background-color: var(--gray-300);
    margin: 0 1rem;
}

.footer-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.75rem;
    white-space: nowrap;
}

.footer-links-group:first-child a:first-child {
    margin-left: 0;
}

.footer-links-group:last-child a:last-child {
    margin-right: 0;
}

.footer-links a:hover {
    color: var(--green-500);
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUpBanner 0.5s ease-out;
    border-top: 2px solid var(--green-500);
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 2rem;
}

.cookie-text-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--green-500);
    margin-right: 1rem;
    flex-shrink: 0;
}

.cookie-text-container p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie table styling */
.cookie-table th {
    background-color: rgba(209, 250, 229, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links-group {
        margin-bottom: 0.75rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-links a {
        white-space: normal;
        text-align: center;
    }

    .footer-links-divider {
        display: none;
    }

    .footer-links-separator {
        width: 80%;
        height: 1px;
        background-color: var(--gray-300);
        margin: 0.75rem 0;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-text-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: row;
    }

    .cookie-buttons button {
        flex: 1;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Text alignment utilities */
.text-justify {
    text-align: justify;
}

/* Range slider styling */
.form-range {
    height: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--green-500);
}

.form-range::-webkit-slider-thumb:hover {
    background-color: var(--green-600);
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--green-700);
}

.form-range::-moz-range-thumb {
    background-color: var(--green-500);
}

.form-range::-moz-range-thumb:hover {
    background-color: var(--green-600);
}

.form-range::-moz-range-thumb:active {
    background-color: var(--green-700);
}

.form-range::-webkit-slider-runnable-track {
    background-color: var(--green-200);
}

.form-range::-moz-range-track {
    background-color: var(--green-200);
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Alpha Banner Styling */
.alpha-banner {
    position: relative;
    background-color: var(--primary);
    color: white;
    z-index: 1;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.alpha-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alpha-banner-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alpha-banner-link:hover {
    color: white;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .alpha-banner {
        font-size: 0.75rem;
        padding: 0.75rem 0;
    }

    .alpha-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* Responsive border utilities for summary cards */
@media (min-width: 576px) {
    .border-sm-end {
        border-right: 1px solid var(--gray-300) !important;
    }
}

