/**
 * Online Payslip Plugin - Frontend Styles
 * RTL Persian stylesheet
 */

.online-payslip-form-wrapper {
    direction: rtl;
    text-align: right;
    font-family: 'Tahoma', 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.payslip-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.payslip-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    direction: rtl;
}

.form-group input[type="file"] {
    padding: 5px;
}

.form-group .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    max-width: none;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.form-submit .button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
}

.form-submit .button-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.form-submit .button-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

/* Result Page Styles */
.online-payslip-result {
    direction: rtl;
    text-align: right;
    font-family: 'Tahoma', 'Arial', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.payslip-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 20px;
}

.payslip-header h2 {
    margin: 0 0 20px 0;
    color: #0073aa;
    font-size: 28px;
}

.payslip-info {
    text-align: right;
    display: inline-block;
}

.payslip-info p {
    margin: 8px 0;
    font-size: 14px;
}

.payslip-content {
    margin: 30px 0;
}

.payslip-section.earnings,
.payslip-section.deductions {
    margin-bottom: 30px;
}

.payslip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.payslip-table th,
.payslip-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

.payslip-table th {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

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

.payslip-table tfoot .total {
    background-color: #e0e0e0;
    font-weight: bold;
    font-size: 16px;
}

.payslip-summary {
    margin: 30px 0;
    text-align: center;
}

.net-pay {
    background: #0073aa;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.net-pay h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.net-pay .amount {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.payslip-description {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.payslip-description h3 {
    margin-top: 0;
    color: #333;
}

.payslip-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.payslip-actions .button {
    margin: 0 10px;
    padding: 12px 25px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .online-payslip-form-wrapper,
    .online-payslip-result {
        padding: 10px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }
    
    .payslip-table {
        font-size: 12px;
    }
    
    .payslip-table th,
    .payslip-table td {
        padding: 8px;
    }
    
    .net-pay .amount {
        font-size: 24px;
    }
}

