/**
 * JustGoTax Pro Custom CSS
 * Styled to match https://justgotax.in/
 */

:root {
    --justtaxjo-primary-color: #ff6600;
    --justtaxjo-secondary-color: #0a2463;
    --justtaxjo-accent-color: #3e92cc;
    --justtaxjo-light-color: #f8f9fa;
    --justtaxjo-dark-color: #333333;
    --justtaxjo-success-color: #28a745;
    --justtaxjo-warning-color: #ffc107;
    --justtaxjo-danger-color: #dc3545;
    --justtaxjo-info-color: #17a2b8;
    --justtaxjo-border-color: #dee2e6;
    --justtaxjo-border-radius: 4px;
    --justtaxjo-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --justtaxjo-transition: all 0.3s ease;
    --justtaxjo-font-family: 'Poppins', sans-serif;
}

/* Common Elements */
.justtaxjo-container {
    font-family: var(--justtaxjo-font-family);
    color: var(--justtaxjo-dark-color);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.justtaxjo-section {
    margin-bottom: 30px;
}

.justtaxjo-title {
    color: var(--justtaxjo-secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.justtaxjo-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--justtaxjo-primary-color);
}

/* Buttons */
.justtaxjo-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--justtaxjo-border-radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--justtaxjo-transition);
    border: none;
    font-family: var(--justtaxjo-font-family);
}

.justtaxjo-button-primary {
    background-color: var(--justtaxjo-primary-color);
    color: white;
}

.justtaxjo-button-primary:hover {
    background-color: #e55a00;
    color: white;
}

.justtaxjo-button-secondary {
    background-color: var(--justtaxjo-secondary-color);
    color: white;
}

.justtaxjo-button-secondary:hover {
    background-color: #081d52;
    color: white;
}

.justtaxjo-button-outline {
    background-color: transparent;
    border: 1px solid var(--justtaxjo-primary-color);
    color: var(--justtaxjo-primary-color);
}

.justtaxjo-button-outline:hover {
    background-color: var(--justtaxjo-primary-color);
    color: white;
}

/* Forms */
.justtaxjo-form {
    background-color: white;
    padding: 25px;
    border-radius: var(--justtaxjo-border-radius);
    box-shadow: var(--justtaxjo-box-shadow);
}

.justtaxjo-form-row {
    margin-bottom: 20px;
}

.justtaxjo-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--justtaxjo-secondary-color);
}

.justtaxjo-form-input,
.justtaxjo-form-select,
.justtaxjo-form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--justtaxjo-border-color);
    border-radius: var(--justtaxjo-border-radius);
    font-family: var(--justtaxjo-font-family);
    font-size: 14px;
    transition: var(--justtaxjo-transition);
}

.justtaxjo-form-input:focus,
.justtaxjo-form-select:focus,
.justtaxjo-form-textarea:focus {
    border-color: var(--justtaxjo-primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.justtaxjo-form-submit {
    background-color: var(--justtaxjo-primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--justtaxjo-border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--justtaxjo-transition);
    font-family: var(--justtaxjo-font-family);
}

.justtaxjo-form-submit:hover {
    background-color: #e55a00;
}

/* Tables */
.justtaxjo-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: var(--justtaxjo-box-shadow);
    border-radius: var(--justtaxjo-border-radius);
    overflow: hidden;
}

.justtaxjo-table th,
.justtaxjo-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--justtaxjo-border-color);
}

.justtaxjo-table th {
    background-color: var(--justtaxjo-secondary-color);
    color: white;
    font-weight: 500;
}

.justtaxjo-table tr:last-child td {
    border-bottom: none;
}

.justtaxjo-table tr:hover {
    background-color: rgba(62, 146, 204, 0.05);
}

/* Status Indicators */
.justtaxjo-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: white;
}

.justtaxjo-status-pending {
    background-color: var(--justtaxjo-warning-color);
}

.justtaxjo-status-in_progress {
    background-color: var(--justtaxjo-info-color);
}

.justtaxjo-status-completed {
    background-color: var(--justtaxjo-success-color);
}

.justtaxjo-status-cancelled {
    background-color: var(--justtaxjo-danger-color);
}

.justtaxjo-status-approved {
    background-color: var(--justtaxjo-success-color);
}

.justtaxjo-status-rejected {
    background-color: var(--justtaxjo-danger-color);
}

/* Dashboard */
.justtaxjo-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--justtaxjo-border-color);
}

.justtaxjo-dashboard-title {
    color: var(--justtaxjo-secondary-color);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.justtaxjo-dashboard-menu {
    display: flex;
    background-color: var(--justtaxjo-light-color);
    border-radius: var(--justtaxjo-border-radius);
    margin-bottom: 25px;
    overflow: hidden;
}

.justtaxjo-dashboard-menu-item {
    padding: 12px 20px;
    color: var(--justtaxjo-dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--justtaxjo-transition);
    position: relative;
}

.justtaxjo-dashboard-menu-item:hover {
    color: var(--justtaxjo-primary-color);
}

.justtaxjo-dashboard-menu-item.active {
    color: var(--justtaxjo-primary-color);
    background-color: white;
}

.justtaxjo-dashboard-menu-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--justtaxjo-primary-color);
}

.justtaxjo-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.justtaxjo-dashboard-widget {
    background-color: white;
    border-radius: var(--justtaxjo-border-radius);
    padding: 20px;
    box-shadow: var(--justtaxjo-box-shadow);
    transition: var(--justtaxjo-transition);
}

.justtaxjo-dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.justtaxjo-dashboard-widget-title {
    color: var(--justtaxjo-secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.justtaxjo-dashboard-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--justtaxjo-primary-color);
    margin-bottom: 10px;
}

/* Services */
.justtaxjo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.justtaxjo-service-item {
    background-color: white;
    border-radius: var(--justtaxjo-border-radius);
    overflow: hidden;
    box-shadow: var(--justtaxjo-box-shadow);
    transition: var(--justtaxjo-transition);
}

.justtaxjo-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.justtaxjo-service-header {
    padding: 20px;
    background-color: var(--justtaxjo-secondary-color);
    color: white;
}

.justtaxjo-service-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.justtaxjo-service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--justtaxjo-primary-color);
    margin-top: 10px;
}

.justtaxjo-service-content {
    padding: 20px;
}

.justtaxjo-service-description {
    margin-bottom: 20px;
    color: var(--justtaxjo-dark-color);
}

.justtaxjo-service-actions {
    display: flex;
    gap: 10px;
}

/* Messages */
.justtaxjo-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: var(--justtaxjo-light-color);
    border-radius: var(--justtaxjo-border-radius);
    margin-bottom: 20px;
}

.justtaxjo-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: var(--justtaxjo-border-radius);
    max-width: 80%;
}

.justtaxjo-message-client {
    background-color: var(--justtaxjo-primary-color);
    color: white;
    margin-left: auto;
}

.justtaxjo-message-agent {
    background-color: var(--justtaxjo-secondary-color);
    color: white;
    margin-right: auto;
}

.justtaxjo-message-content {
    margin-bottom: 5px;
}

.justtaxjo-message-meta {
    font-size: 12px;
    opacity: 0.8;
}

.justtaxjo-message-form {
    display: flex;
    gap: 10px;
}

.justtaxjo-message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--justtaxjo-border-color);
    border-radius: var(--justtaxjo-border-radius);
}

.justtaxjo-message-submit {
    background-color: var(--justtaxjo-primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--justtaxjo-border-radius);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .justtaxjo-dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .justtaxjo-dashboard-menu {
        flex-direction: column;
    }
    
    .justtaxjo-services-grid {
        grid-template-columns: 1fr;
    }
    
    .justtaxjo-table {
        display: block;
        overflow-x: auto;
    }
}
