/* Freightliner Carbon Calculator Styles */
/* Based on Freightliner brand colors and design */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Freightliner brand colors extracted from their CSS */
    --fl-green: #006e42;        /* Primary green */
    --fl-dark-green: #00542f;   /* Darker green for hover */
    --fl-orange: #fe8d00;       /* Orange accent */
    --fl-yellow: #ffd500;       /* Yellow for gradients */
    --fl-dark-gray: #333333;    /* Text color */
    --fl-light-gray: #efefef;   /* Background gray */
    --fl-white: #ffffff;
    --fl-black: #000000;
    
    /* Typography */
    --fl-font-primary: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --fl-font-forma: 'forma-djr-micro', sans-serif;
    --fl-font-helvetica: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--fl-font-primary);
    font-weight: 400;
    background-color: var(--fl-light-gray);
    color: var(--fl-dark-gray);
    line-height: 1.6;
}

/* Typography based on Freightliner styles */
h1, h2 {
    font-family: var(--fl-font-helvetica);
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--fl-white);
}

h2 {
    font-size: 2rem;
    color: var(--fl-dark-gray);
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--fl-font-helvetica);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-family: var(--fl-font-helvetica);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
}

/* Container styles */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 320px;
    background-color: var(--fl-green);
    color: var(--fl-white);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    margin-left: 320px;
    flex: 1;
    padding: 2rem;
    background-color: var(--fl-white);
    min-height: 100vh;
}

/* Logo and branding */
.logo {
    margin-bottom: 2rem;
    text-align: center;
}

.logo h1 {
    color: var(--fl-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Transport buttons */
.transport-buttons {
    margin-bottom: 2rem;
}

.transport-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--fl-white);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.transport-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.transport-btn.active {
    background-color: var(--fl-orange);
    border-color: var(--fl-orange);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--fl-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--fl-white);
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    outline: none;
    border-color: var(--fl-orange);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Button styles matching Freightliner */
.calculate-btn, .login-submit {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--fl-orange);
    color: var(--fl-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.calculate-btn:hover, .login-submit:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 141, 0, 0.3);
}

/* Results container */
.results-container {
    background-color: var(--fl-light-gray);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Result cards */
.result-card {
    background-color: var(--fl-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 4px solid var(--fl-green);
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fl-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--fl-green);
    margin-bottom: 0.5rem;
}

/* Comparison section */
.comparison {
    padding: 2rem;
    background: linear-gradient(135deg, var(--fl-green), var(--fl-dark-green));
    color: var(--fl-white);
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    text-align: center;
}

.comparison-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--fl-white);
    margin-bottom: 0.5rem;
}

/* Status messages */
#status {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--fl-white);
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.success {
    background-color: var(--fl-green);
}

.warning {
    background-color: var(--fl-orange);
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.125rem;
    color: var(--fl-green);
    font-weight: 600;
}

/* Depot info */
.depot-info {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Calculation details */
.calculation-detail {
    background-color: #f8f9fa;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
}

.calculation-detail strong {
    color: var(--fl-green);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.breakdown-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

/* Login page specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--fl-light-gray);
}

.login-box {
    background: var(--fl-white);
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    color: var(--fl-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-title {
    color: var(--fl-dark-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.login-form input[type="password"] {
    background-color: var(--fl-white);
    color: var(--fl-dark-gray);
    border: 2px solid #ddd;
}

.login-form input[type="password"]:focus {
    border-color: var(--fl-green);
}

/* Utility classes */
.text-green {
    color: var(--fl-green);
}

.text-orange {
    color: var(--fl-orange);
}

.bg-light-grey {
    background-color: var(--fl-light-gray);
}

.bg-freightliner-green {
    background-color: var(--fl-green);
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
    
    .result-value {
        font-size: 2rem;
    }
}: rgba(255, 255, 255, 0.1);
    color: var(--fl-white);
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.success {
    background-color: var(--fl-green);
}

.warning {
    background-color: var(--fl-orange);
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.125rem;
    color: var(--fl-green);
    font-weight: 600;
}

/* Depot info */
.depot-info {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Calculation details */
.calculation-detail {
    background-color: #f8f9fa;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
}

.calculation-detail strong {
    color: var(--fl-green);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.breakdown-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

/* Login page specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--fl-light-gray);
}

.login-box {
    background: var(--fl-white);
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    color: var(--fl-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-title {
    color: var(--fl-dark-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.login-form input[type="password"] {
    background-color: var(--fl-white);
    color: var(--fl-dark-gray);
    border: 2px solid #ddd;
}

.login-form input[type="password"]:focus {
    border-color: var(--fl-green);
}

/* Utility classes */
.text-green {
    color: var(--fl-green);
}

.text-orange {
    color: var(--fl-orange);
}

.bg-light-grey {
    background-color: var(--fl-light-gray);
}

.bg-freightliner-green {
    background-color: var(--fl-green);
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
    
    .result-value {
        font-size: 2rem;
    }
}: rgba(255, 255, 255, 0.1);
    color: var(--fl-white);
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.success {
    background-color: var(--fl-green);
}

.warning {
    background-color: var(--fl-orange);
}

.calculation-detail {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.calculation-detail strong {
    color: var(--fl-blue);
}

.breakdown-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
}