/**
 * Charitable Admin Dashboard V2 Styles
 *
 * @package Charitable/Admin/Dashboard V2
 * @since 1.8.1
 * @version 1.8.1
 */

// Import base variables and mixins
@import '../_colors';
@import '../_fonts';
@import '../_variables';

/* V2 Dashboard Specific Styles */
.charitable_page_charitable-dashboard {

    // Main container
    #charitable-dashboard-v2 {

        // Content area
        .charitable-dashboard-v2-content {


        }

        // Tablenav styling
        .tablenav {
            font-family: "Inter", sans-serif !important;
            min-height: 30px;
            height: auto;
            margin-top: 0;
            margin-bottom: 0;

            .alignleft,
            .alignright {
                margin-top: 10px;
                margin-bottom: 10px;
            }
        }
    }
}

/* V2 Dashboard Header */
.charitable-dashboard-v2-header {
    margin-top: 40px; // 40px from Charitable header
    margin-bottom: 40px; // 40px to v2 content area

    .charitable-dashboard-v2-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1172px; // 700px + 452px + 20px gap
        margin: 0 auto;

        .charitable-dashboard-v2-header-left {
            h1 {
                margin: 0;
                color: #303442;
                font-size: 24px;
                font-weight: 600;
                line-height: 1.2;
            }
        }

        .charitable-dashboard-v2-header-right {
            .charitable-button {
                background-color: #5AA152;
                border-color: #5AA152;
                color: white;
                padding: 8px 16px;
                font-weight: 500;

                &:hover {
                    background-color: #43833b;
                    border-color: #43833b;
                }
            }
        }
    }
}

/* Header Bar Styles */
.charitable-dashboard-v2-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 60px);
    height: 80px;

    .charitable-dashboard-v2-header-bar-left {
        display: flex;
        align-items: center;
    }

    .charitable-dashboard-v2-header-bar-right {
        display: flex;
        align-items: center;
    }
}

/* V2 Dashboard Chart Styles */
.charitable-dashboard-v2-header-bar-chart {
    width: 100%;
    height: 300px;
    margin-top: 20px;

    .charitable-headline-graph {
        width: 100%;
        height: 100%;

        // Ensure the ApexCharts canvas is responsive
        .apexcharts-canvas {
            margin: 0 auto;
        }
    }
}

/* Time Period Filter Dropdown */
#time-period-filter {
    font-size: 13px;
    line-height: 29px;
    font-weight: 500;
    max-width: none;
    padding: 5px 30px 5px 12px;
    background-color: #F9F9FA;
    color: #52545F;
    border: 1px solid #E4E4E7;
    border-radius: 4px;
    height: 40px;
    font-family: "Inter", sans-serif;
}

/* Download Summary Button */
.charitable-dashboard-v2-download-button {
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(14, 33, 33, 0.7);
    background: white;
    border: 1px solid rgba(14, 33, 33, 0.14);
    border-radius: 4px;
    padding: 10px 16px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;

    &:hover {
        background: rgba(14, 33, 33, 0.02);
        border-color: rgba(14, 33, 33, 0.2);
    }
}

/* Download Icon */
.charitable-dashboard-v2-download-icon {
    width: 15px;
    height: 14px;
    color: rgba(14, 33, 33, 0.7);
}

/* Remove padding for stats row section */
.charitable-dashboard-v2-stats-row-section {
    padding: 0 0 20px 0 !important;

    .charitable-dashboard-v2-header-bar {
        padding: 0 30px;
    }
}

/* Stats Row Styles */
.charitable-dashboard-v2-stats-row {
    display: flex;
    width: 100%;
    border-top: 1px solid rgba(25, 29, 45, 0.15);
    border-bottom: 1px solid rgba(25, 29, 45, 0.15);
}

.charitable-dashboard-v2-stat-item {
    flex: 1;
    padding: 30px;
    border-right: 1px solid rgba(25, 29, 45, 0.15);
    text-align: left;

    &:last-child {
        border-right: none;
    }
}

.charitable-dashboard-v2-stat-title {
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.6);
    margin-bottom: 8px;
}

.charitable-dashboard-v2-stat-amount {
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stat Change Indicator */
.charitable-dashboard-v2-stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(49, 148, 77, 1);
}

/* V2 Dashboard Layout */
.charitable-dashboard-v2-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    max-width: 1172px; // 700px + 452px + 20px gap
    margin-left: auto;
    margin-right: auto;

    // Left Column - 700px wide
    .charitable-dashboard-v2-left-column {
        flex: 0 0 700px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    // Right Column - 452px wide
    .charitable-dashboard-v2-right-column {
        flex: 0 0 452px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    // Responsive breakpoint - stack columns when screen narrows
    @media (max-width: 1200px) {
        flex-direction: column;

        .charitable-dashboard-v2-left-column,
        .charitable-dashboard-v2-right-column {
            flex: 1 1 100%;
        }
    }
}

/* V2 Dashboard Sections */
.charitable-dashboard-v2-section {
    background: white;
    border: 1px solid rgba(24, 36, 69, 0.1); // #1824451A
    border-radius: 4px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.05); // 5% black shadow
    min-height: 120px;
    overflow: hidden; // Ensure border radius applies to header

    // Section Header (Right Column Only)
    .charitable-dashboard-v2-section-header {
        height: 70px;
        background: white;
        border-bottom: 1px solid rgba(24, 36, 69, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 25px;

        h3 {
            font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 700;
            font-style: normal;
            font-size: 17px;
            line-height: 130%;
            letter-spacing: 0px;
            color: rgba(25, 29, 45, 0.9);
            margin: 0;
        }

        .charitable-dashboard-v2-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            text-decoration: none;
            color: rgba(25, 29, 45, 0.6);
            transition: color 0.2s ease;

            &:hover {
                color: rgba(25, 29, 45, 0.9);
            }

            .charitable-dashboard-v2-angle-down {
                font-size: 16px;
                transition: transform 0.3s ease;
            }
        }

        // Tab Navigation Styles
        .charitable-dashboard-v2-tab-nav {
            display: flex;
            align-items: center;
            height: 100%;
            width: 100%;

            .charitable-dashboard-v2-tab-nav-item {
                display: flex;
                align-items: center;
                height: 100%;
                padding: 0 30px;
                font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                font-weight: 700;
                font-style: normal;
                font-size: 14px;
                line-height: 130%;
                letter-spacing: 0px;
                color: rgba(25, 29, 45, 0.5);
                text-decoration: none;
                border-right: 1px solid rgba(24, 36, 69, 0.1);
                transition: color 0.2s ease;
                cursor: pointer;

                &:last-child {
                    border-right: none;
                }

                &:hover {
                    color: rgba(25, 29, 45, 0.7);
                }

                &.charitable-dashboard-v2-tab-nav-active {
                    color: rgba(51, 132, 42, 1);
                    border-bottom-color: rgba(51, 132, 42, 1);
                }
            }
        }
    }

    // Section Content
    .charitable-dashboard-v2-section-content {
        padding: 0 0 20px 0;
        transition: all 0.3s ease;
        overflow: hidden;

        p {
            margin: 0;
            color: #52545f;
            font-size: 14px;
            line-height: 1.5;
        }

        // Remove padding for Enhance Campaign section content
        &:has(.charitable-dashboard-v2-enhance-grid) {
            padding: 0;
        }

        // Remove top padding for Latest Updates section content
        &:has(.charitable-dashboard-v2-latest-updates-background) {
            padding-top: 0;
        }
    }

    // Collapsible Functionality
    &.charitable-dashboard-v2-collapsible {
        .charitable-dashboard-v2-section-content {
            max-height: none;
            opacity: 1;
            transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        }

                &.charitable-dashboard-v2-collapsed {
            .charitable-dashboard-v2-section-content {
                max-height: 0 !important;
                padding-top: 0 !important;
                padding-bottom: 0 !important;
                opacity: 0;
                overflow: hidden;
            }

            .charitable-dashboard-v2-toggle {
                .charitable-dashboard-v2-angle-down {
                    transform: rotate(-90deg);
                }
            }
        }
    }

    // Left Column Sections (Keep original styling)
    &:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section) {
        padding: 20px;

        h3 {
            margin: 0 0 15px 0;
            color: #303442;
            font-size: 18px;
            font-weight: 600;
        }

        p {
            margin: 0;
            color: #52545f;
            font-size: 14px;
            line-height: 1.5;
        }
    }

    // Special styling for top campaigns section to remove top, left, and right padding
    &.charitable-dashboard-top-campaigns {
        padding: 0 !important;

        .charitable-dashboard-v2-section-header {
            padding: 0;
        }

        .charitable-dashboard-v2-section-content {
            padding: 0 0 20px 0 !important;
        }
    }

    // Quick Access Content Section
    .charitable-dashboard-v2-quick-access-content {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;

        .charitable-dashboard-v2-quick-access-items {
            width: 392px;

                            .charitable-dashboard-v2-quick-access-item {
                    display: flex;
                    align-items: center;
                    padding: 15px 0;
                    border-bottom: 1px solid rgba(24, 36, 69, 0.1);

                    &:first-child {
                        border-top: none;
                        padding-top: 0px;
                    }

                    &:last-child {
                        border-bottom: none;
                        padding-bottom: 0;
                    }

                .charitable-dashboard-v2-quick-access-icon {
                    width: 24px;
                    height: 24px;
                    flex-shrink: 0;
                    margin-right: 15px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .charitable-dashboard-v2-quick-access-title {
                    flex: 1;

                    a {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 600;
                        font-style: normal;
                        font-size: 14px;
                        line-height: 160%;
                        letter-spacing: 0px;
                        color: rgba(25, 29, 45, 0.8);
                        text-decoration: none;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }

    // Quick Access Footer
    .charitable-dashboard-v2-quick-access-footer {
        height: 70px;
        background: rgba(254, 248, 243, 1);
        margin: 20px -25px -20px -25px; // Extend to section content edges
        display: flex;
        align-items: center;

        .charitable-dashboard-v2-quick-access-footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 0 30px;

            .charitable-dashboard-v2-quick-access-footer-left {
                .charitable-dashboard-v2-rate-link {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    text-decoration: none;

                    .charitable-dashboard-v2-rate-text {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 16px;
                        letter-spacing: 0px;
                        text-align: right;
                        vertical-align: middle;
                        color: rgba(43, 102, 209, 1);
                    }

                    .charitable-dashboard-v2-arrow-icon {
                        color: rgba(43, 102, 209, 1);
                        width: 16px;
                        height: 16px;
                        flex-shrink: 0;
                    }

                    &:hover {
                        .charitable-dashboard-v2-rate-text {
                            text-decoration: underline;
                        }
                    }
                }
            }

            .charitable-dashboard-v2-quick-access-footer-right {
                .charitable-dashboard-v2-stars {
                    display: flex;
                    gap: 3px;

                    .charitable-dashboard-v2-star {
                        color: #FFD700;
                        font-size: 18px;
                        line-height: 1;
                    }
                }
            }
        }
    }

    // Enhance Campaign Grid
    .charitable-dashboard-v2-enhance-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1px;
        background: rgba(24, 36, 69, 0.1);
        margin: 0; // Extend edge to edge

        .charitable-dashboard-v2-enhance-grid-item {
            background: white;
            padding: 20px;

            .charitable-dashboard-v2-enhance-grid-content {
                .charitable-dashboard-v2-enhance-grid-header {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    margin-bottom: 15px;

                    .charitable-dashboard-v2-enhance-grid-icon {
                        width: 20px;
                        height: 20px;
                        flex-shrink: 0;
                    }

                    .charitable-dashboard-v2-enhance-grid-title {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 700;
                        font-style: normal;
                        font-size: 14px;
                        line-height: 130%;
                        letter-spacing: 0px;
                        color: rgba(25, 29, 45, 0.9);
                        margin: 0;
                    }
                }

                .charitable-dashboard-v2-enhance-grid-description {
                    margin: 0 0 15px 0;
                    color: #52545f;
                    font-size: 14px;
                    line-height: 1.5;
                }

                .charitable-dashboard-v2-enhance-grid-button {
                    background: white;
                    border: 1px solid rgba(14, 33, 33, 0.14);
                    border-radius: 4px;
                    padding: 8px 16px;
                    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                    font-weight: 500;
                    font-style: normal;
                    font-size: 13px;
                    line-height: 100%;
                    letter-spacing: 0px;
                    color: rgba(14, 33, 33, 0.8);
                    cursor: pointer;
                    transition: all 0.2s ease;

                    &:hover {
                        background: rgba(14, 33, 33, 0.05);
                        border-color: rgba(14, 33, 33, 0.2);
                    }

                    // Activate button styling (orange background, white text)
                    &.charitable-dashboard-v2-activate-button {
                        background: #eaa251;
                        border-color: #eaa251;
                        color: white;

                        &:hover {
                            background: #d89447; // Darker version of #eaa251 on hover
                            border-color: #d89447;
                        }
                    }
                }
            }
        }
    }

        // Latest Updates Background Section
    .charitable-dashboard-v2-latest-updates-background {
        background: rgba(254, 248, 243, 1); // Same warm cream as Quick Access footer
        margin: 0 -25px; // Extend edge to edge within section content
        padding: 20px 25px; // Add padding for content
        border-bottom: 1px solid rgba(24, 36, 69, 0.1);

        .charitable-dashboard-v2-latest-updates-background-content {
            .charitable-dashboard-v2-latest-updates-flex {
                display: flex;
                gap: 10px;
                align-items: flex-start;

                .charitable-dashboard-v2-latest-updates-icon {
                    flex-shrink: 0;

                    .charitable-dashboard-v2-latest-updates-icon-placeholder {
                        width: 26px;
                        height: 26px;
                    }
                }

                .charitable-dashboard-v2-latest-updates-content {
                    flex: 1;

                    .charitable-dashboard-v2-latest-updates-headline {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 600;
                        font-style: normal;
                        font-size: 15px;
                        line-height: 22px;
                        letter-spacing: 0px;
                        color: rgba(25, 29, 45, 0.9);
                        margin: -4px 0 15px 0;
                    }

                    .charitable-dashboard-v2-latest-updates-features {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 5px 12px;

                        .charitable-dashboard-v2-latest-updates-feature {
                            display: inline-flex;
                            align-items: center;
                            gap: 6px;
                            font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                            font-weight: 500;
                            font-style: normal;
                            font-size: 14px;
                            line-height: 160%;
                            letter-spacing: 0px;
                            color: rgba(25, 29, 45, 0.9);

                                                .charitable-dashboard-v2-latest-updates-checkmark {
                        width: 9px;
                        height: 7px;
                        flex-shrink: 0;
                    }
                        }
                    }

                    .charitable-dashboard-v2-latest-updates-button {
                        background: rgba(90, 161, 82, 1);
                        border: none;
                        border-radius: 4px;
                        padding: 10px 20px;
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 700;
                        font-size: 13px;
                        line-height: 16px;
                        letter-spacing: 0px;
                        text-align: center;
                        vertical-align: middle;
                        color: rgba(255, 255, 255, 1);
                        cursor: pointer;
                        transition: all 0.2s ease;

                        &:hover {
                            background: rgba(69, 123, 63, 1);
                        }
                    }
                }
            }
                }
    }

    // Latest Updates Footer
    .charitable-dashboard-v2-latest-updates-footer {
        height: 70px;
        background: white;
        margin: 0 -25px -20px -25px; // Extend to section content edges
        display: flex;
        align-items: center;
        border-top: 1px solid rgba(24, 36, 69, 0.1); // Add top border for separation

        .charitable-dashboard-v2-latest-updates-footer-content {
            display: flex;
            justify-content: flex-start; // Left align since no right content
            align-items: center;
            width: 100%;
            padding: 0 30px; // Same 30px left/right margins as other footers

            .charitable-dashboard-v2-latest-updates-footer-left {
                .charitable-dashboard-v2-blog-link {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    text-decoration: none;
                    transition: gap 0.3s ease;

                    .charitable-dashboard-v2-blog-text {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 16px;
                        letter-spacing: 0px;
                        text-align: left;
                        vertical-align: middle;
                        color: rgba(43, 102, 209, 1);
                    }

                    .charitable-dashboard-v2-arrow-icon {
                        color: rgba(43, 102, 209, 1);
                        width: 16px;
                        height: 16px;
                        flex-shrink: 0;
                    }

                    &:hover {
                        gap: 4px;

                        .charitable-dashboard-v2-blog-text {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }

    // Blog Posts Section
    .charitable-dashboard-v2-blog-posts {
        margin-top: 35px;
        margin-bottom: 15px;

        .charitable-dashboard-v2-blog-post-row {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;

            &:last-child {
                margin-bottom: 0; // Remove bottom margin from last row
            }

            .charitable-dashboard-v2-blog-post-left {
                width: 282px;

                .charitable-dashboard-v2-blog-post-timestamp {
                    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                    font-weight: 500;
                    font-style: normal;
                    font-size: 13px;
                    line-height: 150%;
                    letter-spacing: 0px;
                    color: rgba(25, 29, 45, 0.6);
                    margin-bottom: 15px;
                }

                .charitable-dashboard-v2-blog-post-title {
                    margin: 0;

                    a {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 600;
                        font-style: normal;
                        font-size: 14px;
                        line-height: 170%;
                        letter-spacing: -0.25px;
                        color: rgba(25, 29, 45, 0.9);
                        text-decoration: none;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }

            .charitable-dashboard-v2-blog-post-right {
                display: flex;
                align-items: center;

                .charitable-dashboard-v2-blog-post-image-placeholder {
                    width: 106px;
                    height: 56px;
                    flex-shrink: 0;
                }
            }

            // Error Display Styling
            &.error-display {
                display: flex;
                gap: 10px;
                align-items: flex-start;
                margin-bottom: 20px;

                .charitable-dashboard-v2-blog-post-title {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                    font-weight: 600;
                    font-style: normal;
                    font-size: 15px;
                    line-height: 22px;
                    letter-spacing: 0px;
                    color: rgba(25, 29, 45, 0.9);
                    margin: 0;

                    &::before {
                        content: '';
                        width: 26px;
                        height: 26px;
                        flex-shrink: 0;
                        background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: contain;
                    }
                }
            }
        }
    }

    // No Update Alert - when version update alert doesn't show
    &.no-update-alert {
        .charitable-dashboard-v2-blog-posts {
            margin-top: 0;
        }
    }

    // Blog Posts Error Display Styling
    .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 600;
        font-style: normal;
        font-size: 15px;
        line-height: 22px;
        letter-spacing: 0px;
        color: rgba(25, 29, 45, 0.9);
        margin: 0;

        &::before {
            content: '';
            width: 26px;
            height: 26px;
            flex-shrink: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
    }

    // Enhance Campaign Footer
    .charitable-dashboard-v2-enhance-campaign-footer {
        height: 70px;
        background: white;
        margin: 0 -25px -20px -25px; // No top margin, extend to section content edges
        display: flex;
        align-items: center;
        border-top: 1px solid rgba(24, 36, 69, 0.1); // Add top border for separation

        .charitable-dashboard-v2-enhance-campaign-footer-content {
            display: flex;
            justify-content: flex-start; // Left align since no right content
            align-items: center;
            width: 100%;
            padding: 0 30px; // Same 30px left/right margins as Quick Access footer

            .charitable-dashboard-v2-enhance-campaign-footer-left {
                .charitable-dashboard-v2-addons-link {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    text-decoration: none;

                    .charitable-dashboard-v2-addons-text {
                        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 16px;
                        letter-spacing: 0px;
                        text-align: left;
                        vertical-align: middle;
                        color: rgba(43, 102, 209, 1);
                    }

                    .charitable-dashboard-v2-arrow-icon {
                        color: rgba(43, 102, 209, 1);
                        width: 16px;
                        height: 16px;
                        flex-shrink: 0;
                    }

                    &:hover {
                        .charitable-dashboard-v2-addons-text {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }

    // Upgrade Section Styles
    .charitable-dashboard-v2-upgrade-title {
        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 20px;
        line-height: 33px;
        letter-spacing: 0.01em; // 1%
        text-align: center;
        color: rgba(25, 29, 45, 0.8);
        margin: 0;
        padding-top: 10px;
    }

    .charitable-dashboard-v2-upgrade-features {
        display: flex;
        gap: 10px 10px;
        margin: 30px 0;
        justify-content: center;

        .charitable-dashboard-v2-upgrade-column {
            flex: 1;
            max-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .charitable-dashboard-v2-upgrade-feature {
            display: flex;
            align-items: flex-start;
            gap: 12px;

            .charitable-dashboard-v2-upgrade-checkmark {
                width: 18px;
                height: 18px;
                flex-shrink: 0;
                margin-top: 2px; // Align with text baseline
            }

            .charitable-dashboard-v2-upgrade-feature-text {
                font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                font-weight: 500;
                font-size: 14px;
                line-height: 150%;
                letter-spacing: 0px;
                color: rgba(25, 29, 45, 0.8);
                margin: 0;
            }
        }
    }

    .charitable-dashboard-v2-upgrade-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding-bottom: 20px;

        .charitable-dashboard-v2-upgrade-button {
            background: rgba(218, 144, 33, 1); // Charitable Orange
            border: none;
            border-radius: 4px;
            padding: 22px 42px;
            font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 600;
            font-size: 19px;
            line-height: 100%;
            letter-spacing: 0px;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s ease;
            text-decoration: none;

            &:hover {
                background: #d89447 !important; // Match activate button hover color
                text-decoration: none;
            }
        }

        .charitable-dashboard-v2-learn-more-link {
            font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 600;
            font-size: 14px;
            line-height: 150%;
            letter-spacing: 0px;
            text-align: center;
            text-decoration: underline;
            color: rgba(25, 29, 45, 0.5);
            transition: color 0.2s ease;

            &:hover {
                color: rgba(25, 29, 45, 0.7);
            }
        }
    }
}

/* Campaign Table Column Widths */
.charitable-dashboard-v2-table th:nth-child(1),
.charitable-dashboard-v2-table td:nth-child(1) {
    width: 205px;
    padding-left: 30px;
}

.charitable-dashboard-v2-table th:nth-child(2),
.charitable-dashboard-v2-table td:nth-child(2) {
    width: 120px;
}

.charitable-dashboard-v2-table th:nth-child(3),
.charitable-dashboard-v2-table td:nth-child(3) {
    width: 120px;
}

.charitable-dashboard-v2-table th:nth-child(4),
.charitable-dashboard-v2-table td:nth-child(4) {
    width: auto;
}

.charitable-dashboard-v2-table th:nth-child(5),
.charitable-dashboard-v2-table td:nth-child(5) {
    width: auto;
    text-align: center;
}

/* Campaign Title Styling */
.campaign-title {
    display: flex;
    align-items: center;
    gap: 8px;

    a {
        font-family: Inter;
        font-weight: 500;
        font-style: normal;
        font-size: 15px;
        line-height: 160%;
        letter-spacing: 0px;
        color: rgba(25, 29, 45, 1);
        text-decoration: none;

        &:hover {
            color: rgba(76, 123, 207, 1);
        }
    }
}

/* Goal and Reach Text Styling */
.charitable-dashboard-v2-table td:nth-child(2),
.charitable-dashboard-v2-table td:nth-child(3) {
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: Inter;
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
    color: rgba(25, 29, 45, 0.8);

    &.status-active {
        background: rgba(76, 123, 207, 0.1);
        color: rgba(76, 123, 207, 1);
    }

    &.status-unsuccessful {
        background: rgba(234, 78, 100, 0.1);
        color: rgba(234, 78, 100, 1);
    }

    &.status-cancelled {
        background: rgba(153, 153, 153, 0.1);
        color: rgba(153, 153, 153, 1);
    }
}

/* Progress Circle */
.progress-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto;

    svg {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.progress-text {
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
    z-index: 1;
}

/* Dashboard v2 Notifications */
.charitable-dashboard-v2-notifications {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  max-width: 1172px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;

  .charitable-dashboard-notification {
    margin: 0;
    border-left: 4px solid #ffb900;
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: none;

    &[data-notification-type="warning"] {
      border-left-color: #ffb900;
      background: white;
    }

    &[data-notification-type="error"] {
      border-left-color: #dc3232;
      background: #fbeaea;
    }

    &[data-notification-type="notice"] {
      border-left-color: #00a0d2;
      background: transparent;
    }

    .charitable-dashboard-notification-message {
      padding: 15px 20px;

      .charitable-dashboard-notification-headline {
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 600;
        color: #1d2327;
      }

      p {
        margin: 0 0 10px 0;
        line-height: 1.5;
      }

      ul {
        margin: 10px 0;
        padding-left: 20px;

        li {
          margin-bottom: 5px;
        }
      }
    }

    .charitable-dashboard-notification-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 15px;

      .charitable-remove-dashboard-notification {
        color: #666;
        text-decoration: none;
        font-size: 18px;
        line-height: 1;

        &:hover {
          color: #000;
        }
      }
    }
  }
}

/* Future V2 Dashboard Components */
// Add your custom components and styles here
// Example:
// .charitable-v2-widget { }
// .charitable-v2-card { }
// .charitable-v2-chart { }

/* Enhance Grid Icon Vertical Centering */
.charitable-dashboard-v2-enhance-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Basic Table Styles */
.charitable-dashboard-v2-table {
    width: 100%;
    border-collapse: collapse;

    thead th {
        background: rgba(25, 29, 45, 0.02);
        font-family: Inter;
        font-weight: 500;
        font-style: normal;
        font-size: 13px;
        line-height: 130%;
        letter-spacing: 0px;
        color: rgba(25, 29, 45, 0.5);
        padding: 16px 12px;
        text-align: left;
        border-bottom: 1px solid rgba(24, 36, 69, 0.1);
    }

    tbody td {
        padding: 16px 12px;
        border-bottom: 1px solid rgba(24, 36, 69, 0.05);
    }

    tbody tr:last-child td {
        border-bottom: none;
    }
}

/* Donation Table Styles */
.charitable-dashboard-v2-table-donations {
    margin-top: 0;
}

.charitable-dashboard-v2-table-donations th {
    background-color: rgba(248, 250, 252, 1);
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    padding: 16px 20px;
    text-align: left;
    font-family: Inter;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: rgba(25, 29, 45, 0.8);
}

.charitable-dashboard-v2-table-donations th:last-child {
    text-align: right;
    padding: 16px 35px;
}

.charitable-dashboard-v2-table-donations th:first-child,
.charitable-dashboard-v2-table-donations td:first-child {
    width: calc(100% - 120px) !important;
}

.charitable-dashboard-v2-table-donations th:last-child,
.charitable-dashboard-v2-table-donations td:last-child {
    width: auto !important;
}

.charitable-dashboard-v2-table-donations tr {
    transition: background-color 0.2s ease;
}

.charitable-dashboard-v2-table-donations tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

.charitable-dashboard-v2-table tr {
    transition: background-color 0.2s ease;
}

.charitable-dashboard-v2-table tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

.charitable-dashboard-v2-table-donations td {
    padding: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    vertical-align: top;
}

.charitable-dashboard-v2-table-donations td:last-child {
    padding-right: 30px;
    text-align: right;
    vertical-align: middle;
}

.donation-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px 20px;
    align-items: start;
    text-align: left;
}

.donation-name {
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 1);
}

.donation-name a {
    color: rgba(25, 29, 45, 1);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 11px;
    font-weight: 400;
}

.donation-name a:hover {
    color: rgba(43, 102, 209, 1);
    text-decoration: underline;
}

.donation-timestamp {
    font-weight: 200;
    font-size: 11px;
    margin-top: 4px;
    margin-left: 0;
}



.donation-amount {
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
}

.donation-method {
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
}

.donation-amount strong,
.donation-method strong {
    font-weight: 700;
}

.donation-method strong,
.donation-amount strong {
    color: rgba(25, 29, 45, 0.8);
}

.donation-method-stripe {
    color: #645aff !important;
}

/* Comment Table Styles */
.charitable-dashboard-v2-table-comments {
    margin-top: 0;
}

/* Top Donors Table Styles */
.charitable-dashboard-v2-table-donors {
    margin-top: 0;
}

.charitable-dashboard-v2-table-donors th {
    background-color: rgba(248, 250, 252, 1);
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    padding: 16px 20px;
    text-align: left;
    font-family: Inter;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
}

.charitable-dashboard-v2-table-donors td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    vertical-align: middle;
}

.donor-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.donor-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.donor-name {
    font-family: Inter;
    font-weight: 600;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.9);
}

.donor-email {
    font-family: Inter;
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.7);
}

.donor-amount {
    font-family: Inter;
    font-weight: 600;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 1);
}

.donor-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: Inter;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0px;
    text-align: center;
}

.donor-badge.recurring {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 1);
}

.donor-badge.multiple {
    background-color: rgba(16, 185, 129, 0.1);
    color: rgba(16, 185, 129, 1);
}

	.donor-badge.one-time {
		background-color: rgba(245, 158, 11, 0.1);
		color: rgba(245, 158, 11, 1);
	}

	/* Override first column width for donors table */
	.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors th:nth-child(1),
	.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors td:nth-child(1) {
		width: 30px !important;
		padding-left: 30px;
	}

	/* Last column padding for top campaigns table */
	.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table th:last-child,
	.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table td:last-child {
		padding-right: 30px;
	}

	/* Remove focus outline from tab navigation */
	.charitable-dashboard-v2-tab-nav-item:focus {
		outline: none;
	}

	/* Remove focus outline from section header tabs */
	.charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav-item:focus {
		outline: none;
	}

	/* Getting Started Section link transitions */
	.charitable-dashboard-v2-quick-access-items a {
		position: relative;
		text-decoration: none !important;
	}

	.charitable-dashboard-v2-quick-access-items a::before {
		content: '';
		position: absolute;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background-color: #18272F;
		bottom: -4px;
		left: 0;
		transform-origin: right;
		transform: scaleX(0);
		transition: transform .3s ease-in-out;
	}

	.charitable-dashboard-v2-quick-access-items a:hover::before {
		transform-origin: left;
		transform: scaleX(1);
	}

	/* Rate link arrow hover effect */
	.charitable-dashboard-v2-rate-link {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		transition: gap 0.3s ease !important;
		text-decoration: none !important;
	}

	.charitable-dashboard-v2-rate-link:hover {
		gap: 4px !important;
		text-decoration: none !important;
	}

	.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-rate-text,
	.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-arrow-icon {
		display: inline-block;
	}

	/* View all addons link arrow hover effect */
	.charitable-dashboard-v2-addons-link {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		transition: gap 0.3s ease !important;
		text-decoration: none !important;
	}

	.charitable-dashboard-v2-addons-link:hover {
		gap: 4px !important;
		text-decoration: none !important;
	}

	.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-addons-text,
	.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-arrow-icon {
		display: inline-block;
	}

.charitable-dashboard-v2-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.charitable-dashboard-v2-table-comments th {
    background-color: rgba(248, 250, 252, 1);
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    padding: 16px 20px;
    text-align: left;
    font-family: Inter;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: rgba(25, 29, 45, 0.8);
}

.charitable-dashboard-v2-table-comments th:last-child {
    text-align: right;
    padding: 16px 35px;
}

.charitable-dashboard-v2-table-comments th:first-child,
.charitable-dashboard-v2-table-comments td:first-child {
    width: calc(100% - 120px) !important;
}

.charitable-dashboard-v2-table-comments th:last-child,
.charitable-dashboard-v2-table-comments td:last-child {
    width: auto !important;
}

.charitable-dashboard-v2-table-comments tr {
    transition: background-color 0.2s ease;
}

.charitable-dashboard-v2-table-comments tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

.charitable-dashboard-v2-table-comments td {
    padding: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    vertical-align: top;
}

.charitable-dashboard-v2-table-comments td:last-child {
    padding-right: 30px;
    text-align: right;
    vertical-align: middle;
}

.comment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}

.comment-name {
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.9);
}



.comment-text {
    font-family: Inter;
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Inter;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0px;
    vertical-align: middle;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 0%;
    color: rgba(25, 29, 45, 0.7);
    transition: color 0.2s ease;
}

.comment-action:hover {
    color: rgba(25, 29, 45, 0.9);
}

.comment-action.approve {
    color: rgba(25, 29, 45, 0.7);
}

.comment-action.approve:hover {
    color: rgba(25, 29, 45, 0.9);
}

.comment-action.delete {
    color: rgba(25, 29, 45, 0.7);
}

.comment-action.delete:hover {
    color: rgba(25, 29, 45, 0.9);
}

.comment-action-separator {
    color: rgba(25, 29, 45, 0.3);
    font-weight: 400;
    font-size: 11px;
}

.comment-status-approved {
    color: rgba(15, 139, 0, 1);
    font-family: Inter;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0px;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 13px;
    line-height: 130%;
    letter-spacing: 0px;
    text-align: center;
    white-space: nowrap;
}

.status-paid,
.status-active,
.status-approved {
    background-color: #eafbe8;
    color: rgba(15, 139, 0, 1);
}

/* Placeholder Styles */
.charitable-dashboard-v2-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.charitable-dashboard-v2-placeholder-icon {
    margin-bottom: 24px;
}

.charitable-dashboard-v2-placeholder-title {
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.8);
    margin: 0 0 12px 0;
}

.charitable-dashboard-v2-placeholder-description {
    font-family: Inter;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0px;
    color: rgba(25, 29, 45, 0.6);
    margin: 0;
    max-width: 400px;
}

/* Empty State Button */
.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(218, 144, 33, 1);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  border: 0;

  &:hover {
    background: rgba(196, 130, 30, 1);
    color: white;
    text-decoration: none;
  }

  &:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
  }

  .button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
