/* Coverage Calculator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding-top: 44px;
}

/* Layout Shell - Sidebar + Main Content */
.layout-shell {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        width: 16rem;
        flex-shrink: 0;
        position: sticky;
        top: 60px;
        overflow-y: auto;
        background: #1f1f1f;
        border-right: 1px solid #333333;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem;
        border-bottom: 1px solid #333333;
        flex-shrink: 0;
    }

    .sidebar-icon {
        width: 2.5rem;
        height: 2.5rem;
        background: #2d5016;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .sidebar-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #f0f0f0;
        margin: 0;
    }

    .sidebar-subtitle {
        font-size: 0.75rem;
        color: #9ca3af;
        margin: 0;
    }
}

/* Main Content Area */
.layout-main {
    flex: 1;
    overflow-y: auto;
    padding-top: 5px;
    min-height: 0;
}

/* Top navigation styles now in shared.css */

/* Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: #1f1f1f;
    border: 1px solid #333333;
    border-left: 4px solid #2d5016;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1rem;
}

.subtitle {
    color: #b0b0b0;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #3a3a3a;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.select-input,
.dimension-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid #3d7a2e;
    border-radius: 0.75rem;
    background: #1a1a1a;
    color: #f0f0f0;
    transition: all 0.2s;
}

.select-input:focus,
.dimension-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3d7a2e;
    border-color: #3d7a2e;
}

.select-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Options Row */
.options-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background: #2a2a2a;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #3a3a3a;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #3d7a2e;
    cursor: pointer;
}

/* Dimension Inputs */
.dimension-inputs {
    margin-bottom: 3rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dual-input {
    display: flex;
    gap: 0.5rem;
}

.dual-input-item {
    flex: 1;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    color: #b0b0b0;
    margin-bottom: 0.25rem;
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #2d5016;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #3d7a2e;
}

.result-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.result-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.result-sub {
    font-size: 1.125rem;
    color: white;
    margin-top: 0.5rem;
}

/* Recommended Minimums */
.recommended-min-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.recommended-min-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #2a2a2a;
    border: 1px solid #3d7a2e;
    border-left: 4px solid #3d7a2e;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.recommended-min-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.recommended-min-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.recommended-min-card p {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Cubic Yards -> Tons Converter */
.converter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d7a2e;
    margin-bottom: 0.5rem;
}

.converter-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.converter-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Fields showing a computed (output) value are dimmed and read-only-styled */
.dimension-input.is-output {
    background: #232323;
    color: #9fd6b0;
    border-color: #2d5016;
    font-weight: 600;
}

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 2rem;
}

.footer-link a {
    color: #3d7a2e;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: #2d5016;
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav-links {
        display: none;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .selection-grid,
    .input-grid,
    .converter-fields {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .options-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 44px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .result-value {
        font-size: 2rem;
    }
}
