/* Estimator-specific styles */
/* Industrial/Clean Estimator Styles */
.estimator-main {
    min-height: calc(100vh - 180px);
    padding: 2rem;
    background-color: #f5f5f5;
}

header {
    background: none;
    padding: 1rem 2rem;
    position: relative;
    z-index: 100;
    text-align: center;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

header .tagline {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.estimator-card {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.estimator-card h2 {
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.input-section, .results-section, .prep-section {
    margin-bottom: 3rem;
}

.prep-section {
    background: #f8f9fa;
    border: 1px solid #e3e9ed;
    border-radius: 8px;
    padding: 1.5rem;
}

.input-section h3, .results-section h3, .prep-section h3 {
    color: #2c2c2c;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
}

.input-group {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.input-group:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

.input-group label {
    font-weight: 500;
    color: #555;
    font-size: 1rem;
}

.input-group input[type="number"],
.input-group input[type="range"],
.input-group select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 174, 55, 0.2);
}

.input-group input[type="range"] {
    background: transparent;
    border: none;
    padding: 0;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: linear-gradient(to right, var(--primary-color) 0%, #ddd 100%);
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.value-display {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.6rem;
    background: white;
    border-radius: 4px;
    min-width: 80px;
    border: 2px solid var(--primary-color);
    font-family: monospace;
}

.results-section {
    margin-top: 3rem;
}

.result-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 2rem;
    border: 2px solid #ddd;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-item.primary {
    background: var(--primary-color);
    margin: 1.5rem -1.5rem 0;
    padding: 1.5rem;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2c2c;
}

.result-label {
    color: #555;
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1.2rem;
}

.result-item.primary .result-value {
    font-size: 2.2rem;
    color: #2c2c2c;
    font-weight: 700;
}

.result-unit {
    color: #666;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Grit section styles */
.grit-section {
    margin-bottom: 2rem;
}

.grit-section h3 {
    color: #2c2c2c;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
}

.grit-controls {
    display: grid;
    gap: 1.5rem;
}

.grit-type-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e8e8e8;
}

.grit-type-header {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddd;
}

.grit-item {
    display: grid;
    grid-template-columns: 200px auto 150px 120px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.grit-item:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

.grit-item label {
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grit-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.speed-value {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    min-width: 70px;
    border: 2px solid var(--primary-color);
    font-family: monospace;
}

.speed-label {
    font-weight: 500;
    color: #555;
    text-align: center;
}

.speed-value-readonly {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    border: 2px solid #ddd;
    font-family: monospace;
    min-width: 120px;
}

.calculation-details {
    margin-bottom: 1.5rem;
}

.grit-breakdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.grit-breakdown h4 {
    color: #2c2c2c;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.breakdown-list {
    display: grid;
    gap: 0.75rem;
}

.breakdown-section {
    margin: 1.5rem 0 1rem 0;
}

.breakdown-section h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #bdc3c7;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
}

.breakdown-item.prep-task {
    border-left-color: #27ae60;
}

.breakdown-item:hover {
    background: #f5f5f5;
}

.breakdown-grit {
    font-weight: 600;
    color: #333;
}

.breakdown-time {
    font-weight: 500;
    color: var(--primary-color);
}

/* Responsive adjustments for grit controls */
@media (max-width: 768px) {
    .grit-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .grit-item label {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .estimator-main {
        padding: 1rem;
    }
    
    .estimator-card {
        padding: 1.5rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .grit-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    
    .grit-item label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    header nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    header h1 a {
        font-size: 1.5rem;
    }
    
    .estimator-card h2 {
        font-size: 1.5rem;
    }
}
