/* CombustibleCL Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;
    --secondary: #1e293b;
    --secondary-hover: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --info: #0ea5e9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 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);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-bottom: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-white);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    background: var(--primary);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius);
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #2dd4bf 100%);
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* Featured Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 148, 136, 0.4);
}

.stat-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white);
}

.stat-card .trend {
    font-size: 12px;
    color: var(--success);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Main Section */
main {
    flex: 1;
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.intro-text {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--text-muted);
}

/* Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Database Card */
.db-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 30px;
}

.db-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.db-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
}

/* Filters UI */
.filters-container {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 14px;
    background-color: var(--bg-white);
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    border-color: var(--primary);
}

/* Fuel Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: var(--bg-light);
    color: var(--secondary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--primary-light);
}

.cell-bold {
    font-weight: 600;
    color: var(--secondary);
}

.badge-region {
    background-color: #f1f5f9;
    color: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Calculator Card */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

.calculator-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-calc {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    margin-top: 10px;
}

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

.calc-results {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 20px;
    display: none;
}

.calc-results-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.calc-row.savings {
    color: var(--success);
    font-weight: 700;
    font-size: 15px;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 3px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact page styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-details h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.contact-item-details p, .contact-item-details a {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-item-details a:hover {
    color: var(--primary);
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--border);
}

.toast {
    background-color: var(--success);
    color: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease forwards;
}

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

/* Policy Content Styles */
.policy-content {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.policy-content h2 {
    font-size: 22px;
    color: var(--secondary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.policy-content p {
    margin-bottom: 16px;
    color: var(--text-main);
}

.policy-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 40px 0 20px;
    border-top: 4px solid var(--primary);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary);
}

.footer-about {
    font-size: 14px;
    color: #94a3b8;
    max-width: 400px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #94a3b8;
    margin: 0 10px;
}

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