/* Global Body Styles - Applied to non-product pages */
body {
    /* padding-top: 56px; For fixed navbar */
    background-color: #f5f7fa;
}

/* Default layout for admin/dashboard pages */
body:not(.product-page):not(.product-page-alt) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.product-page):not(.product-page-alt) main {
    flex: 1;
}
.bg-soft {
    background-color: #f5f7fa;
}
.login-card {
    width: 50%;
    max-width: 500px;
    min-width: 320px;
    margin: 80px auto 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.brand-primary {
    color: #110137; /* bootstrap primary */
}

.logo-img {
    max-width: 75px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
}
.navbar-info-box {
    background-color: rgba(55,59,62,0.04);
    border: 1px solid rgba(55,59,62,0.06);
}

/* Right-align the info box and ensure icons are inline */
.navbar-info-box .fa-solid {
    color: #6c757d;
}
@media (min-width: 768px) {
    .navbar-info-box {
        display: flex;
        justify-content: flex-end;
    }
}
.navbar-brand {
    font-weight: bold;
}
.card {
    margin-bottom: 20px;
}
.table-responsive {
    margin-bottom: 20px;
}
.alert {
    margin-top: 20px;
}
/* Mobile optimizations */
@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Make login card responsive: full width on small screens */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
        min-width: unset;
    }
}

/* Navbar theme overrides: dark background, white links, vertically centered */
.navbar {
    background-color: #110137 !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text,
.navbar .dropdown-toggle {
    color: #fff !important;
    display: flex;
    align-items: center;
    /* padding-top: 0.5rem;
    padding-bottom: 0.5rem; */
}

/* Ensure the brand/logo aligns with nav items */
.navbar .navbar-brand .logo-img {
    /* margin-right: 8px; */
    max-height: 80px;
}

/* Toggler icon visibility on dark background */
.navbar .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* Dropdown menu on dark navbar */
.navbar .dropdown-menu {
    background-color: #373b3e;
    border: none;
}
.navbar .dropdown-item {
    color: #fff !important;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(255,255,255,0.06);
    color: #fff !important;
}

/* Ensure collapsed (mobile) nav links are readable and centered */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Error Capture Box Styles */
#admin-error-capture {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
}

#admin-error-capture textarea {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 10px;
    line-height: 1.3;
    resize: vertical;
}

#admin-error-capture details summary {
    font-weight: bold;
    padding: 2px 0;
}

#admin-error-capture .error-trace {
    max-height: 100px;
    overflow-y: auto;
    background: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Professional Button Styles */
.btn-professional {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-professional:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-professional:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-professional i {
    font-size: 0.875rem;
}

/* Enhanced Action Buttons */
.btn-action {
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    border-radius: 0.25rem;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action i {
    font-size: 0.75rem;
}

/* Page Header Styling */
.page-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.page-header h1,
.page-header h2 {
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.page-header .text-primary {
    color: #0d6efd !important;
}

/* Button Group Enhancements */
.btn-group .btn-action:not(:last-child) {
    margin-right: 0.25rem;
}

.btn-group-sm .btn-action {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Card Action Buttons */
.card .btn-group {
    margin-top: 0.5rem;
}

.card .btn-action {
    border-radius: 0.25rem;
}

/* Table Action Buttons */
.table td .btn-group {
    white-space: nowrap;
}

.table td .btn-action {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
    .btn-professional {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .btn-action {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn-action {
        margin-right: 0;
        margin-bottom: 0.25rem;
        border-radius: 0.25rem !important;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .page-header .btn-professional {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Hover Effects for Specific Button Types */
.btn-success.btn-professional:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-primary.btn-professional:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary.btn-action:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-outline-success.btn-action:hover {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-outline-danger.btn-action:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Icon Spacing */
.btn i.me-1 {
    margin-right: 0.25rem !important;
}

.btn i.me-2 {
    margin-right: 0.5rem !important;
}

/* Focus States */
.btn-professional:focus,
.btn-action:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Mobile responsive error box */
@media (max-width: 768px) {
    #admin-error-capture {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        width: auto !important;
    }
}

/* Product Pages Styles - Shared across all product pages */
.product-page .hero-section,
.product-page-alt .hero-section {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.product-page .hero-section::before,
.product-page-alt .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/IMG_4775.jpg') center;
    opacity: 0.1;
    z-index: 0;
}

.product-page .hero-content,
.product-page-alt .hero-content {
    position: relative;
    z-index: 1;
}

.product-page .btn-primary-custom,
.product-page-alt .btn-primary-custom {
    background: linear-gradient(45deg, #d7dc06, #948000);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;

}

.product-page .btn-primary-custom:hover,
.product-page-alt .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
}

.product-page .feature-card,
.product-page-alt .feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    height: 100%;
}

.product-page .feature-card:hover,
.product-page-alt .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-page .feature-icon,
.product-page-alt .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #198754, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.product-page .pricing-card,
.product-page-alt .pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #198754;
    position: relative;
    overflow: hidden;
}

.product-page .pricing-card::before,
.product-page-alt .pricing-card::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #198754;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.product-page .testimonial-card,
.product-page-alt .testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #198754;
}

.product-page .footer,
.product-page-alt .footer {
    background: linear-gradient(90deg, #198754 0%, #6c757d 100%);
    color: white;
}

.product-page .section-divider,
.product-page-alt .section-divider {
    height: 4px;
    background: linear-gradient(90deg, #198754, #20c997);
    border: none;
    margin: 50px 0;
}

/* Product Page Body Layout */
body.product-page, 
body.product-page-alt {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff; /* Override global background for product pages */
}

body.product-page main,
body.product-page-alt main {
    flex: 1;
}

/* About Page Styles */
.about-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #198754;
}

.mission-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.stats-card {
    background: #198754;
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #198754;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 15px;
    width: 14px;
    height: 14px;
    background: #198754;
    border-radius: 50%;
}

.value-prop {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border-left: 5px solid #198754;
}

/* FAQ Page Styles */
.faq-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.faq-question {
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 600;
    color: #198754;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #6c757d;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Terms and Privacy Styles */
.legal-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.policy-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin: -50px auto 0;
    position: relative;
    z-index: 1;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h3 {
    color: #198754;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.policy-section h4 {
    color: #495057;
    margin-top: 25px;
    margin-bottom: 15px;
}

.terms-highlight {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #198754;
    margin: 20px 0;
}

.last-updated {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #198754;
}

.toc-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.toc-list ol {
    margin: 0;
    padding-left: 20px;
}

.toc-list li {
    margin-bottom: 8px;
}

/* Cookie Policy Specific Styles */
.cookie-table {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.cookie-table table {
    margin: 0;
}

.cookie-table th {
    background: #198754;
    color: white;
    padding: 12px;
    text-align: left;
}

.cookie-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.cookie-category {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #198754;
}

/* Success Page Styles */
.success-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 50px;
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
}

/* Purchase Page Styles */
.purchase-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 50px auto;
    border: none;
}

.price-display {
    font-size: 3rem;
    font-weight: bold;
    color: #198754;
}

.feature-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

/* Reports Dashboard Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 2rem;
    height: calc(100% - 1rem);
    width: 2px;
    background-color: #dee2e6;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.opacity-75 {
    opacity: 0.75;
}

/* Members List Styles */
.contact-info-placeholder {
    min-height: 38px;
    background: #f1f3f4;
    border-radius: 4px;
    padding: 4px 8px;
    font-style: italic;
    font-size: 0.95em;
}

.contact-info-details {
    min-height: 38px;
}

/* Maintenance Mode Styles */
.maintenance-mode-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.maintenance-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Trial Registration Styles */
.trial-card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.trial-benefits {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.benefit-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.form-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.section-title {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
    display: inline-block;
}

.trial-success-card {
    border: none;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.1);
    border-radius: 15px;
    border-top: 5px solid #28a745;
}

.trial-info-box {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.trial-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.club-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.info-item {
    margin-bottom: 8px;
    padding: 5px 0;
}

.next-steps {
    text-align: left;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.step-number {
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.support-info {
    background: #e7f3ff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #b3d9ff;
}

.support-method {
    text-align: center;
    padding: 10px;
}

.trial-reminder {
    border-left: 4px solid #28a745;
}

/* Trial Card Highlight */
.trial-card-highlight {
    position: relative;
    border: 2px solid #007bff !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.2) !important;
}

.trial-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.hero-buttons .btn {
    margin-bottom: 10px;
}

/* Form Enhancement Styles */
.form-section {
    background: #fff;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0d6efd;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-actions {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.375rem 0.375rem;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

/* Enhanced Cards */
.card-enhanced {
    background: #fff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.15s ease-in-out;
}

.card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-enhanced .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem 1.5rem;
}

/* Form Switch Enhancement */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 3rem;
    background-color: #6c757d;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-color: #198754;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Notification Enhancements */
.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
}

/* Responsive Form Improvements */
@media (max-width: 768px) {
    .form-actions {
        padding: 1rem;
        margin: 1rem -1rem -1rem -1rem;
    }
    
    .form-actions .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .icon-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .section-header {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .trial-card-highlight {
        transform: none;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}