/* Calculator specific styles */
.calculator-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calculator-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.material-item, .labor-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.item-name, .task-name {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.item-quantity, .item-price, .task-hours, .task-rate {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: right;
}

.item-total, .task-total {
    font-weight: bold;
    text-align: right;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    color: #cc0000;
}

.add-item {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.add-item:hover {
    background: #45a049;
}

.section-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.total-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.grand-total {
    margin-bottom: 1.5rem;
}

.grand-total h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.grand-total span {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
}

.save-button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.save-button:hover {
    background: #1976D2;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Responsive design */
@media (max-width: 768px) {
    .material-item, .labor-item {
        grid-template-columns: 1fr 1fr 1fr 1fr 40px;
        font-size: 0.8rem;
    }

    .item-name, .task-name {
        grid-column: 1 / -1;
    }

    .calculator-section {
        padding: 1rem;
    }
}

/* Hero section specific styles */
.hero {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

#estimateTable {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

#estimateTable th,
#estimateTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#estimateTable th {
    background-color: #f2f2f2;
}

#estimateTable tfoot td {
    font-weight: bold;
}
