/**
 * Frontend Styles for Equity Tax Plugin
 */

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.nav-item.active {
    background: #0073aa;
    color: #fff;
}

.nav-item .dashicons {
    margin-right: 8px;
    font-size: 18px;
}

/* User Dashboard */
.equity-tax-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #666;
    font-size: 16px;
}

.dashboard-content {
    display: grid;
    gap: 30px;
}

.dashboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Tax Returns Grid */
.tax-returns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tax-return-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    transition: transform 0.2s ease;
}

.tax-return-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.return-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.return-header h3 {
    margin: 0;
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.return-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.return-actions {
    margin-top: 15px;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.document-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-icon {
    margin-right: 15px;
}

.document-icon .dashicons {
    font-size: 24px;
    color: #0073aa;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.document-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
    border: 2px solid #0073aa;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.action-button:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

.action-button .dashicons {
    font-size: 32px;
    margin-bottom: 10px;
}

.action-button span:last-child {
    font-weight: bold;
}

/* Client Info Summary */
.client-info-summary {
    display: grid;
    gap: 10px;
}

.info-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

/* Documents Page */
.equity-tax-documents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.documents-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Upload Section */
.upload-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.upload-form {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    margin-top: 20px;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: transform 0.2s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.document-header .document-icon {
    margin-right: 15px;
}

.document-header .document-icon .dashicons {
    font-size: 24px;
    color: #0073aa;
}

.document-header .document-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.document-type {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-transform: capitalize;
}

.document-details {
    margin-bottom: 15px;
}

.document-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

/* No Content States */
.no-returns,
.no-documents {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-documents-icon {
    margin-bottom: 20px;
}

.no-documents-icon .dashicons {
    font-size: 48px;
    color: #ccc;
}

/* Profile Page */
.equity-tax-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-content {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.account-info {
    display: grid;
    gap: 10px;
}

.security-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.button-primary {
    background: #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
}

.button-secondary {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.button-secondary:hover {
    background: #e1e1e1;
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
}

.button-link-delete {
    background: none;
    color: #dc3545;
    border: none;
    padding: 6px 12px;
}

.button-link-delete:hover {
    background: #f8d7da;
}

.button .dashicons {
    margin-right: 5px;
    font-size: 16px;
}

/* Tax Calculator Styles */
.equity-tax-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-content {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calculator-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

.calculator-section h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.calculator-actions {
    text-align: center;
    margin-top: 30px;
}

.button-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
}

/* Calculation Results */
.calculation-results {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.calculation-results h2 {
    color: #0073aa;
    margin-bottom: 20px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.result-item.highlight {
    background: #e7f3ff;
    border-left-color: #28a745;
    font-weight: bold;
}

.result-item label {
    font-weight: bold;
    color: #333;
}

.result-item span {
    color: #0073aa;
    font-size: 18px;
    font-weight: bold;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Status Badges */
.status-calculated {
    background: #d1ecf1;
    color: #0c5460;
}

.status-submitted {
    background: #d4edda;
    color: #155724;
}

.payment-status-paid {
    color: #28a745;
    font-weight: bold;
}

.payment-status-unpaid {
    color: #dc3545;
    font-weight: bold;
}

.button-disabled {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-disabled:hover {
    background: #6c757d;
    transform: none;
}

.action-primary {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.action-primary:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* Form Enhancements */
.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Tax Wizard Styles */
.equity-tax-wizard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.wizard-header p {
    color: #666;
    font-size: 16px;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #28a745);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.progress-step.current .step-number {
    background: #0073aa;
    color: #fff;
    transform: scale(1.1);
}

.step-name {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.progress-step.completed .step-name,
.progress-step.current .step-name {
    color: #333;
    font-weight: bold;
}

/* Wizard Content */
.wizard-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.wizard-step h2 {
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.wizard-step p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.radio-option:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 2px;
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.radio-label small {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #0073aa;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background: #e7f3ff;
}

/* W-2 and 1099 Forms */
.w2-form, .form-1099 {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.w2-form h4, .form-1099 h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

/* Deduction Choice */
.deduction-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.choice-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: all 0.2s ease;
}

.choice-card:hover {
    border-color: #0073aa;
}

.choice-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.deduction-amount {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.choice-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Review Section */
.review-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.review-section h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Filing Summary */
.filing-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.summary-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
}

.summary-card h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    background: #e7f3ff;
    margin: 10px -15px;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
}

.service-fee {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.service-fee h3 {
    color: #856404;
    margin-bottom: 15px;
}

.fee-amount {
    font-size: 36px;
    font-weight: bold;
    color: #856404;
    margin: 15px 0;
}

.fee-note {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Filing Actions */
.filing-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    border-top: 2px solid #0073aa;
    margin-top: 10px;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Form Enhancements */
.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .equity-tax-user-dashboard,
    .equity-tax-documents,
    .equity-tax-profile,
    .equity-tax-calculator,
    .equity-tax-wizard {
        padding: 10px;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .nav-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .tax-returns-grid,
    .documents-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions,
    .payment-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* Wizard Responsive */
    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-step {
        flex-direction: row;
        text-align: left;
    }
    
    .step-number {
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .deduction-choice {
        grid-template-columns: 1fr;
    }
    
    .filing-summary {
        grid-template-columns: 1fr;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .filing-actions {
        flex-direction: column;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px;
    }
}
