:root {
    --primary-blue: #1a3a5f;
    --button-color: #0070ba;
    --dark-blue: #003b7a;
    --light-blue: #e6f0fa;
    --accent-teal: #00a3b5;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --success: #28a745;
    --stripe-purple: #6058F7;
    --light-green: #b4ecc1;
    --gold: #FFC107;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 80px;
}

/* Header Styles - White Background */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.navbar-toggler {
    border: none;
    color: var(--text-dark);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--text-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.hero-section p {
    font-weight: 400;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Subscription Info in Hero */
.subscription-info {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.subscription-detail {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.subscription-detail strong {
    min-width: 120px;
    display: inline-block;
}


.status-active {
    color: var(--light-green);
    font-weight: 650;
}

.head-contrast {
    color: var(--gold);
    font-weight: 650;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Card Styles */
.account-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 25px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-outline-primary {
    color: var(--button-color);
    border-color: var(--button-color);
    font-weight: 500;
    border-radius: 4px;
}

.btn-outline-primary:hover {
    background-color: var(--button-color);
    color: var(--text-light);
}

/* Stripe Button Styles */
.btn-stripe {
    background-color: var(--stripe-purple);
    border-color: var(--stripe-purple);
    color: white;
    font-weight: 500;
    border-radius: 4px;
}

.btn-stripe:hover {
    background-color: #4a43d5;
    border-color: #4a43d5;
    color: white;
}

.btn-outline-stripe {
    color: var(--stripe-purple);
    border-color: var(--stripe-purple);
    font-weight: 500;
    border-radius: 4px;
}

.btn-outline-stripe:hover {
    background-color: var(--stripe-purple);
    color: white;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer ul li a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        padding: 30px 0;
        text-align: center;
    }

    .card-body {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .subscription-detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-detail strong {
        min-width: auto;
        margin-bottom: 5px;
    }
}

/* Custom Section Spacing */
.section-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

/* Payment Options */
.payment-option {
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    padding: 20px;
    /*margin-bottom: 20px;*/
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.payment-option:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.payment-recurring {
    background-color: rgba(0, 176, 186, 0.1);
}

.payment-onetime {
    background-color: rgba(106, 90, 205, 0.1);
}

.payment-oneday {
    background-color: rgba(255, 165, 0, 0.1);
}

.payment-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.payment-option-header h5 {
    margin-bottom: 0;
}

.payment-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-blue);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Payment buttons container */
.payment-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dual-buttons {
    display: flex;
    gap: 10px;
}

.dual-buttons .btn {
    flex: 1;
}

/* Device List */
.device-item {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: var(--gray-light);
    font-family: monospace;
    font-size: 0.85rem;
}

.device-active {
    border-left: 4px solid var(--success);
}

.device-inactive {
    border-left: 4px solid #dc3545;
}

/* Unlock Extra Tabs Grid */
.component-card {
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.component-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    padding: 40px 0;
}

/* Bio-Well specific styling */
.bio-well-accent {
    color: var(--accent-teal);
}

.text-bio-blue {
    color: var(--primary-blue);
}

.bg-bio-light {
    background-color: var(--light-blue);
}

/* Full-width sections */
.full-width-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Three column layout */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .three-column-grid {
        grid-template-columns: 1fr;
    }
}

.devices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal footer buttons */
.modal-footer-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-footer-buttons .btn {
    flex: 1;
}

.g-recaptcha {
    transform: scale(0.7);
    -webkit-transform: scale(0.7);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline;
    margin: 0;
    padding: 0;
}

.upload-btn-wrapper input[type=file] {
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
}

.btn-group-xs > .btn, .btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}
