.back-navigation {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    color: #2f3bcc;
    text-decoration: none;
    font-weight: 500;
}

.back-navigation:hover {
    color: #1e2a8a;
}

.back-arrow {
    margin-right: 8px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    margin-top: 20px;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.calculator-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-content {
    display: flex;
/*    align-items: center;*/
    padding: 16px;
}

.icon-container {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.calculator-icon {
    width: 32px;
    height: 32px;
}

.calculator-icon-fallback {
    font-size: 24px;
    line-height: 1;
}

.text-container {
    flex: 1;
    margin-right: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.card-description {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-bottom: 0;
}

.chevron-container {
    padding: 4px;
}

.chevron {
    font-size: 18px;
    color: #666;
    font-weight: 300;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    padding: 20px;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.input-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 120px;
}

.input-field {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100px;
    text-align: right;
    margin-right: 8px;
}

.input-field:focus {
    outline: none;
    border-color: #2f3bcc;
    box-shadow: 0 0 0 2px rgba(47, 59, 204, 0.1);
}

.input-unit {
    font-size: 14px;
    color: #666;
    min-width: 30px;
}

/* Results Card */
.results-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    padding: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.result-value {
    font-size: 14px;
    font-weight: 600;
    color: #2f3bcc;
}

/* Formula Image */
.formula-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}

.formula-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 14px;
    }
    
    .icon-container {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .calculator-icon {
        width: 28px;
        height: 28px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .input-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .form-card,
    .results-card {
        padding: 16px;
    }
}