/* Modern styles for the MateenBar Calculator */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f4;
    padding: 20px;
    color: #3c3c3b;
    line-height: 1.6;
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #3c3c3b;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    color: #3c3c3b !important;
    font-weight: 500;
    font-size: 14px;
}
.calculator-container label{
    color: #3c3c3b !important;
}
input, select {
    padding: 12px 16px !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    border-color: #64a70b;
    box-shadow: 0 0 0 3px rgba(100, 167, 11, 0.1);
}

button {
    background-color: #64a70b;
    color: white;
    border: none;
    padding: 15px 24px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin: 25px 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #5a9309;
    transform: translateY(-1px);
}

.results {
    margin-top: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 12px;
    border: 4px solid #64a70b;
}

.results h2 {
    color: #3c3c3b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}
select#spacing , select#bar-size {
    width: 100%;
}
/* Responsive adjustments */
@media (max-width: 480px) {
    .calculator-container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    input, select, button {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .input-group {
        margin-bottom: 16px;
    }
}

/* Backend work steps table styling */
.backend-work-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 35px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.backend-work-table th,
.backend-work-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
    color: #3c3c3b;
}

.backend-work-table th {
    background-color: #f0f7e6;
    font-weight: 600;
    color: #64a70b;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.backend-work-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.backend-work-table tbody tr:hover {
    background-color: #f0f7e6;
}

/* Calculation table styling */
.calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.calculation-table th,
.calculation-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
     color: #3c3c3b;
}

.calculation-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #3c3c3b;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.steel-header {
    background-color: #f5f5f5;
    color: #3c3c3b;
}

.pinkbar-header {
    background-color: #f0f7e6;
    color: #64a70b;
}

.calculation-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.calculation-table tbody tr:hover {
    background-color: #f0f7e6;
}

.cost-row {
    background-color: #f9f9f9 !important;
}


/* Responsive table */
@media (max-width: 768px) {
    .backend-work-table {
        font-size: 13px;
    }
    
    .backend-work-table th,
    .backend-work-table td {
        padding: 10px 12px;
    }
    
    .calculation-table {
        font-size: 13px;
    }
    
    .calculation-table th,
    .calculation-table td {
        padding: 10px 12px;
    }
}

/* WordPress compatibility */
.wp-block-embed .calculator-container {
    width: 100%;
}
