/* taxEfficiencyAnalysis.css - Advanced Tax Efficiency Analysis Styling */

/* Main container and layout */
.tax-efficiency-wrapper {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.tax-efficiency-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    border-radius: 12px 12px 0 0;
}

/* Module title styling */
.tax-efficiency-wrapper .content-section-title {
    color: #065f46;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tax-efficiency-wrapper .content-section-title::before {
    content: '💰';
    font-size: 1.3rem;
}

/* Placeholder for tax account classification */
.tax-analysis-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px dashed #a7f3d0;
}

.tax-analysis-placeholder .placeholder-content {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.tax-analysis-placeholder h3 {
    color: #065f46;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.tax-analysis-placeholder p {
    color: #047857;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* Tax account identification prompt styling */
.tax-category-tabs {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px 8px 0 0;
    padding: 4px;
    margin-bottom: 0;
}

.tax-category-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tax-category-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.tax-category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tax-category-tab:hover::before {
    left: 100%;
}

.tax-category-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    border: 1px solid #a7f3d0;
    border-top: none;
}

.tax-account-pill {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tax-account-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.tax-account-pill:hover::before {
    left: 100%;
}

.tax-account-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

/* Overview cards styling */
.tax-overview-section {
    margin-bottom: 32px;
}

.tax-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.tax-overview-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s;
}

.tax-overview-card.tax-status-good::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.tax-overview-card.tax-status-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tax-overview-card.tax-status-alert::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.tax-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
}

.tax-overview-card:hover::before {
    height: 5px;
}

.tax-card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.tax-overview-card:hover .tax-card-icon {
    transform: scale(1.1);
    opacity: 1;
}

.tax-card-content {
    flex: 1;
}

.tax-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tax-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tax-card-benchmark {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* Tabbed interface styling */
.tax-tabs-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-tab-nav {
    display: flex;
    background: rgba(5, 150, 105, 0.05);
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
    padding: 4px;
}

.tax-tab-button {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
}

.tax-tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.tax-tab-button.active {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    font-weight: 700;
}

.tax-tab-button.active::before {
    width: 80%;
}

.tax-tab-button:hover:not(.active) {
    background: rgba(5, 150, 105, 0.05);
    transform: translateY(-1px);
}

.tax-content-area {
    padding: 32px;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.4);
}

/* Overview tab styling */
.tax-overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.tax-summary-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-summary-section h4 {
    color: #065f46;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #a7f3d0;
}

.tax-summary-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tax-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.tax-stat:last-child {
    border-bottom: none;
}

.tax-stat-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.tax-stat-value {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

.tax-etr-chart-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-etr-chart-container h4 {
    color: #065f46;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Breakdown tab styling */
.tax-breakdown-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.tax-breakdown-chart-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-breakdown-chart-container h4 {
    color: #065f46;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.tax-breakdown-details {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-breakdown-details h4 {
    color: #065f46;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #a7f3d0;
}

.tax-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tax-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: all 0.3s;
}

.tax-breakdown-item:hover {
    background: rgba(5, 150, 105, 0.1);
    transform: translateX(4px);
}

.tax-category-label {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.tax-category-amount {
    font-weight: 700;
    color: #059669;
    margin-right: 12px;
}

.tax-category-percent {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Opportunities tab styling */
.tax-opportunities-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tax-opportunities-summary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    text-align: center;
}

.tax-opportunities-summary h4 {
    color: #065f46;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.tax-opportunities-summary p {
    color: #047857;
    font-size: 1.1rem;
    margin: 0;
}

.tax-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.tax-opportunity-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tax-opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s;
}

.tax-opportunity-card.tax-priority-high::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.tax-opportunity-card.tax-priority-medium::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tax-opportunity-card.tax-priority-low::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.tax-opportunity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(5, 150, 105, 0.2);
}

.tax-opportunity-card:hover::before {
    height: 6px;
}

.tax-opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tax-opportunity-header h5 {
    color: #065f46;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.tax-priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tax-priority-high .tax-priority-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.tax-priority-medium .tax-priority-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.tax-priority-low .tax-priority-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.tax-opportunity-body p {
    color: #374151;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.tax-opportunity-savings {
    background: rgba(5, 150, 105, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #10b981;
}

.tax-opportunity-savings strong {
    color: #059669;
    font-size: 1.1rem;
}

.tax-opportunity-details {
    display: flex;
    gap: 16px;
}

.tax-effort, .tax-impact {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

/* No opportunities state */
.tax-no-opportunities {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.tax-no-opportunities .tax-placeholder-content {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.tax-no-opportunities h4 {
    color: #065f46;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 16px 0 12px 0;
}

.tax-no-opportunities p {
    color: #047857;
    line-height: 1.6;
    margin: 0;
}

/* Projections tab styling */
.tax-projections-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tax-projections-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    text-align: center;
}

.tax-projections-header h4 {
    color: #065f46;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.tax-projections-header p {
    color: #047857;
    margin: 0;
}

.tax-projections-chart-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-projections-table {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tax-projections-data {
    width: 100%;
    border-collapse: collapse;
}

.tax-projections-data th {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    font-weight: 700;
    padding: 16px 12px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(5, 150, 105, 0.2);
}

.tax-projections-data td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    color: #374151;
    font-weight: 500;
}

.tax-projections-data tr:hover {
    background: rgba(5, 150, 105, 0.05);
}

.tax-confidence-bar {
    position: relative;
    width: 100px;
    height: 20px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tax-confidence-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tax-confidence-bar span {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #065f46;
}

/* Responsive design */
@media (max-width: 768px) {
    .tax-efficiency-wrapper {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .tax-overview-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tax-overview-content,
    .tax-breakdown-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tax-tab-nav {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .tax-tab-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .tax-content-area {
        padding: 20px;
    }
    
    .tax-opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .tax-opportunity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tax-projections-data {
        font-size: 0.85rem;
    }
    
    .tax-projections-data th,
    .tax-projections-data td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .tax-efficiency-wrapper .content-section-title {
        font-size: 1.25rem;
    }
    
    .tax-card-value {
        font-size: 1.5rem;
    }
    
    .tax-tab-button {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .tax-confidence-bar {
        width: 80px;
        height: 16px;
    }
    
    .tax-confidence-bar span {
        font-size: 0.7rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tax-efficiency-wrapper {
        background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
        color: #e5e7eb;
    }
    
    .tax-overview-card,
    .tax-summary-section,
    .tax-breakdown-chart-container,
    .tax-breakdown-details,
    .tax-opportunities-summary,
    .tax-opportunity-card,
    .tax-projections-header,
    .tax-projections-chart-container,
    .tax-projections-table {
        background: rgba(17, 24, 39, 0.8);
        border-color: rgba(5, 150, 105, 0.3);
    }
    
    .tax-card-title,
    .tax-stat-label,
    .tax-category-label,
    .tax-projections-data td {
        color: #d1d5db;
    }
    
    .tax-efficiency-wrapper .content-section-title,
    .tax-summary-section h4,
    .tax-breakdown-details h4,
    .tax-opportunities-summary h4,
    .tax-opportunity-header h5,
    .tax-projections-header h4,
    .tax-projections-data th {
        color: #a7f3d0;
    }
    
    .tax-breakdown-item {
        background: rgba(5, 150, 105, 0.15);
    }
    
    .tax-projections-data tr:hover {
        background: rgba(5, 150, 105, 0.1);
    }
}

/* Animations and micro-interactions */
@keyframes tax-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.tax-priority-high .tax-priority-badge {
    animation: tax-pulse 2s infinite;
}

@keyframes tax-slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tax-opportunity-card {
    animation: tax-slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tax-opportunity-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tax-opportunity-card:nth-child(3) {
    animation-delay: 0.2s;
}

.tax-opportunity-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Print styles */
@media print {
    .tax-efficiency-wrapper {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .tax-overview-card,
    .tax-summary-section,
    .tax-breakdown-details,
    .tax-opportunity-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .tax-tab-nav {
        display: none;
    }
    
    .tax-content-area {
        background: white !important;
    }
}