body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: Arial, sans-serif;
}

.background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.background-carousel img.active {
    opacity: 1;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    opacity: 0.95;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    color: #333;
}

h2 {
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Login form container */
.login-form-container {
    min-width: 320px;
    max-width: 800px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Login section layout */
.login-form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    align-items: flex-end;
}

#loginButton {
    white-space: nowrap;
    padding: 8px 20px;
    height: 35px;
}

.new-user-container {
    text-align: center;
    margin-top: 25px;
}

.button-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button-link:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.login-error-container {
    margin-bottom: 15px;
}

/* Responsive layout for small screens */
@media (max-width: 48rem) { /* 768px / 16px = 48rem */
    .login-form-group {
        flex-direction: column;
        gap: 0.625rem; /* 10px / 16px = 0.625rem */
    }

    .button-group {
        width: 100%;
    }

    #loginButton {
        width: 100%;
    }

    .input-group {
        margin-bottom: 0.625rem;
    }
}

/* Styles for pricing page */
.pricing-table {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.pricing-tier {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 7px;
    border-radius: 10px;
    text-align: center;
    width: 30%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-tier h2 {
    color: #333;
    margin-bottom: 10px;
}

.pricing-tier .price {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 20px;
}

.pricing-tier ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricing-tier ul li {
    margin-bottom: 10px;
    color: #666;
}

.flex-spacer {
    flex-grow: 0;
}



.pricing-tier .cta-button:hover {
    background-color: #0056b3;
}

/* Styles for terms and privacy pages */
body.terms-privacy {
    background-image: url('logos/powder.blue.medical.images.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
}

.content-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.content-box h1, .content-box h2 {
    color: #333;
}

.content-box p, .content-box ul, .content-box ol {
    color: #666;
    line-height: 1.6;
}

.content-box a {
    color: #007BFF;
    text-decoration: none;
}

.content-box a:hover {
    text-decoration: underline;
}

/* More specific button styles to override content-box links */
.content-box a.primary-button {
    color: white !important; /* Override content-box a */
    font-weight: bold;
    text-decoration: none;
}

.content-box a.primary-button:hover {
    background-color: #0056b3;
    color: white !important;
    text-decoration: none;
}

/* Footer navigation styles */
.footer-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
}

.footer-section {
    flex: 1;
}

.footer-nav {
    flex: 2;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.footer-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin-right: 15px;
}

.footer-nav a {
    text-decoration: underline;
    color: #007BFF;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #004a99;
}

.success-message {
    color: green;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Info section styles */
.info-button {
    background: #007BFF;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.info-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.collapse {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    width: 90%;
    opacity: 0;
}

.collapse.show {
    max-height: 500px;
    margin: 20px auto;
    opacity: 1;
}

.collapse p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Account settings styles */
.settings-section {
    margin-top: 2rem;
    border: 0.0625rem solid #ddd; /* 1px */
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
}

@media (max-width: 48rem) { /* 768px */
    .settings-section {
        margin-top: 1.5rem;
    }
}

.settings-section summary {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (max-width: 48rem) {
    .settings-section summary {
        padding: 0.75rem 1rem;
    }
}

.settings-section summary:hover {
    background-color: #e9ecef;
}

.settings-content {
    padding: 1.5rem;
}

.token-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.settings-content strong {
    color: #007bff;
    font-size: 1.2rem;
}

@media (max-width: 48rem) {
    .settings-content {
        padding: 1rem;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 0.0625rem solid #ddd;
    border-radius: 0.25rem;
}

@media (max-width: 48rem) {
    .form-group input {
        padding: 0.375rem;
    }
}

.password-requirements {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.primary-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold; /* Added font-weight */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Ensure links don't show underline */
}

@media (max-width: 48rem) {
    .primary-button {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

.primary-button:hover {
    background-color: #0056b3;
    color: white; /* Maintain white color on hover */
    text-decoration: none; /* Ensure links don't show underline on hover */
}

/* Danger zone styles */
details.danger-zone {
    margin-top: 2rem;
    border: 2px solid #dc3545;
    border-radius: 8px;
    overflow: hidden;
}

details.danger-zone summary {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

details.danger-zone summary:hover {
    background-color: #e9ecef;
}

details.danger-zone summary::marker {
    display: none;
}

details.danger-zone summary::-webkit-details-marker {
    display: none;
}

.danger-zone-content {
    padding: 1.5rem;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.confirmation-box {
    margin: 1.5rem 0;
}

.danger-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (max-width: 48rem) {
    .danger-button {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

.danger-button:hover {
    background-color: #c82333;
}

.danger-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Affiliate signup form styles */
#affiliate-signup-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-group button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
}

/* Left navigation styles */
.left-nav {
}

.left-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.left-nav li {
    width: 100%;
}

.left-nav a {
    text-decoration: none;
    color: #007BFF;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.left-nav a:hover {
    color: #0056b3;
    transform: translateX(5px);
}


/* Responsive adjustments */
@media (max-width: 48rem) { /* 768px */
    .left-nav {
        display: none; /* Hide on mobile */
    }
    
    .hero-container {
        max-width: 95%; /* Allow more width on mobile */
    }
}

@media (max-width: 37.5rem) { /* 600px / 16px = 37.5rem */
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
    }

    .hero {
        padding: 1.25rem;
        max-width: 100%;
    }

    .footer-nav {
        bottom: 0.625rem;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        transform: none;
    }
        
    .footer-nav ul {
        justify-content: space-evenly;
        width: 100%;
        gap: 0.5rem;
        padding: 0;
    }
        
    .footer-nav a {
        font-size: 1.25rem; /* Increased from 1rem to 1.25rem */
    }
    
    .content-box {
        padding: 1.25rem;
        max-width: 100%;
    }

    .content-box p,
    .content-box ul,
    .content-box ol {
        font-size: 1rem;
    }
}

/* Top navigation styles - matching footer-nav */
.top-nav {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.top-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.top-nav a {
    text-decoration: underline;
    color: #007BFF;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.top-nav a:hover {
    color: #004a99;
}

@media (max-width: 48rem) {
    .top-nav {
        padding: 10px 0;
    }
    
    .top-nav ul {
        padding: 10px;
        margin: 0 10px;
        gap: 0.5rem;
    }
    
    .top-nav a {
        font-size: 1rem;
    }
}

@media (max-width: 37.5rem) {
    .top-nav {
        padding: 5px 0;
    }
    
    .top-nav ul {
        justify-content: space-evenly;
        width: calc(100% - 20px);
    }
    
    .top-nav a {
        font-size: 1rem;
    }
}

/* Affiliate Dashboard Header Styles */
.dashboard-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

