/* Modern Metal Calculator CSS */
.metal-calculator {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calculator-header {
    background: linear-gradient(135deg, #32333B, #404354);
    padding: 1.5rem;
    color: white;
}

.calculator-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

.calculator-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.calculator-table-container {
    padding: 1.5rem;
    overflow-x: auto;
}

.calculator-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fffff;
}
.calculator-table tr {border:0.2rem solid #D1D1D1;}
.calculator-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 0.1rem 1rem;
    text-align: left;
   
}

.calculator-table td {
    padding: 0.1rem 1rem;
    border: 0 0.2rem 0 0 solid #D1D1D1 ;
    transition: background-color 0.2s;
}

.calculator-table tbody tr:hover {
    background-color: #f8fafc;
}

.metal-type {
    font-weight: 500;
    color: #2c3e50;
text-transform: uppercase;
}

.metal-purity {
    color: #64748b;
    font-size: 0.9rem;
}

.metal-gold .metal-type { color: #b8860b; }
.metal-silver .metal-type { color: #808080; }
.metal-platin .metal-type { color: #4a4a4a; }
.metal-palladium .metal-type { color: #666666; }

.weight-input {
width: 100px;
    padding: 0.2rem;
    border: 0.1rem solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin: 5px 0;
}

.weight-input:focus {
    border-color: #3498db;
    outline: none;
}

.price-column {
    font-family: 'Roboto Mono', monospace;
    text-align: left;
    font-size: 1rem;
}

.total-column {
    font-family: 'Roboto Mono', monospace;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
}

.calculator-footer {
    background: #32333B;
    padding: 1rem 1.5rem;
    border-top: 1px solid #edf2f7;
}

.grand-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.grand-total-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
}

.grand-total-amount {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metal-calculator {
        margin: 1rem;
        border-radius: 8px;
    }

    .calculator-table th,
    .calculator-table td {
        padding: 0.75rem;
    }

    .weight-input {
        width: 80px;
    }

    .hidden-mobile {
        display: none;
    }

    .mobile-details {
        display: block;
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 0.25rem;
    }
}

@media (min-width:1024px) {
 .mobile-details {
        display: none;
    }
}