:root {
    --primary: #ea580c; /* Orange 600 */
    --primary-hover: #c2410c; /* Orange 700 */
    --secondary: #fb923c; /* Orange 400 */
    --accent: #fff7ed; /* Orange 50 */
    
    --bg-main: #1a1005;
    --bg-card: rgba(45, 30, 15, 0.6);
    --border-color: rgba(234, 88, 12, 0.2);
    
    --text-primary: #fff7ed;
    --text-secondary: #fdba74; /* Orange 300 */
    --text-muted: #9ca3af;
    
    --border-radius: 12px;
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    
    /* Subtle background effect */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(234, 88, 12, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(251, 146, 60, 0.05), transparent 25%);
}

.app-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--accent);
}

header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-btn {
    color: var(--text-secondary);
    padding: 0.5rem;
    border: 1px solid transparent;
}

.icon-btn:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
    border-color: var(--border-color);
}

.outline-btn {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.outline-btn:hover {
    background: rgba(234, 88, 12, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Forms */
#calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

select, input[type="datetime-local"] {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

select:focus, input[type="datetime-local"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Hide clock icon on webkit datetime-local for specific styling if needed */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(10000%) hue-rotate(15deg) brightness(1.2) contrast(1.1);
    cursor: pointer;
}

.exit-time-wrapper {
    display: flex;
    gap: 0.5rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--accent);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox input:focus ~ .checkmark {
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.4);
}

/* Vehicle Toggle */
.vehicle-toggle {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.radio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
}

.radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.radio-btn input:checked + span {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.radio-btn span i {
    width: 16px;
    height: 16px;
}

/* Results */
.result-area {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.total-cost {
    text-align: right;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.currency {
    font-size: 1.25rem;
    color: var(--secondary);
    vertical-align: top;
    margin-right: 0.25rem;
}

#final-cost {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.breakdown-row:last-child {
    margin-bottom: 0;
}

.breakdown-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.penalty-row {
    color: var(--primary) !important;
}

.penalty-row span:last-child {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Comparison Table */
.comparison-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
    color: var(--text-muted);
    font-weight: 500;
}

td:last-child, th:last-child {
    text-align: right;
    font-weight: 600;
}

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

tr.highlight td {
    background: rgba(234, 88, 12, 0.1);
    color: var(--accent);
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#comparison-table tbody tr {
    animation: slideDown 0.3s ease forwards;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 0;
        background: white;
    }
    
    .receipt-header {
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
        border-bottom: 2px dashed #000;
        padding-bottom: 1rem;
    }
    
    .receipt-header h2 {
        color: #000;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .receipt-header p {
        color: #666;
        font-size: 0.875rem;
    }
    
    input[type="datetime-local"], select {
        border: none;
        background: transparent;
        appearance: none;
        -webkit-appearance: none;
        color: #000;
        padding: 0;
        font-weight: 600;
    }
    
    .result-area {
        background: transparent;
        border: 1px solid #000;
    }
    
    #final-cost, .currency {
        color: #000;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .row {
        flex-direction: column;
    }
}
