:root {
    --primary-color: #2F4F4F;
    --secondary-color: #3d5c5c;
    --background-color: #ffffff;
    --text-color: #213547;
    --nav-color: #2F4F4F;
    --header-bg: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    background-color: #eddfda;
    color: var(--text-color);
}

.site-header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0.5rem 0;
    color: #1a1a1a;
}

.nav-bar {
    background-color: var(--nav-color);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.calculator-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.calculation-mode {
    margin-bottom: 2rem;
}

.calculation-mode label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    width: 1.25rem;
    height: 1.25rem;
}

.input-wrapper input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    padding-left: 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group select {
    padding-left: 0.75rem;
    cursor: pointer;
}

.input-wrapper input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    flex: 1;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.comparison i {
    color: var(--primary-color);
    width: 1.5rem;
    height: 1.5rem;
}

.result-box {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.label {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.time {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.details {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Directory Section Styles */
.directory-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.directory-section h2 {
    color: #2f4f4f;
    text-align: center;
    margin-bottom: 2rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.directory-item {
    text-align: center;
}

.directory-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem;
    background: #2f4f4f;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.directory-item a:hover {
    color: var(--secondary-color);
    background: #f1f5f9;
}

/* Responsive Styles */
@media (max-width: 640px) {
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .directory-item a {
        padding: 0.8rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0.25rem;
    }
    
    .calculator-container {
        padding: 0.8rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
}