/*
 Theme Name:   GP_SquadFunds Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme for SquadFunds
 Author:       Collins Deloach
 Author URI:   https://www.squadfunds.com
 Template:     generatepress 
 Version:      1.0
*/

/* Theme customization starts here-----------------------

Theme Colors

Main purple:  #1A005C
Main Orange:  #FB7900
Main Green:   #69FE02
LIght Purple: #1A005CC2;

------------------------------------------------------- */
:root {
  /* SquadFunds Theme Variables - Safe from Elementor conflicts */
  --sf-color-primary: #1A005C;
  --sf-color-secondary: #FB7900;
  --sf-color-accent: #69FE02;
  --sf-color-light-purple: #1A005CC2;
  
  --sf-spacing-xs: 5px;
  --sf-spacing-sm: 10px;
  --sf-spacing-md: 20px;
  --sf-spacing-lg: 30px;
  
  --sf-border-radius: 12px;
  --sf-transition: 0.3s ease;
  
  /* Backup Elementor Global Colors (in case they change) */
  --sf-elementor-primary-fallback: var(--e-global-color-primary, #1A005C);
  --sf-elementor-secondary-fallback: var(--e-global-color-secondary, #FB7900);
}

body div.gform_footer.top_label{
    text-align: center;
    }

body .slim {
    margin: 0 auto !important;
    border: 6px solid #ddd;
    border-radius: 50%;
}

body .slim-status {
    padding-left: 32px;
    position: relative;
}
body .slim-status:before {
    position: absolute;
    align-content: center;
    font-family: 'FontAwesome';
    top: 140px;
    content: "\f093";
    font-size: 40px;
    color: #989898;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover { 
    background-color: #f5f5f5;
}

.table {
    border-collapse: collapse;
    display: table;
    width: 100%;
}

.Title {
    display: table-caption;
    text-align: center;
    font-weight: bold;
    font-size: larger;
}

.th {
    display: table-row;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    background: #ddd;
}

.tr {
    display: table-row;
}

.tr:hover {
    background-color: orange;
}

.td {
    display: table-cell;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align: middle;
}

.table_lb {
    border-collapse: collapse;
    display: table;
    width: 100%;
}

.td_rank {
    display: table-cell;
    padding: 8px;
    text-align: center;
    font-size: xx-large;
    color: grey;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    padding-left: 5px;
    padding-right: 30px;
    vertical-align: middle;
}

/* Form Elements */
input[readonly] {
    background-color: #DBDBDB;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
}

input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

input[type="submit"].disabled, input[type="submit"].button-disabled, input[type="submit"]:disabled {
    background-color: #a7a7a7 !important;
    transition: all var(--sf-transition) !important;
    border: 1px solid #ddd !important;
    opacity: .7;
}

/* Main nav shadow - optimized */
.main-navigation {
    border-bottom: 1px solid rgba(0,0,0,.2);
}

.main-navigation.is_stuck.navigation-stick {
    border-bottom: 1px solid rgba(0,0,0,.2);
}

ul.menu {
    list-style: none;
    text-decoration: none;
    text-align: left;
    margin: 0;
    padding-left: 10px;
}

ul.menu a {
    color: var(--sf-color-primary);
}

ul li[class*="current-menu-item"] > a {
    color: var(--sf-color-secondary);
}

.menu-item {
    padding: 5px;
}

/* Sidebar & Widgets */
.sidebar .widget {
    text-align: center;
}

.sidebar .widget .widget-title {
    color: #ffffff;
}

.sidebar .widget .menu {
   text-align: left;
    padding-left: 10px;
}

.sidebar .widget .textwidget {
    padding: 10px;
}

.widget-area h2 {
    background-color: var(--sf-color-secondary);
    border-bottom: 1px solid #E6E6E6;
    font-size: 16px;
    padding: 5px 5px 5px 10px;
    margin: 0 0 10px;
}

.widget-area .widget {
    padding: 0px;
}

.widgettitle {
    border-bottom: solid 1px;
    background-color: #fb7900;
    margin-bottom: 25px;
    text-align: center;
    font-size: 18px;
    padding-bottom: 20px;
    font-size: 20px;
    height: 33px;
    line-height: 33px;
    border-bottom: 3px solid #DBDBDB;
    margin-bottom: 14px;
    margin-top: 14px;
    color: white;
}

.textwidget {
    margin-bottom: 25px;
    text-align: center;
    font-size: 18px;
}

.textwidget .sf_small_title {
    font-size: smaller;
}

/* Post/Page Elements */
.page-hero-gravatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    margin: 0 10px 0 0;
}

.author, .page-hero-gravatar {
    display: inline-block;
}

.entry-date {
    border-left: 2px solid #fff;
    padding-left: 10px;
    margin-left: 10px;
}

.entry-meta .byline, .entry-meta .cat-links {
    display: none;
}

.entry-meta .posted-on {
    display: none;
}

h3.entry-title {
    color: #a2aec7;
}

#left-area ul, .comment-content ul, .entry-content ul, body.et-pb-preview #main-content .container ul {
    padding: 0 0 23px 0em;
}

#left-area .et_pb_row {
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    color: var(--sf-color-primary);
}

.breadcrumbs a, a:visited {
    color: var(--sf-color-secondary);
}

/* WordPress Blocks */
.wp-block-button__link {
    border-radius: 5px;
}

/* =====================================
   PLUGIN STYLES - GIVE DONATION PLUGIN
   ===================================== */

/* Dashboard Stats */
.stat-number {
    color: #4f4f4f;
    display: block;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 0;
}

.give-dashboard-today {
    text-align: center;
}

.give-dashboard-date-today {
    margin: 10px 0 0;
    padding: 0;
}

.give-dashboard-happy-day {
    padding: 3px;
    margin: 0;
}

.give-dashboard-today-earnings {
    font-size: 42px;
    color: var(--sf-color-secondary);
    font-weight: bold;
    margin: 15px 0 0;
    line-height: 1;
}

.give-goal-progress .income {
    color: var(--sf-color-secondary);
    font-size: 35px;
    margin-bottom: 15px;
}

.give-goal-progress .goal-text {
    font-size: 20px;
    margin-bottom: 15px;
}

.give-goal-progress .raised {
    font-size: 20px;
    color: rgb(247, 182, 147);
}

.give-donations-today {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 30px;
    padding: 4px 0 1px;
}

.give-last-seven {
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    margin: 0 0 30px;
}

.give-table-stats-tr {
    width: 100%;
    text-align: center;
    margin: 0;
    table-layout: fixed;
    border-top: 1px solid #ececec;
    border-spacing: 0;
}

.give-dashboard-stat-total, .give-dashboard-stat-total-label {
    padding: 0;
    margin: 0;
}

.give-dashboard-stat-total {
    color: rgb(147, 148, 146);
    font-weight: bold;
    font-size: 20px;
}

#give_dashboard_sales {
    padding: 0;
}

.give-form-title {
    display: none;
}

.give-donor__header {
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.give-donor__image {
    justify-content: center;
    background: #66000000;
    margin-right: 15px;

/* SquadFunds campaign table tweaks */
.sf-campaign-table {
    font-size: 0.95rem; /* slightly smaller font */
    border-collapse: collapse;
    width: 100%;
}
.sf-campaign-table th, .sf-campaign-table td {
    padding: 6px 8px;
    border: 1px solid #e6e6e6;
    vertical-align: middle;
}
.sf-campaign-table thead th,
table.sf-campaign-table thead th {
    background-color: #343a40 !important; /* darker header - now enforced */
    color: #ffffff !important; /* white text for readability */
    font-weight: 600;
    border-color: #2f3538 !important;
}
.sf-campaign-table .sf-campaign-status {
    text-align: center;
    font-size: 1.1rem;
}
.sf-campaign-table .sf-campaign-cron {
    text-align: center;
}
.sf-campaign-table tr:hover { background-color: #f8f8fb; }
    overflow: hidden;
    border-radius: 0%;
    flex-basis: 40%;
    position: relative;
}

.give-donor__image img.um-avatar {
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    margin: 10px;
    border: 4px solid #ddd;
    border-radius: 500px;
}

/* Give Form Buttons */
button.give-btn, #give-purchase-button {
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    color: #FFFFFF;
    font-size: 20px;
    border: 2px solid var(--sf-color-secondary);
    float: left;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--sf-transition);
}

button.give-btn-reveal {
    padding: 10px 20px;
    border-radius: 5px;
    width: 50%;
    font-size: 20px;
    border: 2px solid var(--sf-color-secondary);
    float: left;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--sf-transition);
}

[id*=give-form].give-display-modal .give-btn, [id*=give-form].give-display-reveal .give-btn {
    border: 1px solid #ff7d00;
}

form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn.give-default-level {
    color: #ffffff;
    background-color: var(--sf-color-secondary);
    border-color: #adadad;
}

form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn:hover,
form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn:focus,
form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn.focus,
form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn:active,
form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn.active,
.open>.dropdown-toggleform[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn {
    color: #ffffff;
    background-color: var(--sf-color-secondary);
    border-color: #adadad;
}

form[id*='give-form'] #give-donation-level-button-wrap .give-donation-level-btn {
    color: var(--sf-color-secondary);
    background-color: #ffffff;
}

/* Give Form Donation Boxes */
form[id*="give-form"] .give-donation-amount #give-amount, 
form[id*="give-form"] .give-donation-amount #give-amount-text {
    border: 1px solid #fcbd09;
    height: 80px;
    line-height: 80px;
    font-size: 22px;
    min-width: 140px;
    float: left;
}

form[id*="give-form"] .give-donation-amount .give-currency-symbol {
    border: 1px solid #fcbd09;
    height: 80px;
    line-height: 80px;
    font-size: 22px;
    float: left;
}

form[id*="give-form"] .give-donation-amount .give-currency-symbol.give-currency-position-before {
    border-left: 1px solid #fcbd09;
    border-right: none;
}

input.give-submit[type="submit"]:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
    color: var(--sf-color-secondary);
    border: 2px solid var(--sf-color-secondary);
    text-align: left;
}

/* =====================================
   PLUGIN STYLES - ULTIMATE MEMBER
   ===================================== */
/**
 * Hide error messages under fields.
 */
.um-account-meta img {
    border-radius: 50% !important;
    border: 0px !important;
}

.um-social-login-wrap {
    width: 50%; 
}

.um input[type=submit].um-button {
    background-color: var(--sf-color-secondary) !important;
    transition: all var(--sf-transition) !important;
    font-size: inherit !important;
    cursor: pointer;
}

.um input[type=submit]:hover {
    background-color: rgba(255, 125, 0, 0.56) !important;
}

.um .um-form input[type=text] {
    background-image: none !important;
}

#um-submit-btn {
    background-color: var(--sf-color-secondary) !important;
    transition: all var(--sf-transition) !important;
    font-size: inherit !important;
}

#um-submit-btn:hover {
    background-color: rgba(255, 125, 0, 0.56) !important;
}

#um-btn {
    border-radius: 2px;
    background: #eeeeee;
    border: 2px solid var(--sf-color-secondary);
    transition: all var(--sf-transition);
    font-size: inherit;
    font-weight: inherit;
}

.um .um-form input[type=text]:focus, 
.um .um-form input[type=number]:focus, 
.um .um-form input[type=tel]:focus, 
.um .um-form input[type=password]:focus, 
.um .um-form textarea:focus {
    box-shadow: 0 0 5px var(--sf-color-secondary) !important;
    background-color: #FFFFFF !important;
}

.um .um-form input[type=text], 
.um .um-form input[type=number], 
.um .um-form input[type=tel], 
.um .um-form input[type=password], 
.um .um-form textarea {
    background-color: #FFFFFF !important;
}

.sidebar .widget .textwidget {
    padding: 10px;
}

/* =====================================
   PLUGIN STYLES - GRAVITY FORMS
   ===================================== */

body div.gform_footer.top_label {
    text-align: center;
}

.gfield_label {
    color: var(--sf-color-secondary);
}

body .gform_wrapper ul li.gfield#field_14_33 {
    text-align: center; 
}

.gform_wrapper .top_label .gfield_label,
.gform_wrapper .field_sublabel_below .ginput_complex.ginput_container label {
    display: none;
}

.gform_wrapper.gf_browser_chrome select {
    padding: 7px !important;
}

/* =====================================
   PLUGIN STYLES - ACF
   ===================================== */

.acf-field input[type=text]:focus, 
.acf-field input[type=number]:focus, 
.acf-field input[type=tel]:focus {
    box-shadow: 0 0 10px var(--sf-color-secondary) !important;
    background-color: #FFFFFF !important;
}

.acf-field input[type=text], 
.acf-field input[type=number], 
.acf-field input[type=tel] {
    font-size: 17px !important;
    height: 40px !important;
}

/* =====================================
   PLUGIN STYLES - TINYMCE
   ===================================== */

.mce-toolbar .mce-btn button, .qt-dfw {
    background-color: white;
    color: black;
}

/* =====================================
   ELEMENTOR CUSTOMIZATIONS
   WARNING: Test thoroughly after changes
   ===================================== */

/* Elementor Images */
.elementor img.circular {
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    margin: 0px;
    border: 6px solid #ddd;
    border-radius: 500px;
}

/* Elementor Headlines */
.elementor-headline-animation-type-clip .elementor-headline-dynamic-wrapper:after {
    background-color: white !important;
}

/* Elementor Sidebar Menu */
.elementor-widget-sidebar .current-menu-item {
    background-color: white;
    border-radius: 10px 0px 0px 10px;
    border-top: 1px;
    border-left: 1px;
    border-bottom: 1px;
    border-style: solid;
    border-color: grey;
}

.elementor-widget-sidebar .menu-item {
    border-radius: 10px 0px 0px 10px;
    border-top: 1px;
    border-left: 1px;
    border-bottom: 1px;
    border-style: solid;
    border-color: #ECECEC;
}

.elementor-widget-sidebar .menu-item:hover {
    background-color: white;
    border-color: orange;
}

.elementor-widget-sidebar .menu-item a {
    display: block;
}

/* Elementor Menu Toggle */
.elementor-menu-toggle:before {
    position: relative;
    content: "MENU";
    padding-right: 10px;
    padding-top: 7px;
    font-size: medium;
}

/* Elementor Grid */
.elementor-grid .elementor-grid-item {
    padding: 10px;
}

/* Elementor Tabs */
#sf-tabs {
    border-style: none none none !important;
}

.elementor-tab-title .elementor-tab-desktop-title .elementor-active {
    border-top: 4px solid var(--sf-color-secondary);
}

/* =====================================
   CUSTOM SQUADFUNDS COMPONENTS
   ===================================== */

/* Custom Buttons */
.sf-menu-btn {
    background-color: var(--sf-color-secondary) !important;
    padding: 0px;
    border-color: var(--sf-color-accent) !important;
    margin: -10px 5px 5px !important;
    border-radius: 2px;
    transition: all var(--sf-transition) !important;
    font-size: inherit !important;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5) !important;
    border-radius: 5px !important;
    cursor: pointer;
}

.sf-menu-btn:hover {
    background-color: rgba(255, 125, 0, 0.56) !important;
}

.sf-menu-btn-ghost {
    background-color: rgba(2, 1, 1, 0) !important;
    border-style: solid;
    border-width: 2px !important;
    margin: -10px 5px 5px !important;
    border-color: var(--sf-color-secondary);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5) !important;
    border-radius: 5px !important;
}

.sf-menu-btn-ghost:hover {
    background-color: rgba(255, 125, 0, 0.56) !important;
}

.sf-btn-ghost {
    background-color: #FFFFFF !important;
    color: var(--sf-color-secondary) !important;
    border-color: var(--sf-color-secondary) !important;
    border-style: solid;
    border-width: 1px;
    font-size: 16px;
}

.sf-btn-disabled {
    background-color: lightgrey !important;
    color: #FFFFFF !important;
    border-color: lightgrey !important;
}

.sf-btn-ghost:hover {
    background-color: rgba(255, 125, 0, 0.56) !important;
    color: #FFFFFF !important;
}

/* Campaign Header */
.sf-amount-raised,
.sf-goal-amount {
    color: var(--sf-color-secondary);
}

/* Dashboard Overview Styles */
.sf-dashboard-overview {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sf-spacing-md);
}

.sf-dashboard-today {
    text-align: center;
    margin-bottom: 40px;
}

.sf-dashboard-today .amount {
    font-size: 72px;
    font-weight: 700;
    color: var(--sf-color-secondary);
    margin: 0;
    line-height: 1.1;
}

.sf-dashboard-today .label {
    font-size: 24px;
    color: var(--sf-color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0 30px 0;
    font-weight: 500;
}

.sf-dashboard-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: var(--sf-spacing-md);
}

.sf-dashboard-col {
    flex: 1;
    text-align: center;
}

.sf-dashboard-col h3 {
    font-size: 18px;
    color: #6c757d;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sf-dashboard-col .value {
    font-size: 36px;
    font-weight: 700;
    color: var(--sf-color-primary);
    margin: 0;
    line-height: 1.2;
}

.sf-dashboard-divider {
    border-top: 2px solid #e1e5e9;
    margin: 40px 0;
}

.sf-fundraiser-section {
    margin-top: 40px;
}

.sf-fundraiser-section h2 {
    font-size: 32px;
    color: var(--sf-color-primary);
    text-transform: uppercase;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.sf-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px; 
}

.sf-dashboard-card {
    background: rgba(26, 0, 92, 0.03);
    border: 1px solid #e1e5e9;
    border-radius: var(--sf-border-radius);
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    will-change: transform;
}

.sf-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--sf-color-primary);
}

.sf-dashboard-card .icon {
    font-size: 32px;
    color: var(--sf-color-primary);
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
    line-height: 1;
}

.sf-dashboard-card .content .label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.sf-dashboard-card .content .value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.sf-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sf-color-primary), var(--sf-color-secondary));
    opacity: 0;
    transition: opacity var(--sf-transition);
}

.sf-dashboard-card:hover::before {
    opacity: 1;
}

/* Dashboard Header */
.sf-dashboard-header {
    background: linear-gradient(135deg, var(--sf-color-primary) 0%, #2d1065 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.sf-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 121, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.sf-dashboard-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 2;
}

.sf-dashboard-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Progress Components */
.sf-progress-ring {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sf-progress-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.sf-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sf-progress-circle .bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.sf-progress-circle .progress {
    fill: none;
    stroke: var(--sf-color-secondary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease;
}

.sf-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.sf-progress-text .percentage {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.sf-progress-text .label {
    font-size: 12px;
    opacity: 0.8;
}

.sf-progress-stats {
    flex: 1;
    margin-left: 40px;
}

.sf-progress-stats .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-progress-stats .stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.sf-progress-stats .stat-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--sf-color-secondary);
}

/* Quick Actions */
.sf-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sf-spacing-md);
    margin-bottom: 30px;
}

.sf-quick-action-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: var(--sf-border-radius);
    padding: var(--sf-spacing-md);
    text-align: center;
    transition: all var(--sf-transition);
    position: relative;
    overflow: hidden;
}

.sf-quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sf-color-primary), var(--sf-color-secondary));
    transform: scaleX(0);
    transition: transform var(--sf-transition);
}

.sf-quick-action-card:hover::before {
    transform: scaleX(1);
}

.sf-quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sf-quick-action-card .icon {
    font-size: 32px;
    color: var(--sf-color-primary);
    margin-bottom: 15px;
}

.sf-quick-action-card .title {
    font-size: 18px;
    font-weight: bold;
    color: var(--sf-color-primary);
    margin-bottom: 8px;
}

.sf-quick-action-card .description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.sf-quick-action-card .action-btn {
    background: var(--sf-color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--sf-transition);
    text-decoration: none;
    display: inline-block;
}
@keyframes load { 
    0% { 
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    } 
}

.sf-activity-item:last-child {
    border-bottom: none;
}

.sf-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sf-color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.sf-activity-content {
    flex: 1;
}

.sf-activity-content .message {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.sf-activity-content .time {
    color: #6c757d;
    font-size: 12px;
}

.sf-activity-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--sf-color-secondary);
}

/* Performance Metrics */
.sf-performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sf-spacing-md);
    margin-bottom: 30px;
}

.sf-metric-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: var(--sf-border-radius);
    padding: var(--sf-spacing-md);
    text-align: center;
}

.sf-metric-card h4 {
    color: var(--sf-color-primary);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-metric-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--sf-color-secondary);
    margin-bottom: 10px;
}

.sf-metric-change {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.sf-metric-change.positive {
    background: #d4edda;
    color: #155724;
}

.sf-metric-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* =====================================
   UTILITY CLASSES
   ===================================== */

.sf_small_title_colxxlhhinx {
    color: grey;
    font-size: 14px;
}

.sf_small_title {
    font-size: small;
}

/* Message Boxes */
.scroll-box {
    height: 200px;
    text-align: left;
    overflow: auto;
}

.scroll-box .donor-name {
    color: orange;
    font-size: 14px;
    text-align: left;
}

.scroll-box .time-ago {
    color: rgb(199, 196, 196);
    font-size: 12px;
}

.scroll-box .encouraging-msg {
    color: rgb(57, 57, 57);
    font-size: 14px;
    font-style: italic;
}

.scrolling-donor-name {
    color: rgb(57, 57, 57);
    font-size: 14px;
    text-align: left;
}

.scrolling-amount {
    color: rgb(9, 128, 95);
    font-size: 14px;
    font-style: italic;
}

/* Alert Boxes */
.alertBox {
    border: 1px solid;
    margin: 10px 0px;
    padding: 10px;
    background-repeat: no-repeat;
    background-position: 10px center;
    border-width: thin thin thin thick;
}

.alertBox {
    color: #00529B;
    background-color: #EDFFFF;
}

.info, .success, .warning, .error {
    padding: 10px;
    margin: 20px 0;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid;
    border-width: thin thin thin thick;
}

.info {
    color: #00529B;
    background-color: #EDFFFF;
}

.success {
    color: rgb(60, 118, 61);
    background-color: rgb(223, 240, 216);
}

.warning {
    color: #9F6000;
    background-color: #FEEFB3;
}

.error {
    color: #D8000C;
    background-color: #FFD2D2;
}

/* Social Sharing */
.addtoany_content {
    text-align: center;
}

.addtoany_content .a2a_svg {
    border-radius: 50% !important;
}

/* =====================================
   ANIMATIONS & EFFECTS
   ===================================== */

/* Loading Spinner */
.loading-indicator-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    background: rgba(0,0,0,.701961);
    transition: all 250ms linear;
}

.loading-indicator-wrapper.loader-visible {
    opacity: 1;
    z-index: 9999;
}

.loading-indicator-wrapper.loader-hidden {
    opacity: 0;
    z-index: -1;
}

.loading-indicator-wrapper img {
    vertical-align: middle;
    display: inline-block;
}

.loading-indicator-wrapper .loader2 {
    margin: 0 auto;
    font-size: 10px;
    position: relative;
    display: inline-block;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255,255,255,.2);
    border-right: 1.1em solid rgba(255,255,255,.2);
    border-bottom: 1.1em solid rgba(255,255,255,.2);
    border-left: 1.1em solid #fff;
    animation: load 1.1s infinite linear;
}

.loading-indicator-wrapper .loader2,
.loading-indicator-wrapper .loader2:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loading-indicator-wrapper .loading-indicator-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* Grid Card Effects */
#gridcard .column article, #gridcard .column article img {
    transition: all 0.8s;
}

#gridcard .column:first-child article:nth-child(odd):hover, 
#gridcard .column:last-child article:nth-child(odd):hover, 
#gridcard .column:nth-child(2) article:nth-child(even):hover {
    background: #fff;
}

#gridcard .column:first-child article:nth-child(odd):hover .entry-title, 
#gridcard .column:first-child article:nth-child(odd):hover .post-meta, 
#gridcard .column:first-child article:nth-child(odd):hover .post-meta a, 
#gridcard .column:first-child article:nth-child(odd):hover .post-content p, 
#gridcard .column:last-child article:nth-child(odd):hover .entry-title, 
#gridcard .column:last-child article:nth-child(odd):hover .post-meta, 
#gridcard .column:last-child article:nth-child(odd):hover .post-meta a, 
#gridcard .column:last-child article:nth-child(odd):hover .post-content p, 
#gridcard .column:nth-child(2) article:nth-child(even):hover .entry-title, 
#gridcard .column:nth-child(2) article:nth-child(even):hover .post-meta, 
#gridcard .column:nth-child(2) article:nth-child(even):hover .post-meta a, 
#gridcard .column:nth-child(2) article:nth-child(even):hover .post-content p {
    color: #333;
}

#gridcard .column:first-child article:nth-child(even):hover, 
#gridcard .column:last-child article:nth-child(even):hover, 
#gridcard .column:nth-child(2) article:nth-child(odd):hover {
    background: #333;
}

#gridcard .column:first-child article:nth-child(even):hover .entry-title, 
#gridcard .column:first-child article:nth-child(even):hover .post-meta, 
#gridcard .column:first-child article:nth-child(even):hover .post-meta a, 
#gridcard .column:first-child article:nth-child(even):hover .post-content p, 
#gridcard .column:last-child article:nth-child(even):hover .entry-title, 
#gridcard .column:last-child article:nth-child(even):hover .post-meta, 
#gridcard .column:last-child article:nth-child(even):hover .post-meta a, 
#gridcard .column:last-child article:nth-child(even):hover .post-content p, 
#gridcard .column:nth-child(2) article:nth-child(odd):hover .entry-title, 
#gridcard .column:nth-child(2) article:nth-child(odd):hover .post-meta, 
#gridcard .column:nth-child(2) article:nth-child(odd):hover .post-meta a, 
#gridcard .column:nth-child(2) article:nth-child(odd):hover .post-content p {
    color: #fff;
}

/* Keyframes */
@keyframes load { 
    0% { 
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    } 
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sf-dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sf-spacing-md);
    }
    
    .sf-dashboard-today .amount {
        font-size: 64px;
    }
    
    .sf-dashboard-col .value {
        font-size: 32px;
    }
    
    .elementor-widget-tabs.elementor-tabs-view-horizontal .elementor-tab-content {
        border: none;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    /* Dashboard Responsive */
    .sf-dashboard-overview {
        padding: 15px;
    }
    
    .sf-dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: var(--sf-spacing-md);
    }
    
    .sf-dashboard-card {
        padding: 15px;
        margin: 0 10px;
    }
    
    .sf-dashboard-card .icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .sf-dashboard-card .content .value {
        font-size: 24px;
    }
    
    .sf-dashboard-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .sf-dashboard-today .amount {
        font-size: 48px;
    }
    
    .sf-dashboard-today .label {
        font-size: 18px;
    }
    
    .sf-fundraiser-section h2 {
        font-size: 24px;
    }
    
    .sf-dashboard-header {
        padding: var(--sf-spacing-md);
    }
    
    .sf-progress-ring {
        flex-direction: column;
        text-align: center;
    }
    
    .sf-progress-stats { 
        margin-left: 0;
        margin-top: var(--sf-spacing-md);
        width: 100%;
    }
    
    .sf-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .sf-performance-metrics {
        grid-template-columns: 1fr;
    }

    /* Make Yesterday, This Week, Total all on one line and compact, but bolder and larger */
    .sf-dashboard-row {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
        padding: 0 2px;
    }
    .sf-dashboard-col {
        font-size: 1.08em;
        padding: 6px 0 2px 0;
        min-width: 0;
    }

    /* Prevent short dashboard labels from wrapping (e.g., 'Yesterday') */
    .sf-dashboard-col .label, .sf-dashboard-col h3 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sf-dashboard-col h3 { font-size: 1.02em; }
    .sf-dashboard-col h3 {
        font-size: 1.08em;
        margin-bottom: 0;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #1A005C;
    }
    .sf-dashboard-col .value {
        font-size: 1.25em;
        margin: 0;
        font-weight: 800;
        color: #1A005C;
    }

    /* Fundraiser Metrics: two per row in mobile with more space between boxes */
    .sf-dashboard-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important; /* Increased from 10px for more space */
        margin-top: var(--sf-spacing-md);
        background: rgba(251, 121, 0, 0.07);
        border-radius: 12px;
        padding: 8px 0 4px 0;
    }
    .sf-dashboard-card {
        min-width: 0;
        max-width: 100%;
        padding: 10px 4px 10px 4px;
        font-size: 0.98em;
        margin: 0;
    }
    
    /* Button Responsive */
    .sf-menu-btn, .sf-menu-btn-ghost {
        margin: 10px 80px 10px 80px !important; 
    }

    /* Elementor Mobile Overrides */
    .ha-steps-icon, .ha-steps-label {
        top: -20px !important;
        right: -15px !important; 
    }
    
    .elementor-nav-menu, .elementor-nav-menu li, .elementor-nav-menu ul {
        margin: 10px 20px 10px 20px;
    }
    
    .elementor-widget-container {
        font-size: small !important;
    }
    
    .elementor-icon-box-icon {
        float: left;
    }
    
    .elementor-icon-box-content {
        text-align: left;
        display: table;
        padding-left: var(--sf-spacing-md);
    }

    /* Table Responsive */
    .wpDataTablesWrapper table.wpDataTable {
        font-size: small;
    }

    /* Responsive campaign table: stack rows as cards */
    .sf-campaign-table {
        border: 0;
    }
    .sf-campaign-table thead {
        display: none;
    }
    .sf-campaign-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }
    .sf-campaign-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
        flex-wrap: wrap;
    }
    .sf-campaign-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #6c757d;
        margin-right: 8px;
        flex: 0 0 auto;
    }
    /* Title should take full width on mobile */
    .sf-campaign-table td.sf-campaign-title {
        width: 100%;
        padding-bottom: 8px;
    }
    .sf-campaign-table td.sf-campaign-title a {
        display: block;
        width: 100%;
        white-space: normal;
    }

    /* Make cron and status icons align right */
    .sf-campaign-table td.sf-campaign-status,
    .sf-campaign-table td.sf-campaign-cron {
        justify-content: flex-end;
    }

    /* Ensure status and cron align on the same line at the end */
    .sf-campaign-table .sf-campaign-status, .sf-campaign-table .sf-campaign-cron {
        flex: 0 0 auto;
        margin-left: 8px;
    }

    .td {
        font-size: small;
    }

    .circular img {
        width: 65px;
        border-radius: 50%;
    }

    .mce-toolbar .mce-ico {
        font-size: medium;
    }

    /* Form Responsive */
    .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        width: 200px;       
    }
    
    div.gform_footer.top_label {
        text-align: left;
    }
    
    .acf-field input[type=text], .acf-field input[type=number], .acf-field input[type=tel] {
        max-width: 75%;
    }

    button.give-btn, #give-purchase-button {
        font-size: 16px;
    } 
    
    button.give-btn-reveal {
        font-size: 16px;
    }
    
    .give-form-content-wrap {
        font-size: large;
    }
}

.addtoany_content { text-align:center; }
.addtoany_content .a2a_svg { border-radius: 50% !important; }

/* Performance optimization styles for sf_campaign_personal_header_shortcode */
.sf-amount-raised,
.sf-goal-amount {
    color: #FB7900;
}


/* =====================================
   ENHANCED DASHBOARD OVERVIEW
   ===================================== */

/* Dashboard Header Stats */
.sf-dashboard-header {
    background: linear-gradient(135deg, #1A005C 0%, #2d1065 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.sf-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 121, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.sf-dashboard-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 2;
}

.sf-dashboard-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Progress Ring */
.sf-progress-ring {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sf-progress-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.sf-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sf-progress-circle .bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.sf-progress-circle .progress {
    fill: none;
    stroke: #FB7900;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease;
}

.sf-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.sf-progress-text .percentage {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.sf-progress-text .label {
    font-size: 12px;
    opacity: 0.8;
}

.sf-progress-stats {
    flex: 1;
    margin-left: 40px;
}

.sf-progress-stats .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-progress-stats .stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.sf-progress-stats .stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #FB7900;
}

/* Quick Action Cards */
.sf-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sf-quick-action-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sf-quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A005C, #FB7900);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sf-quick-action-card:hover::before {
    transform: scaleX(1);
}

.sf-quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sf-quick-action-card .icon {
    font-size: 32px;
    color: #1A005C;
    margin-bottom: 15px;
}

.sf-quick-action-card .title {
    font-size: 18px;
    font-weight: bold;
    color: #1A005C;
    margin-bottom: 8px;
}

.sf-quick-action-card .description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.sf-quick-action-card .action-btn {
    background: #FB7900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.sf-quick-action-card .action-btn:hover {
    background: #e56b00;
    transform: translateY(-2px);
}

/* Recent Activity Feed */
.sf-recent-activity {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.sf-recent-activity h3 {
    color: #1A005C;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FB7900;
}

.sf-activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

.sf-activity-item:last-child {
    border-bottom: none;
}

.sf-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FB7900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.sf-activity-content {
    flex: 1;
}

.sf-activity-content .message {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.sf-activity-content .time {
    color: #6c757d;
    font-size: 12px;
}

.sf-activity-amount {
    font-size: 16px;
    font-weight: bold;
    color: #FB7900;
}

/* Performance Metrics */
.sf-performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sf-metric-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.sf-metric-card h4 {
    color: #1A005C;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-metric-value {
    font-size: 32px;
    font-weight: bold;
    color: #FB7900;
    margin-bottom: 10px;
}

.sf-metric-change {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.sf-metric-change.positive {
    background: #d4edda;
    color: #155724;
}

.sf-metric-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* =====================================
   ACF FIELD ENHANCEMENTS (SquadFunds style)
   ===================================== */

/* Style the field container */
.acf-field {
    margin-bottom: 0px !important;
    background: none !important;
    border: none !important;
}

/* Style the label */
.acf-label label {
    font-weight: 700   !important;
    color: var(--sf-color-primary, #1A005C)  !important;
    font-size: .85em !important;
    letter-spacing: 0.5px !important;
}


/* Style paragraph tags inside ACF fields */
.acf-field p {
    font-size: 0.85em;
    color: #292828 !important;
}