:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #ffffff;
    --foreground: #020817;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
}

.color-code {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
}

.color-input {
    border-radius: 5px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
}

h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

h4.card-title {
    color: #1a237e;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
}

.calculator-container {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.calculator-screen {
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.125rem);
    font-family: 'Inter', monospace;
    font-size: 1.25rem;
    text-align: right;
    padding: 0.5rem;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0 0 0;
}

.calculator-buttons .btn {
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 0.25rem);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-light {
    background-color: var(--muted);
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-light:hover {
    background-color: var(--border);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.calculator-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

a .card {
    color: var(--foreground);
}

.operator {
    background-color: var(--muted);
    font-weight: 500;
}

/* Navbar Toggler Button Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: background-color 0.2s ease-in-out;
    border-radius: 0.375rem;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    transition: transform 0.2s ease-in-out;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}

button.navbar-toggler {
    border: none;
}

/* Footer Styles */
footer {
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: var(--light);
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

footer .footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

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

footer .copyright {
    color: var(--text-muted);
    margin: 0;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    footer .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    footer .copyright {
        order: 2;
    }

    footer .footer-links {
        order: 1;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0;
    }

    footer .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

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

.model-info {
    font-size: 0.9rem;
    color: #6c757d;
}

.token-input {
    position: relative;
}

.token-input .form-control {
    padding-right: 70px;
}

.token-input .token-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

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

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

.recommendations ul li {
    margin-bottom: 10px;
}

.recommendations ul ul {
    margin-top: 5px;
    padding-left: 20px;
}

.token-estimate {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.info-tooltip {
    cursor: help;
}

/* Custom styling for the model selection */
.model-select {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.model-select:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculator-container {
        padding: 10px;
    }
    
    .results-card {
        margin-top: 20px;
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    border-radius: 20px;
    margin: 1rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 1%, transparent 1%),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.1) 1%, transparent 1%);
    background-size: 40px 40px;
    animation: backgroundMove 60s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.hero-section h1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: #4a5568;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-shape-1,
.hero-shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 0;
}

.hero-shape-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}
