 :root {
            --brand-blue: #0b1385; /* Dark blue for title, label, button */
            --brand-blue-hover: #070d61;
            --icon-bg: #f4f2fc;   /* Very light purple/blue for icon background */
            --icon-color: #3b359c; /* Darker purple/blue for the icon itself */
            --text-grey: #6b7280;  /* Standard grey for body text */
            --link-blue: #3b82f6;  /* Blue for email link */
            --input-border: #aeb4d4;/* Border color for input */
            --input-bg: #fbfbfc;   /* Very light grey for input bg */
        }
/* .sidebar{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
} */

.sidebar {
  min-height: 100vh;
  display: none; /* Hide sidebar on mobile by default */
  flex-direction: column;

 
}

@media (min-width: 992px) {
  .sidebar {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15.188rem;
    z-index: 1030; /* Keeps it layered correctly below standard modals */
  }
}


@media (max-width: 991.98px) {
  .sidebar.show {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 15.188rem;
    height: 100vh;
     /* transform: translateX(-100%); 
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; */
    z-index: 1045; 
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
  }
}


@media (max-width: 991.98px) {
  main, 
  .main-content, 
  .content-wrapper, 
  #content {
    margin-left: 0 !important;
    padding-top: 76px !important; /* Adjusted slightly to avoid overlap with fixed top header */
  }
}

@media (min-width: 992px) {
    main, 
    .main-content, 
    .content-wrapper, 
    #content { /* Add whatever wrapper class/ID your layout uses */
        margin-left: 15.188rem;
        padding-top: 56px; /* Offset to prevent content from going under the fixed navbar */
    }
}

/* On mobile, remove the margin and ensure content sits cleanly below the navbar */
/* @media (max-width: 991.98px) {
    main, 
    .main-content, 
    .content-wrapper, 
    #content {
        margin-left: 0 !important;
        padding-top: 70px; 
    }
} */

.credit-card{
  width: 90%;
  margin: 10px auto; /* centers horizontally */ /* [web:5][web:11] */
  margin-top: auto;
  background:#ffffff;
  border:2px solid #cdcfe6;
  border-radius:10px;
  padding:12px;
  box-shadow:0 1px 0 rgba(16,24,40,.04);
  text-align:center;
}


.credit-title{
  font-size:14px;
  font-weight:600;
  color:#6c757d;                    /* Bootstrap muted-ish */
  margin-bottom:8px;
  padding: 8px;
  white-space: nowrap;

}

.credit-pill{
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:12px 12px;
  border-radius:8px;
  background:#E8EAFF;
  border:2px solid #051284;
  color:#051284;                    /* bluish number */
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  cursor: pointer;
  margin-bottom: 8px;

}

.floating-upgrade{
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1050;
}

.credit-tooltip {
  position: relative;
  cursor: pointer;
}

.credit-tooltip::after {
  content: attr(data-credits);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.credit-tooltip:hover::after {
  opacity: 1;
}
@media (min-width: 768px) {
    .half-page-modal {
        max-width: 50vw !important; /* 50vw means 50% of viewport width */
        width: 50vw;
    }
}
 .custom-modal-content {
            border: none;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }

        /* Icon Styling */
        .icon-container {
            width: 48px;
            height: 48px;
            background-color: var(--icon-bg);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--icon-color);
        }

        .icon-container svg {
            width: 24px;
            height: 24px;
        }

        /* Typography */
        .text-brand-blue {
            color: var(--brand-blue) !important;
        }

        .modal-body-text {
            color: var(--text-grey);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .modal-body-text a {
            color: var(--link-blue);
            text-decoration: none;
        }

        .modal-body-text a:hover {
            text-decoration: underline;
        }

        /* Form Controls */
        .custom-input {
            background-color: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            color: #495057;
        }

        .custom-input::placeholder {
            color: #9ca3af;
        }

        .custom-input:focus {
            box-shadow: none;
            border-color: var(--brand-blue);
            outline: none;
        }

        .custom-label {
            white-space: nowrap;
            font-size: 1rem;
        }

        /* Button Styling */
        .btn-brand {
            background-color: var(--brand-blue);
            border-color: var(--brand-blue);
            color: white;
            font-weight: 500;
            padding: 0.6rem 1.5rem;
            border-radius: 6px;
            white-space: nowrap;
        }

        .btn-brand:hover, .btn-brand:focus {
            background-color: var(--brand-blue-hover);
            border-color: var(--brand-blue-hover);
            color: white;
        }
        
        /* Adjust close button position slightly to match design */
        .custom-close {
            opacity: 1; /* Making it solid black like the image */
        }