/* Tax Management Styles */

/* Modal Backdrop Fixes */
.modal-backdrop {
    z-index: 1040;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Ensure proper modal cleanup */
.modal-open {
    overflow: hidden;
}

.modal-open .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Force cleanup of stuck backdrops */
.modal-backdrop.force-remove {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Modern Tax Container */
.tax-container, .tax-content-wrapper {
    min-height: 100vh;
}

.tax-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Welcome Section */
.tax-welcome-section {
    background: linear-gradient(135deg, #3a3a52 0%, #2a2a3e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

.tax-welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0070ba, #0056b3, #003d8f);
    opacity: 0.8;
}

.tax-welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.tax-welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tax-welcome-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Modern Cards */
.modern-tax-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-tax-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0070ba, #0056b3);
    opacity: 0.8;
}

.modern-tax-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 112, 186, 0.3);
}

.modern-tax-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modern-tax-card .card-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.modern-tax-card .card-body {
    color: #a6b0cf;
}

/* Modern Stats Cards */
.modern-stats-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.modern-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0070ba, #0056b3);
    opacity: 0.8;
}

.modern-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.modern-stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.modern-stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.modern-stats-card .stats-label {
    color: #a6b0cf;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modern Document Cards */
.modern-document-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 160px;
}

.modern-document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0070ba, #0056b3);
}

.modern-document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 112, 186, 0.3);
}

.modern-document-card .document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.modern-document-card .document-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 5;
    margin-left: 40px; /* Make room for checkbox */
}

.modern-document-card .document-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    word-break: break-word;
    padding-right: 120px; /* Make room for action buttons */
}

.modern-document-card .document-meta {
    color: #a6b0cf;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 120px; /* Make room for action buttons */
}

.modern-document-card .document-meta i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.modern-document-card .document-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    gap: 0.5rem;
    z-index: 25;
    pointer-events: none;
}

.modern-document-card:hover .document-actions {
    opacity: 1;
}

/* Make the entire card area trigger hover for better UX */
.modern-document-card {
    cursor: pointer;
}

.modern-document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 112, 186, 0.3);
}

/* Ensure buttons are always clickable when visible */
.modern-document-card .document-actions .btn {
    position: relative;
    z-index: 30;
    cursor: pointer;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Alternative: Always show buttons for better accessibility */
.modern-document-card .document-actions {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.modern-document-card:hover .document-actions {
    opacity: 1;
}

/* Ensure buttons don't interfere with card hover */
.modern-document-card .document-actions .btn:hover {
    transform: scale(1.1);
    z-index: 40;
}

/* Add larger click target for better accessibility */
.modern-document-card .document-actions .btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: transparent;
    z-index: -1;
}

.modern-document-card .document-actions .btn:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Improve button visibility and accessibility */
.modern-document-card .document-actions {
    opacity: 0.4;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    padding: 0.25rem;
}

.modern-document-card:hover .document-actions {
    opacity: 1;
}

.modern-document-card .document-actions .btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 44px;
    min-height: 44px;
}

.modern-document-card .document-actions .btn:hover {
    transform: scale(1.1);
}

.modern-document-card .document-actions .btn.btn-download {
    background: linear-gradient(135deg, #0070ba, #0056b3);
    color: white;
    border-color: #0070ba;
}

.modern-document-card .document-actions .btn.btn-download:hover {
    background: linear-gradient(135deg, #0056b3, #003d8f);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
}

.modern-document-card .document-actions .btn.btn-edit {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border: none;
}

.modern-document-card .document-actions .btn.btn-edit:hover {
    background: linear-gradient(135deg, #ffca2c, #e0a800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.modern-document-card .document-actions .btn.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
}

.modern-document-card .document-actions .btn.btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.modern-document-card .document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modern-document-card .document-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.modern-document-card .document-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modern-document-card .document-tag.type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-document-card .document-tag.category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.modern-document-card .document-tag.deduction {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.modern-document-card .document-confidence {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #0070ba;
}

.modern-document-card .document-notes {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #28a745;
    font-style: italic;
}

/* Document Grid Layout */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    /* Mobile container adjustments */
    .tax-content-wrapper {
        padding: 0 0.5rem;
    }
    
    .tax-welcome-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tax-welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .modern-tax-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile stats cards */
    .modern-stats-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .modern-stats-card .stats-value {
        font-size: 1.5rem;
    }
    
    .modern-stats-card .stats-label {
        font-size: 0.8rem;
    }
    
    /* Mobile document grid */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modern-document-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
        min-height: auto;
    }

    .modern-document-card .document-title {
        font-size: 0.95rem;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .modern-document-card .document-meta {
        font-size: 0.8rem;
        padding-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .modern-document-card .document-content {
        margin-left: 0;
    }

    /* Mobile action buttons - always visible on mobile */
    .modern-document-card .document-actions {
        position: static;
        opacity: 1;
        margin-top: 0.75rem;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .modern-document-card .document-actions .btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Mobile checkbox */
    .document-checkbox {
        position: static;
        opacity: 1;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile folder sections */
    .folder-section {
        margin-bottom: 1rem;
    }
    
    .folder-title {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .folder-section .documents-grid {
        padding: 0.75rem;
    }
    
    /* Mobile tabs */
    .modern-tabs .nav-tabs {
        flex-wrap: wrap;
    }
    
    .modern-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Mobile form controls */
    .modern-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile buttons */
    .modern-tax-btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Always show buttons on touch devices for better accessibility */
@media (hover: none) and (pointer: coarse) {
    .modern-document-card .document-actions {
        opacity: 1;
        border-radius: 8px;
        padding: 0.25rem;
    }
}

/* Modern Buttons */
.modern-tax-btn {
    background: linear-gradient(135deg, #0070ba 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.modern-tax-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.6);
    color: white;
    text-decoration: none;
}

.modern-tax-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 112, 186, 0.4);
}

/* Modern Tabs */
.modern-tabs {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modern-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.modern-tabs .nav-link {
    color: #a6b0cf;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-tabs .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.modern-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #0070ba, #0056b3);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 112, 186, 0.3);
}

/* Modern Form Controls */
.modern-form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modern-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
    color: white;
}

.modern-form-control::placeholder {
    color: #a6b0cf;
}

/* Modern Badges */
.modern-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Mobile form improvements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile document tags */
    .modern-document-card .document-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modern-document-card .document-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile welcome section */
    .tax-welcome-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tax-welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .modern-tax-card,
    .modern-stats-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .modern-stats-card .stats-value {
        font-size: 1.5rem;
    }
}

/* Dark Theme Support */
[data-bs-theme="dark"] .tax-container {
    background: linear-gradient(135deg, #0d1117 0%, #121e2d 100%) !important;
}

[data-bs-theme="dark"] .modern-tax-card,
[data-bs-theme="dark"] .modern-stats-card,
[data-bs-theme="dark"] .modern-tabs {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
}

[data-bs-theme="dark"] .modern-tax-card .card-title,
[data-bs-theme="dark"] .modern-stats-card .stats-value {
    color: white;
}

[data-bs-theme="dark"] .modern-tax-card .card-body,
[data-bs-theme="dark"] .modern-stats-card .stats-label {
    color: #a6b0cf;
}

/* Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Existing styles... */
.tax-document-card {
    border: 1px solid #2a3042;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #1a1d29;
    transition: all 0.3s ease;
}

.tax-document-card:hover {
    border-color: #0070ba;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.15);
}

/* Enhanced Document Type Badges */
.document-type-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.document-type-receipt { 
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}
.document-type-w2 { 
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}
.document-type-1099 { 
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
}
.document-type-mortgage_interest { 
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}
.document-type-property_tax { 
    background: linear-gradient(135deg, #e83e8c, #d63384);
    color: white;
}
.document-type-charitable_donation { 
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
}
.document-type-business_expense { 
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}
.document-type-medical { 
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}
.document-type-education { 
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}
.document-type-other { 
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

/* Document Loading States */
.document-loading {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Document Empty State */
.documents-empty {
    text-align: center;
    padding: 3rem;
    color: #a6b0cf;
}

.documents-empty i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.documents-empty h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.documents-empty p {
    color: #a6b0cf;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Document Selection */
.document-checkbox {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-document-card:hover .document-checkbox {
    opacity: 1;
}

.modern-document-card .document-checkbox .form-check {
    margin: 0;
}

.modern-document-card .document-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-document-card .document-checkbox .form-check-input:checked {
    background-color: #0070ba;
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
}

.modern-document-card .document-checkbox .form-check-input:hover {
    border-color: #0070ba;
    background-color: rgba(0, 112, 186, 0.1);
}

.modern-document-card.selected {
    border-color: #0070ba;
    box-shadow: 0 8px 32px rgba(0, 112, 186, 0.3);
}

.modern-document-card.selected::before {
    background: linear-gradient(180deg, #28a745, #20c997);
}

/* Document Preview Modal Enhancements */
.document-preview-modal .modal-content {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.document-preview-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.document-preview-modal .modal-body {
    padding: 1.5rem;
}

.document-preview-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.document-preview-modal .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Document Upload Progress */
.upload-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.upload-progress .progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: linear-gradient(90deg, #0070ba, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.upload-progress .progress-text {
    color: #a6b0cf;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.deduction-card {
    border: 1px solid #2a3042;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #1a1d29;
    position: relative;
}

.deduction-card.deduction {
    border-left: 4px solid #28a745;
}

.deduction-card.credit {
    border-left: 4px solid #007bff;
}

.note-card {
    border: 1px solid #2a3042;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #1a1d29;
    position: relative;
}

.note-card.urgent {
    border-left: 4px solid #dc3545;
}

.note-card.high {
    border-left: 4px solid #fd7e14;
}

.note-card.medium {
    border-left: 4px solid #ffc107;
}

.note-card.low {
    border-left: 4px solid #28a745;
}

.note-completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.priority-urgent { background-color: #dc3545; }
.priority-high { background-color: #fd7e14; }
.priority-medium { background-color: #ffc107; color: #212529; }
.priority-low { background-color: #28a745; }

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    margin-right: 0.5rem;
}

.category-income { background-color: #28a745; }
.category-deduction { background-color: #007bff; }
.category-credit { background-color: #6f42c1; }
.category-medical { background-color: #dc3545; }
.category-education { background-color: #17a2b8; }
.category-business { background-color: #6f42c1; }
.category-home_office { background-color: #fd7e14; }
.category-vehicle { background-color: #20c997; }
.category-travel { background-color: #e83e8c; }
.category-other { background-color: #6c757d; }

.tax-analysis-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.strategy-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.strategy-card.high {
    border-left: 4px solid #dc3545;
}

.strategy-card.medium {
    border-left: 4px solid #fd7e14;
}

.strategy-card.low {
    border-left: 4px solid #28a745;
}

.document-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.document-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tax-document-card:hover .document-actions,
.modern-document-card:hover .document-actions {
    opacity: 1;
}

.document-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.tax-filing-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filing-status-active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.filing-status-completed {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.filing-status-archived {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}

.tax-deadline {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tax-deadline.urgent {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.tax-deadline.warning {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}

.deduction-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.credit-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.tax-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tax-summary-item {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.tax-summary-item h6 {
    color: #a6b0cf;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tax-summary-item .amount {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.tax-summary-item .change {
    font-size: 0.9rem;
    font-weight: 600;
}

.tax-summary-item .change.positive {
    color: #28a745;
}

.tax-summary-item .change.negative {
    color: #dc3545;
}

@media (max-width: 768px) {
    /* Mobile summary grid */
    .tax-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile document actions */
    .document-actions {
        position: static;
        opacity: 1;
        margin-top: 1rem;
    }
    
    /* Mobile document cards */
    .tax-document-card,
    .modern-document-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile bulk upload improvements */
    #bulkUploadPreview {
        max-height: 60vh;
    }
    
    #bulkUploadPreviewContent {
        max-height: 50vh;
    }
    
    /* Mobile folder structure */
    .folder-section {
        margin-bottom: 1rem;
    }
    
    .folder-title {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .folder-section .documents-grid {
        padding: 0.75rem;
    }
    
    /* Mobile touch improvements */
    .modern-document-card .document-actions .btn {
        min-width: 44px;
        min-height: 44px; /* iOS touch target minimum */
    }
    
    .folder-title {
        min-height: 44px; /* iOS touch target minimum */
        display: flex;
        align-items: center;
    }
}

.tax-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #a6b0cf;
}

.tax-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
}

.tax-empty-state {
    text-align: center;
    padding: 3rem;
    color: #a6b0cf;
}

.tax-empty-state i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.tax-empty-state h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.tax-empty-state p {
    color: #a6b0cf;
    margin-bottom: 1.5rem;
}

.modal-content {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: white;
    font-weight: 700;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
    color: white;
}

.form-label {
    color: #a6b0cf;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-tabs-custom .nav-link {
    color: #a6b0cf;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, #0070ba, #0056b3) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 112, 186, 0.3) !important;
}

.nav-tabs-custom .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

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

.tax-document-card,
.modern-document-card,
.deduction-card,
.note-card {
    animation: slideInUp 0.5s ease-out;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-notification.success .toast-content i {
    color: #28a745;
}

.toast-notification.error .toast-content i {
    color: #dc3545;
}

.toast-content span {
    flex: 1;
    font-weight: 500;
}

.document-preview-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.document-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.document-preview-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.document-preview-card .card-body {
    color: #a6b0cf;
}

.document-preview-card .form-control-sm,
.document-preview-card .form-select-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.document-preview-card .form-control-sm:focus,
.document-preview-card .form-select-sm:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
    color: white;
}

.document-preview-card .form-label {
    color: #a6b0cf;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.document-preview-card .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
}

#bulkUploadPreview {
    max-height: 400px;
    overflow-y: auto;
}

#bulkUploadPreviewContent {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#bulkUploadPreviewContent::-webkit-scrollbar {
    width: 6px;
}

#bulkUploadPreviewContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#bulkUploadPreviewContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#bulkUploadPreviewContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Folder Organization Styles */
.folder-section {
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.folder-section:last-child {
    margin-bottom: 0;
}

.folder-title {
    background: linear-gradient(135deg, #3a3a52 0%, #2a2a3e 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-title i {
    color: #0070ba;
    font-size: 1.2rem;
}

.folder-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-left: auto;
}

.folder-toggle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.folder-title {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.folder-title:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.folder-content {
    transition: all 0.3s ease;
}

.folder-section .documents-grid {
    padding: 1.5rem;
    background: transparent;
    position: relative;
    z-index: 2;
}

.folder-section .modern-document-card {
    margin-bottom: 1rem;
}

.folder-section .modern-document-card:last-child {
    margin-bottom: 0;
}

.folder-section, .folder-content {
    overflow-x: auto;
    max-width: 100%;
}

.folder-section .documents-grid {
    max-width: 100%;
    overflow-x: auto;
}

/* Responsive folder sections */
@media (max-width: 768px) {
    .folder-section {
        margin-bottom: 1.5rem;
    }
    
    .folder-title {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .folder-section .documents-grid {
        padding: 1rem;
    }
} 

.modern-document-card .document-tag.priority-low {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.modern-document-card .document-tag.priority-medium {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.modern-document-card .document-tag.priority-high {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}

.modern-document-card .document-tag.priority-urgent {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
} 

/* Filing Status Styles */
.filing-status-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filing-deadline-info h6,
.filing-progress-info h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #0070ba;
}

.deadline-item i {
    color: #0070ba;
    font-size: 1rem;
}

.deadline-item strong {
    color: white;
    font-weight: 600;
}

.filing-progress-info .progress {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.filing-progress-info .progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Deduction Calculator Styles */
.deductions-summary {
    margin-top: 1rem;
}

.savings-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.savings-item h6 {
    color: #a6b0cf;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.savings-item .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.savings-item .amount.text-success {
    color: #28a745;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0070ba;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.recommendation-item.high {
    border-left-color: #dc3545;
}

.recommendation-item.medium {
    border-left-color: #fd7e14;
}

.recommendation-item.low {
    border-left-color: #28a745;
}

.recommendation-item h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommendation-item p {
    color: #a6b0cf;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recommendation-item small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Enhanced Document Analysis Styles */
.document-analysis-results {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.analysis-confidence {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-confidence.high {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.analysis-confidence.medium {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}

.analysis-confidence.low {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggested-tag {
    background: rgba(0, 112, 186, 0.2);
    color: #0070ba;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 112, 186, 0.3);
}

.suggested-tag:hover {
    background: rgba(0, 112, 186, 0.3);
    transform: translateY(-1px);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .filing-status-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .deadline-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .deadline-item i {
        font-size: 0.9rem;
    }
    
    .savings-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .savings-item .amount {
        font-size: 1.25rem;
    }
    
    .recommendation-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .recommendation-item h6 {
        font-size: 0.9rem;
    }
    
    .recommendation-item p {
        font-size: 0.8rem;
    }
    
    .suggested-tags {
        gap: 0.4rem;
    }
    
    .suggested-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
} 

/* Tax Document Folders */
.tax-documents-folder {
    min-height: 120px;
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 15px;
    background: rgba(108, 117, 125, 0.05);
    transition: all 0.3s ease;
}

.tax-documents-folder:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.tax-documents-folder.sortable-ghost {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.tax-documents-folder.sortable-chosen {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.tax-document-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tax-document-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.tax-document-card:active {
    cursor: grabbing;
}

.tax-document-card.sortable-ghost {
    opacity: 0.5;
    transform: rotate(5deg);
}

.tax-document-card.sortable-chosen {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

.folder-description {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Empty folder state */
.tax-documents-folder:empty::before {
    content: "Drag documents here";
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px 0;
}

/* Document card content */
.document-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.document-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
    line-height: 1.2;
}

.document-card-amount {
    font-weight: 600;
    color: #28a745;
    font-size: 0.85rem;
}

.document-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}

.document-card-type {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.document-card-date {
    font-size: 0.7rem;
}

/* Drag and drop animations */
@keyframes dragPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tax-documents-folder.sortable-drag-over {
    animation: dragPulse 0.6s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tax-documents-folder {
        min-height: 100px;
        padding: 10px;
    }
    
    .tax-document-card {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .document-card-title {
        font-size: 0.8rem;
    }
} 

/* Professional Tax Documents Section */
.tax-documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-documents-header h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.tax-documents-filters {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tax-documents-filters .row {
    align-items: end;
}

.tax-documents-filters .form-label {
    color: #a6b0cf;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tax-documents-filters .modern-form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tax-documents-filters .modern-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0070ba;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
    outline: none;
}

.tax-documents-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tax-documents-actions .modern-tax-btn {
    background: linear-gradient(135deg, #0070ba 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tax-documents-actions .modern-tax-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.3);
}

.tax-documents-actions .modern-tax-btn:active {
    transform: translateY(0);
}

/* Enhanced Modern Tabs */
.modern-tabs {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modern-tabs .nav-tabs {
    border: none;
    background: transparent;
    margin: 0;
}

.modern-tabs .nav-link {
    background: transparent;
    border: none;
    color: #a6b0cf;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.modern-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

.modern-tabs .nav-link.active,
.modern-tabs .nav-tabs .nav-link.active,
.tax-container .modern-tabs .nav-link.active {
    background: linear-gradient(135deg, #0070ba 0%, #0056b3 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3) !important;
    border-bottom: 3px solid #0070ba !important;
}

.modern-tabs .nav-link i {
    font-size: 1rem;
}

/* Professional Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #0070ba 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tax-documents-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .tax-documents-filters .row {
        gap: 1rem;
    }
    
    .tax-documents-filters .col-md-3 {
        width: 100%;
    }
    
    .tax-documents-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .modern-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
} 

/* Tax Planning Styles */
.forecast-item, .savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-item:last-child, .savings-item:last-child {
    border-bottom: none;
}

/* Compliance Styles */
.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.deadline-date {
    font-weight: bold;
    color: #007bff;
    min-width: 120px;
}

.deadline-description {
    flex: 1;
    margin: 0 1rem;
}

.deadline-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.deadline-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.deadline-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.deadline-status.upcoming {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Checklist Styles */
.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 0.75rem;
}

.checklist-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.checklist-status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.checklist-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.checklist-status.incomplete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Report Templates Styles */
.report-templates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 24px;
}

.template-item div {
    flex: 1;
}

.template-item h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.template-item p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Recent Reports Styles */
.report-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 24px;
}

.report-item div {
    flex: 1;
}

.report-item h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.report-item small {
    opacity: 0.7;
}

/* Enhanced Tax Card Styles */
.modern-tax-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1d29 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.modern-tax-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.modern-tax-card h6 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modern-tax-card h6 i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Tax Strategy Recommendations */
.strategy-recommendation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.strategy-recommendation.high-priority {
    border-left-color: #dc3545;
}

.strategy-recommendation.medium-priority {
    border-left-color: #ffc107;
}

.strategy-recommendation.low-priority {
    border-left-color: #28a745;
}

.strategy-recommendation h6 {
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.strategy-recommendation p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.strategy-savings {
    font-weight: bold;
    color: #28a745;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deadline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .deadline-date {
        min-width: auto;
    }
    
    .template-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .template-item i {
        margin-right: 0;
    }
    
    .report-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .report-item i {
        margin-right: 0;
    }
}

/* Tax Optimization Styles */
.optimization-item, .harvesting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.optimization-item:last-child, .harvesting-item:last-child {
    border-bottom: none;
}

.strategy-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.strategy-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.strategy-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.strategy-impact {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.strategy-impact.high {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.strategy-impact.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

.strategy-impact.low {
    background: rgba(16, 185, 129, 0.2);
    color: #86EFAC;
}

.strategy-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.strategy-implementation {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Mobile Tax Optimization Adjustments */
@media (max-width: 768px) {
    .strategy-item {
        padding: 1rem;
    }

    .strategy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .strategy-impact {
        align-self: flex-start;
    }
} 