/**
 * Public styles for Tax Company Dashboard
 *
 * @since      1.0.0
 * @package    Tax_Company_Dashboard
 */

/* Client Portal Styles */
.tcd-client-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tcd-client-login {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tcd-client-login h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.tcd-client-login .form-group {
    margin-bottom: 20px;
}

.tcd-client-login label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.tcd-client-login input[type="text"],
.tcd-client-login input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.tcd-client-login button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tcd-client-login button:hover {
    background: #005a87;
}

.tcd-client-dashboard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tcd-client-header {
    background: #0073aa;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.tcd-client-header h1 {
    margin: 0;
    font-size: 24px;
}

.tcd-client-content {
    padding: 20px;
}

.tcd-client-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tcd-client-info p {
    margin: 5px 0;
    color: #666;
}

.tcd-tax-returns {
    margin-bottom: 30px;
}

.tcd-tax-returns h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.tcd-tax-return-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.tcd-tax-return-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.tcd-tax-return-item p {
    margin: 5px 0;
    color: #666;
}

.tcd-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tcd-status.draft { background: #f0f0f0; color: #666; }
.tcd-status.in-progress { background: #fff3cd; color: #856404; }
.tcd-status.review { background: #d1ecf1; color: #0c5460; }
.tcd-status.completed { background: #d4edda; color: #155724; }
.tcd-status.filed { background: #cce5ff; color: #004085; }
.tcd-status.rejected { background: #f8d7da; color: #721c24; }

.tcd-documents {
    margin-bottom: 30px;
}

.tcd-documents h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.tcd-document-upload {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 2px dashed #ddd;
    text-align: center;
    margin-bottom: 20px;
}

.tcd-document-upload:hover {
    border-color: #0073aa;
}

.tcd-document-upload input[type="file"] {
    margin-bottom: 10px;
}

.tcd-document-upload button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.tcd-document-list {
    list-style: none;
    padding: 0;
}

.tcd-document-list li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcd-document-list li:hover {
    border-color: #0073aa;
}

.tcd-document-actions {
    display: flex;
    gap: 10px;
}

.tcd-document-actions button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.tcd-document-actions button:hover {
    background: #005a87;
}

.tcd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.tcd-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Public Ticket Creation Forms */
.tcd-public-ticket-form,
.tcd-public-ticket-status {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tcd-public-ticket-form h2,
.tcd-public-ticket-status h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-size: 1.8rem;
}

.tcd-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tcd-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tcd-form-row label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.tcd-form-row input,
.tcd-form-row select,
.tcd-form-row textarea {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tcd-form-row input:focus,
.tcd-form-row select:focus,
.tcd-form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tcd-form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.tcd-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.tcd-submit-btn:hover {
    background: #005a87;
}

.tcd-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tcd-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.tcd-response.tcd-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tcd-response.tcd-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ticket Status Display */
.tcd-ticket-status-details {
    margin-top: 1rem;
}

.tcd-ticket-status-details h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tcd-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.tcd-status-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.tcd-status-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.tcd-status-table tr:last-child td {
    border-bottom: none;
}

.tcd-ticket-message {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.tcd-ticket-message h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.tcd-ticket-message p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.tcd-ticket-error {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.tcd-ticket-error h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.tcd-ticket-error p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tcd-client-portal {
        padding: 10px;
    }
    
    .tcd-client-login {
        margin: 20px auto;
        padding: 20px;
    }
    
    .tcd-document-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tcd-document-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tcd-public-ticket-form,
    .tcd-public-ticket-status {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .tcd-form-row input,
    .tcd-form-row select,
    .tcd-form-row textarea {
        padding: 0.6rem;
    }
    
    .tcd-submit-btn {
        padding: 0.8rem 1.5rem;
    }
}

/* Company Dashboard */
.tcd-company-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}
.tcd-company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.tcd-company-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.tcd-kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}
.tcd-kpi-value {
    font-size: 24px;
    font-weight: 600;
}
.tcd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tcd-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}
.tcd-panel h3 { margin-top: 0; }

/* Loading States */
.tcd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Validation */
.tcd-form-row input:invalid,
.tcd-form-row textarea:invalid {
    border-color: #dc3545;
}

.tcd-form-row input:valid,
.tcd-form-row textarea:valid {
    border-color: #28a745;
}

/* Accessibility */
.tcd-form-row label[for] {
    cursor: pointer;
}

.tcd-submit-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .tcd-public-ticket-form,
    .tcd-public-ticket-status {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tcd-submit-btn {
        display: none;
    }
}