/* Tax Return System Styles */

/* Income Sources Selection Page */
.ia-income-sources-page {
    min-height: 100vh;
    background-color: none !important;
    padding: 40px 20px;
}

.ia-container {
    max-width: 846px;
    margin: 0 auto;
}

.ia-page-header {
    margin-bottom: 40px;
}

.ia-back-link {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ia-back-link:hover {
    opacity: 1;
}

.ia-page-header h1 {
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 700 !important;
    margin: 0 0 10px 0;
    font-family: var(--font-title);
    text-align: center;
}

.ia-subtitle {
    color: #A79AD1;
    font-size: 18px;
    margin: 0;
}

/* Category Cards */
.ia-income-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.ia-category-card {
    background: #4E30B3;
    border-radius: 16px;
    padding: 48px 50px 48px 50px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.ia-category-card.selected {
    background: #FF7518 !important;
}

.ia-category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -12px !important;
    background: transparent;
}

.ia-category-icon svg {
    width: 60px;
    height: 60px;
}

.ia-category-content {
    flex: 1;
}

.ia-category-card h3 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ia-category-card h3.clickable a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s;
}

.ia-category-card h3.clickable a:hover {
    opacity: 0.8;
}

.ia-category-card h3.not-clickable {
    cursor: default;
}

.ia-category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.ia-category-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.ia-btn {
    padding: 12px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-family: 'Satoshi', sans-serif;
}

.ia-btn-add {
    background: #FF7518;
    color: #fff;
}

.ia-btn-add:hover {
    background: #fff;
    color: #222222;
}

.ia-btn-remove {
    background: #fff;
    color: #222222;
    
}



.ia-btn-continue {
    background: #FFFFFF;
    color: #FF8C42;
    margin-right: auto;
}

.ia-btn-continue:hover {
    background: #F0F0F0;
}

.ia-btn-primary {
    background: #FF8C42;
    color: #FFFFFF;
}

.ia-btn-primary:hover {
    background: #FF7A29;
}

.ia-btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.ia-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Actions Footer */
.ia-actions-footer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ia-actions-footer .ia-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ia-actions-footer .ia-btn-secondary {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.ia-actions-footer .ia-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ia-actions-footer .ia-btn-primary {
    background: #FF8C42;
    color: #FFFFFF;
    border: none;
}

.ia-actions-footer .ia-btn-primary:hover {
    background: #FF7A29;
}

.ia-help-text {
    color: #A79AD1;
    font-size: 14px;
    margin: 0;
}

/* Form Page - matches income sources styling */
.ia-category-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.ia-form-group {
    margin-bottom: 24px;
    background: #4E30B3;
    border-radius: 16px;
    padding: 32px 40px;
}

.ia-form-group label {
    display: flex;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-title);
}

.ia-form-group .required {
    color: #FF8C42;
}

.ia-form-group input[type="text"],
.ia-form-group input[type="number"],
.ia-form-group textarea,
.ia-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.ia-form-group select option {
    background: #4E30B3;
    color: #FFFFFF;
}

.ia-form-group input:focus,
.ia-form-group textarea:focus,
.ia-form-group select:focus {
    outline: none;
    border-color: #FF8C42;
    background: rgba(255, 255, 255, 0.15);
}

.ia-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.ia-form-group input::placeholder,
.ia-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ia-input-wrapper {
    position: relative;
}

.ia-input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
}

.ia-input-wrapper input {
    padding-left: 36px;
}

/* Currency input fields */
.ia-form-group input[type="number"].ia-currency-input {
    padding-left: 35px !important;
}

/* Radio & Checkbox Groups */
.ia-radio-group,
.ia-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Radio buttons - auth.css style */
.ia-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ia-radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF8C42;
}

.ia-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ia-radio-label .radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s;
}

.ia-radio-label input[type="radio"]:checked ~ .radio-circle {
    border-color: #FF8C42;
}

.ia-radio-label input[type="radio"]:checked ~ .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF8C42;
}

.ia-radio-label span {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
}

/* Checkboxes - keep original style */
.ia-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ia-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF8C42;
}

.ia-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.ia-checkbox-label span {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
}

/* Notice */
.ia-notice {
    background: rgba(255, 140, 66, 0.15);
    border-left: 4px solid #FF8C42;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ia-notice p {
    color: #FFFFFF;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.ia-notice-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #FFC107;
}

/* Form Actions */
.ia-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding: 0;
}

/* File Upload */
.ia-file-existing {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
}

input[type="file"]:hover {
    border-color: #FF8C42;
    background: rgba(255, 255, 255, 0.08);
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: #FF8C42;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-weight: 500;
    font-family: var(--font-body);
}

input[type="file"]::file-selector-button:hover {
    background: #FF7A29;
}

/* Upload Documents Page */
.ia-upload-section {
    margin-top: 40px;
}

.ia-drop-zone {
    background: linear-gradient(135deg, rgba(105, 78, 187, 0.4) 0%, rgba(78, 48, 179, 0.6) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    transition: all 0.3s;
}

.ia-drop-zone.drag-over {
    border-color: #FF7518;
    background: linear-gradient(135deg, rgba(255, 117, 24, 0.2) 0%, rgba(105, 78, 187, 0.4) 100%);
}

.ia-drop-zone-icon {
    margin: 0 auto 30px;
}

.ia-drop-zone-icon svg {
    display: block;
    margin: 0 auto;
}

.ia-drop-text {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 30px 0;
}

.ia-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF !important;
    color: #4E30B3 !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ia-btn-upload:hover {
    background: #F5F5F5 !important;
    transform: translateY(-2px);
}

.ia-btn-upload svg {
    width: 20px;
    height: 20px;
}

.ia-btn-upload svg path {
    stroke: #FF7518;
}

/* Loading State */
.ia-upload-loading {
    background: linear-gradient(135deg, rgba(105, 78, 187, 0.4) 0%, rgba(78, 48, 179, 0.6) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
}

.ia-loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ia-upload-loading p {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 30px 0;
}

/* Files List */
.ia-files-list {
    margin-top: 60px;
}

.ia-files-list h3 {
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.ia-files-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ia-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    transition: opacity 0.3s;
}

.ia-file-name-col {
    flex: 1;
    min-width: 0;
}

.ia-file-name {
    color: #FF7518;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ia-file-size-col {
    color: #A79AD1;
    font-size: 16px;
    margin: 0 40px;
    min-width: 80px;
    text-align: right;
}

.ia-file-actions-col {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ia-file-action {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-file-action:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ia-file-action svg {
    display: block;
}

/* Form Actions */
.ia-form-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

.ia-form-actions .ia-btn-secondary {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.ia-form-actions .ia-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ia-form-actions .ia-btn-secondary svg {
    margin-right: 8px;
}

.ia-form-actions .ia-btn-primary svg {
    margin-left: 8px;
}

/* Dashboard Updates */
.ia-section-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ia-view-all-link {
    color: #FF8C42;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ia-view-all-link:hover {
    color: #FF7A29;
}

.ia-tax-year-dates,
.ia-tax-year-deadline {
    color: #A79AD1;
    font-size: 14px;
    margin: 4px 0;
}

.ia-selected-categories-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #A79AD1;
    font-size: 14px;
}

.ia-selected-categories-info a {
    color: #FF8C42;
    text-decoration: none;
    margin-left: 8px;
}

.ia-dashboard-steps li {
    cursor: default;
    transition: color 0.3s;
}

.ia-dashboard-steps li.current {
    cursor: pointer;
}

.ia-dashboard-steps li.current:hover {
    opacity: 0.8;
}

/* File Upload */
.ia-file-existing {
    margin-top: 8px;
    color: #A79AD1;
    font-size: 14px;
}

/* Uploaded File Card - Beautiful Design */
.ia-uploaded-file-card {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ia-uploaded-file-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 140, 66, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ia-file-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF8C42 0%, #FF7518 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.ia-file-card-content {
    flex: 1;
    min-width: 0;
}

.ia-file-card-name {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ia-file-card-hint {
    color: #A79AD1;
    font-size: 13px;
    opacity: 0.8;
}

.ia-file-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ia-file-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ia-file-btn-view {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ia-file-btn-view:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ia-file-btn-download {
    background: linear-gradient(135deg, #FF8C42 0%, #FF7518 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 117, 24, 0.3);
}

.ia-file-btn-download:hover {
    background: linear-gradient(135deg, #FF9D5C 0%, #FF8632 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 117, 24, 0.4);
}

input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #FF8C42;
}

/* Responsive */
@media (max-width: 768px) {
    .ia-category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ia-category-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .ia-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ia-form {
        padding: 20px;
    }
    
    .ia-form-actions {
        flex-direction: column;
    }
    
    .ia-uploaded-file-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ia-file-card-content {
        width: 100%;
    }
    
    .ia-file-card-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .ia-file-btn {
        width: 100%;
    }
}

/* Self-Employment Repeater */
.ia-employment-entry {
    position: relative;
}

.ia-employment-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 32px 0;
}

.ia-employment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ia-employment-title {
    font-family: 'Clash Grotesk Display', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.ia-remove-employment-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ia-remove-employment-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #FF6B6B;
}

.ia-btn-add-entry {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 32px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ia-btn-add-entry:hover {
    border-color: #FF7518;
    color: #FF7518;
    background: rgba(255, 117, 24, 0.08);
}

.ia-existing-files {
    margin-top: 10px;
}

/* Country code dropdown */
.ia-country-dropdown {
    position: relative;
    width: 100%;
}

.ia-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ia-country-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ia-country-dropdown.open .ia-country-trigger {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 0 2px rgba(255, 117, 24, 0.3);
}

.ia-country-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ia-country-dropdown.open .ia-country-trigger svg {
    transform: rotate(180deg);
}

.ia-country-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-country-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #362285;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.ia-country-dropdown.open .ia-country-panel {
    display: block;
}

.ia-country-search {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    outline: none;
    box-sizing: border-box;
}

.ia-country-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ia-country-list {
    max-height: 200px;
    overflow-y: auto;
}

.ia-country-list::-webkit-scrollbar {
    width: 6px;
}

.ia-country-list::-webkit-scrollbar-track {
    background: transparent;
}

.ia-country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.ia-country-item {
    padding: 10px 16px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.15s ease;
}

.ia-country-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.ia-country-item.selected {
    background: rgba(255, 117, 24, 0.15);
    color: #FF7707;
}
