/* Custom CSS for Membership Manager */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Global styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
}

/* HTMX loading indicators */
.htmx-request {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.htmx-request .spinner-border {
    display: inline-block !important;
}

/* Hide spinners by default */
.spinner-border {
    display: none;
}

/* Card styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Button styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Form styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Login page specific styles */
.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-background {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Table styles */
/* RJP disabled
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
}
*/

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Navigation styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer styles */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ccc !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* HTMX specific animations */
.htmx-added {
    animation: fadeIn 0.5s ease-in;
}

.htmx-settling {
    transition: all 0.3s ease;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.plan-card {
    width: 18rem;
}

.fa-check-list {
  list-style: none;
  padding-left: 0;
}

.fa-check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
}

.FONTAWESOMEfa-check-list li::before {
  content: "\f00c"; /* Font Awesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* required for solid icons */
  color: #28a745; /* Bootstrap's green */
  position: absolute;
  left: 0;
  top: 0;
}

.fa-check-list li::before {
  /* content: "\f00c"; Font Awesome check icon */
  content: "\f00c"; /* or unicode heavycheckmark \x2714 ✔ */
  font-family: Tahoma, Verdana, sans-serif;  
  font-weight: 900; /* required for solid icons */
  color: #28a745; /* Bootstrap's green */
  position: absolute;
  left: 0;
  top: 0;
}

/* implements a toggle switch */

.bt-switch {
position: relative;
display: inline-flex;
align-items: center;
background: var(--bs-secondary-bg, #e9ecef);
border-radius: 2rem;
padding: 0.25rem;
height: 1.75rem; /* matches Bootstrap switch height */
user-select: none;
}

.bt-switch input[type="radio"] {
position: absolute;
opacity: 0;
pointer-events: none;
}

.bt-switch label {
z-index: 2;
padding: 0 0.75rem;
cursor: pointer;
font-size: 0.9rem;
color: var(--bs-secondary-color, #6c757d);
transition: color .2s ease;
}

.bt-switch .slider {
position: absolute;
top: 0.25rem;
bottom: 0.25rem;
left: 0.25rem;
width: calc(50% - 0.25rem);
background: var(--bs-body-bg, #fff);
border-radius: 2rem;
box-shadow: var(--bs-box-shadow-sm, 0 .125rem .25rem rgba(0,0,0,.075));
transition: transform .25s ease;
}

/* Checked states */
#optA:checked ~ .slider {
transform: translateX(0%);
}

#optB:checked ~ .slider {
transform: translateX(100%);
}

#optA:checked + label {
color: var(--bs-body-color, #212529);
font-weight: 600;
}

#optB:checked + label {
color: var(--bs-body-color, #212529);
font-weight: 600;
}

/* Optional: add Bootstrap's primary color when right side is active */
#optB:checked ~ .slider {
background: var(--bs-primary);
color: #fff;
}
.pricing {
    color: red blink ;
}

.img-dark-50 { filter: brightness(50%); }
.img-dark-25 { filter: brightness(25%); }
.img-dark-75 { filter: brightness(75%); }

.mm-cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 18, 31, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mm-cookie-consent-card {
    width: min(100%, 34rem);
    background: #ffffff;
    color: #1f2937;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
}

.mm-cookie-consent-card a {
    color: #0d6efd;
}