/*
Theme Name: REIGN Child
Theme URI: https://wbcomdesigns.com/downloads/reign-buddypress-theme/
Author: Wbcom Designs
Author URI: https://wbcomdesigns.com/
Description: Premium BuddyPress Theme with Elementor Page Builder support.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: reign-child
Template: reign-theme
Domain Path: /languages/
Tags: one-column, two-columns, right-sidebar, custom-background, custom-menu, featured-images, post-formats, full-width-template, translation-ready, theme-options, threaded-comments, footer-widgets, custom-logo
*/

:root {
    /* 1. Spiritual Base Colors */
    --sso-label-color: #9B1B30;
    --common-bg: #FFFFFF;
    --bg-card: #FFFFFF;
    --common-border: #F4A300;
    --common-text: #5C4033;

    /* 2. Soothing Hindu Label (Light Mode) */
    --group-label-bg: #FEF3C7;
    --group-label-text: #B45309;

    /* 3. Pro-Tip Updates */
    --zen-shadow: rgba(180, 83, 9, 0.12); /* Warm Amber Glow */
    --spiritual-accent: #F4A300; /* Saffron */
	

  /* ===== ACCORDION ===== */
  --accordion-bg: #800000;          /* Warm sand/beige with contrast */
  --accordion-bg-hover: #ffffff;    
  --accordion-border: #7A1E2C;      /* Deep maroon border */
  --accordion-text: #7A1E2C;        /* Dark maroon text */
  --accordion-text-muted: #5C3A2E;  /* Subtle brown for content */

  /* ===== BAR GRAPH ===== */
  --bar-primary: #E07A1F;           /* Saffron */
  --bar-secondary: #7A1E2C;         /* Deep Maroon */

  /* ===== CARDS / PANELS ===== */
  --card-bg: #FFFFFF;
  --card-border: #E5D6BD;

  /* ===== BACKGROUND ===== */
  --bg-main: #F8F3EA;
  --bg-section: #F3E9D7;

  /* ===== TEXT ===== */
  --text-primary: #3E2A1F;
  --text-secondary: #6B4C3B;

  /* ===== GOLD ACCENTS ===== */
  --gold-primary: #C9A227;
  --gold-muted: #E6C76A;


  --orange-button-color:#ff9601;
	    --bb-success-color: #14B550;
	    --bb-content-background-color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* 1. Spiritual Dark Mode Overrides */
        --sso-label-color: #F4C430;
        --common-bg: #292524;
        --bg-card: #292524;
        --common-border: #92400E;
        --common-text: #E5E7EB;

        /* 2. Soothing Hindu Label (Dark Mode) */
        --group-label-bg: #451A03;
        --group-label-text: #FDE68A;

        /* 3. Dark Mode Shadow */
        --zen-shadow: rgba(0, 0, 0, 0.5);
		
		 /* ===== ACCORDION ===== */
  --accordion-bg: #1C1A17;
  --accordion-bg-hover: #24211D;
  --accordion-border: #B8860B;
  --accordion-text: #F5EBDD;
  --accordion-text-muted: #CBBFAE;

  /* ===== CARDS / PANELS ===== */
  --card-bg: #211E1A;
  --card-border: #3A332B;

  /* ===== BAR GRAPH (2 Colors) ===== */
  --bar-primary: #FF9F1C;     /* Glowing Saffron */
  --bar-secondary: #A8323E;   /* Ruby Maroon */

  /* ===== GOLD ACCENTS ===== */
  --gold-primary: #D4A017;
  --gold-muted: #8C6A1A;

  /* ===== BACKGROUND ===== */
  --bg-main: #181613;
  --bg-section: #221F1A;

  /* ===== TEXT ===== */
  --text-primary: #F5EBDD;
  --text-secondary: #B8AA96;

    }
}

/* --- User Profile Info (New Zen Layout) --- */
.user-profile-info {
    padding: 30px;               /* Spiritual Whitespace */
    background: var(--common-bg);
    border: 1px solid var(--common-border);
    border-radius: 12px;
    color: var(--common-text);
    box-shadow: 0 10px 25px -5px var(--zen-shadow);
    line-height: 1.8;            /* Breathable reading */
    margin: 20px 0;
}

.profile-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.spiritual-icon {
    color: var(--spiritual-accent);
    font-size: 1.4em;
    margin-right: 12px;
    font-family: serif;          /* Traditional ॐ look */
}

/* --- Group Labels (Pill Design) --- */
.ld-group-label {
    display: inline-block; 
    margin: 2px 4px; 
    padding: 4px 14px; 
    background: var(--group-label-bg); 
    color: var(--group-label-text);
    border-radius: 50px;         /* Smooth Zen Pill */
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;   
    letter-spacing: 0.6px;
    border: 1px solid rgba(180, 83, 9, 0.15);
    transition: transform 0.2s ease;
}

.ld-group-label:hover {
    transform: translateY(-2px); /* Gentle lift */
}

/* --- Testimonials --- */
.testimonial-carousel blockquote {
    position: relative;
    padding: 25px;               /* Increased padding */
    background: var(--common-bg);
    border: var(--common-border) solid 1px;
    color: var(--common-text);
    border-radius: 8px;          /* Softer corners */
    box-shadow: 0 4px 15px var(--zen-shadow);
}

.testimonial-carousel .testimonial-avatar img {
    border-radius: 50%;
}

.testimonial-carousel .testimonial-author {
    font-style: italic;
    color: var(--common-text);
}

/* --- Other Components --- */
div.bb-sso-container .bb-sso-button-default div.bb-sso-button-label-container {
    color: var(--sso-label-color) !important;
}

.swiper-button-next { margin-left: 20px; }
.swiper-button-prev { margin-right: 20px; }


/* Sidebar Card Container */
/* Sidebar Card Container - Corrected */
.tracker-sidebar-card {
       display: grid;
    width: 100% !important;
    max-width: 100%;
    padding: 15px !important;
    background: var(--common-bg);
    border: 1px solid var(--common-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--zen-shadow);
    margin: 0 0 25px 0 !important;
    clear: both !important;
    box-sizing: border-box;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 8px;

}


/* Fix BuddyBoss activity feed overlap */
#buddypress .activity-list {
    clear: both !important;
}

/* Header within Sidebar */
.tracker-header {
  border-right: 1px dashed var(--common-border);
    text-align: center;
    vertical-align: middle;
}

.tracker-title-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sso-label-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spiritual-icon-small {
    font-size: 1.1rem;
    margin-right: 5px;
}

/* Stats Grid for narrow spaces */
.tracker-grid {
	
    background: rgba(244, 163, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tracker-stat {
 text-align: center;
    font-size: 0.95rem;
    color: var(--common-text);
    margin: auto;
    border-radius: 4px;
}

.tracker-stat strong {
    display: block;
    font-size: 0.65rem;
    color: var(--sso-label-color);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.tracker-update{
	    display: flex;
    justify-content: center;
    align-items: center;
}
.site-content{
	margin-top:50px !important;
}
/* 1. Desktop Style (Always define first) */
.site-content {
    margin-top: 50px !important;
}

/* 2. Mobile Override (Always define last) */
@media screen and (max-width: 768px) {
    .site-content {
        /* This !important wins on mobile because it is further down the file */
        margin-top: 5px !important;
    }
}

/* 3. Extra Small Mobile (Optional) */
@media screen and (max-width: 480px) {
    .site-content {
        margin-top: 0px !important;
    }
}

.purascharnaTracker{
	#editable-grid_length select {width:60px;}
.icon-only-btn { background: transparent; border: 2px solid #ffb74d; padding: 10px; border-radius: 50%; cursor: pointer; font-weight: 700;color: #ffb74d; }
.icon-only-btn:hover { background: rgba(255,183,77,.15); }
progress { width: 100%; height: 16px; appearance: none; -webkit-appearance: none; border: 1px solid #999; border-radius: 4px; }
progress::-webkit-progress-bar { background: #eee; }
progress::-webkit-progress-value { border-radius: 4px; }
progress::-moz-progress-bar { border-radius: 4px; }
.progress-text { font-size: 14px; }
.header { background: linear-gradient(to right,#ff9800,#ff5722); color: #fff; font-weight: 700; }
#editModalTitle { background: linear-gradient(to right,#ff9800,#ff5722); color: #fff; font-weight: 700; padding-left: 10px; }
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 9999; }
.popup-overlay.active { display: flex; }
.popup { background: #fff; padding: 24px; border-radius: 12px; max-width: 400px; width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,.25); animation: popIn .25s ease-out; }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.daily-entry-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-bottom: 36px; }
@media (max-width:768px) { .daily-entry-wrapper { grid-template-columns: 1fr; } }
.daily-entry-photo { height: 320px; border-radius: 14px; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.daily-entry-photo img { width: 100%; height: 100%; object-fit: contain; }
/* Updated for visibility and theme variables */
.daily-entry-card {
    border: 4px double var(--common-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--zen-shadow);
    padding: 20px;
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

/* Ensure images inside the card don't look too bright in Dark Mode */
@media (prefers-color-scheme: dark) {
    .daily-entry-card img {
        filter: brightness(0.8) contrast(1.1);
    }
}

.entry-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.entry-input button { margin: 20px ; border-radius: 6px;border: none; background: green;font-size: 18px;cursor: pointer;}
.entry-input button:hover { background: #e76f51;}
.entry-block{border:#ccc 1px solid; border-radius:5px; padding:10px;margin-bottom:10px}						   
.entry-block label { font-weight: 600; }
.entry-input { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; }
.totals {font-weight:bold;}
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input {width:100px}
.stepper .circle-btn { all: unset; width: 20px; height: 20px; background: #555; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.value { width: 40px; text-align: center; }
.helper-text { background: #fff4e5; padding: 10px; border-left: 4px solid #f4a261; border-radius: 6px; font-size: 14px;margin-top:10px }
.cutoff-date { font-size: 12px; color: #777; }
.message{display:none; border:2px solid #f4a261;border-radius:10px;padding:5px;  }
.flexDiv{display: flex;align-items: center; gap: 10px;}
.disabled {pointer-events: none;opacity: 0.5;   /* optional: visual cue */}
.flexDiv button {margin-left: auto;  background: none;  border: none;  font-size: 16px; cursor: pointer; color: #666;}
.flexDiv button:hover {color: #000;}
	.tooltip-container {
  position: relative;
  display: inline-block;
}

/* Hide tooltip by default */
.tooltip-text {
  display: none;
  position: absolute;
  bottom: 125%; /* Position above the text box */
  left: 50%;
  transform: translateX(-10%);
  background-color: #ccc;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 1;
}

/* Show tooltip when input is focused (clicked) */
input:focus + .tooltip-text {
  display: block;
}

}



/* Elementor Accordion Wrapper */
#mantraAccordion {
	/* Reset counter */

  counter-reset: accordion-counter;


/* Increment counter for each title */
 .e-n-accordion-item {
  counter-increment: accordion-counter;
}

/* Hide default icon */
.e-n-accordion-icon {
  display: none;
}

/* Add number before title */
.e-n-accordion-item-title::before {
 content: counter(accordion-counter);
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-right: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background-color: #fff;
  color: #623D1A;
  font-size: 14px;
  font-weight: 600;
}

	.e-n-accordion-item-title{
		
  background-color: var(--accordion-bg);
  border: 1px solid var(--accordion-border);
  border-radius: 6px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
	}
	
	/* Accordion Title Hover */
.e-n-accordion-item-title:hover {
  background-color: var(--accordion-bg-hover);
  color: var(--accordion-text);
}
	
.toggle-japa-btn{
}
	
/* Stop Elementor from stretching the button */
.elementor-widget-button {
  width: auto !important;
}

/* Force button to size to its content */
.toggle-japa-btn {
    margin-left: auto !important;
  margin-right: auto !important;
  display: inline-flex !important;
  width: fit-content !important;
  max-width: max-content !important;
  min-width: 0 !important;
  white-space: nowrap;

}

/* Prevent inner span from stretching */
.toggle-japa-btn .elementor-button-content-wrapper {
  width: auto !important;
}
	.japatable thead{
		background-color:#69727d;
		color:#ffffff;
		font-weight:600;
	}
}

.reign-courses-wrapper.reign-template-classic .course-stats,
.reign-courses-wrapper.reign-template-classic .course-meta {
    display: none;
}

.reign-courses-wrapper.reign-template-classic .category-badge,
.reign-courses-wrapper.reign-template-classic .tag-badge {
    position: static !important;
}

.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay {
    color: rgba(57,57,57,0.3) !important;
    background: transparent;
    border-color: transparent;
    cursor: default
}

.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
    color: rgba(57,57,57,0.1) !important;
}