* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

.search-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

button {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.result-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.result-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-item h3 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 18px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

.detail-value {
    color: #333;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    font-size: 18px;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
}

.info-message {
    color: #27ae60;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.loading {
    color: #f39c12;
}

.success {
    color: #27ae60;
}

/* استایل‌های بخش محاسبه مالیات */
.tax-calculation-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tax-calculation-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #3498db;
    padding-bottom: 8px;
}

.tax-inputs {
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

.checkbox-container label {
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

.income-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.income-input input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 250px;
    text-align: left;
    direction: ltr;
}

.tax-result {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.tax-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.tax-result-item.highlight {
    font-weight: bold;
    color: #2c3e50;
    border-bottom: none;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #3498db;
}

.tax-label {
    color: #555;
    font-weight: bold;
}

.tax-value {
    color: #333;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .income-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .income-input input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
}