:root {
    --max-width: 1100px;
    --border-radius: 12px;

    /*--foreground-rgb: 0, 0, 0;
    --background-start-rgb: 214, 219, 220;
    --background-end-rgb: 255, 255, 255;*/
  
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;

    --primary-glow: conic-gradient(
      from 180deg at 50% 50%,
      #16abff33 0deg,
      #0885ff33 55deg,
      #54d6ff33 120deg,
      #0071ff33 160deg,
      transparent 360deg
    );
    --secondary-glow: radial-gradient(
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0)
    );
  
    --tile-start-rgb: 239, 245, 249;
    --tile-end-rgb: 228, 232, 233;
    --tile-border: conic-gradient(
      #00000080,
      #00000040,
      #00000030,
      #00000020,
      #00000010,
      #00000010,
      #00000080
    );
  
    --callout-rgb: 238, 240, 241;
    --callout-border-rgb: 172, 175, 176;
    --card-rgb: 180, 185, 188;
    --card-border-rgb: 131, 134, 135;

    --ifm-color-cm-dark: #b59279;
    --ifm-color-cm-light: #e6c6a8;

    --accent-cm: #FFB043;
    --accent-cm-light: #FFC373;
    --accent-cm-dark: #D08C36;

    --accent-vibrant: #00FFFF;
    --accent-vibrant-light: #66FFFF;
    --accent-vibrant-dark: #00D0D0;

    --accent-energy: #A5FF33;
    --accent-energy-light: #C2FF66;
    --accent-energy-dark: #77B022;

    --ifm-color-primary: #FF7043;
    --ifm-color-primary-dark: #ff6232;
    --ifm-color-primary-darker: #fe5623;
    --ifm-color-primary-darkest: #ff3f04;
    --ifm-color-primary-light: #ff7b52;
    --ifm-color-primary-lighter: #ff8b68;
    --ifm-color-primary-lightest: #ff9f82;

    --ifm-color-secondary: #708090;
  
    --gray-50:#dbdbdb;
    --gray-100:#a4a4a4;
    --gray-150:#919191;
    --gray-175:#767676;
    --gray-200:#3d3d3d;
    --gray-250:#2e2e2e;
    --gray-300:#181818;

    --ifm-color-me-primary: #3386dbff;
    --ifm-color-me-primary-dark: #202e62ff;
    --ifm-color-me-primary-darker: #162351;
    --ifm-color-me-primary-darkest: #091230;
    --ifm-color-me-primary-light: #4994e0;
    --ifm-color-me-primary-lighter: #5ca0e3;
    --ifm-color-me-primary-lightest: #72ade9;
}

.btn-vibrant {
    background-color: var(--accent-vibrant);
    border: none;
    color: var(--gray-250);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}
.btn-vibrant:hover {
    color: var(--gray-300);
    background-color: var(--accent-vibrant-dark);
    transform: scale(1.02);
}

.btn-energy {
    background-color: var(--accent-energy);
    border: none;
    color: var(--gray-250);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}
.btn-energy:hover {
    color: var(--gray-300);
    background-color: var(--accent-energy-dark);
    transform: scale(1.02);
}

.btn-cm {
    background-color: var(--accent-cm);
    border: none;
    color: var(--gray-250);
    text-decoration: none;
    font-size: 12pt;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}
.btn-cm:hover {
    color: var(--gray-300);
    background-color: var(--accent-cm-dark);
    transform: scale(1.02);
}

.btn-cm.small {
    font-size: 10pt;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Global Styles */
a {
    color: var(--accent-cm);
    cursor: pointer;
    text-decoration: none;
}
a:hover {
    color: var(--accent-cm-dark);
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Page Wrapper (for sticky footer) */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex: 0 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
.header {
    background-color: #333;
    color: #fff;
    padding: 1px 0;
}

.header .logo {
    font-size: 20pt;
    font-weight: 600;
    margin: 0;
}

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

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16pt;
}

/* Hero Section (landing.html) */
.hero {
    padding: 20px 5px;
    text-align: center;
}

.hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    margin-top: 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    font-weight: 300;
    font-size: 1.8rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h4 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

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

.hero ul li {
    font-size: 20pt;
    margin: 10px 0;
}

/* Features Section */
.features {
    padding: 50px 0;
    text-align: center;
}

.features h3 {
    font-size: 30pt;
}

/* About Section */
.about {
    padding: 50px 0;
    text-align: center;
}

.about h3 {
    font-size: 30pt;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

/* Welcome Container (app-index.html, landing.html) */
.welcome-container {
    padding: 20px 5px;
}

/* Team Grid (app-index.html) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.welcome-card {
    max-width: 500px;
    width: 100%;
}

/* Team Form (app-index.html) */
.team-form-container {
    position: relative;
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-form-container .form-control {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 10px 40px 10px 15px;
    font-size: 1rem;
    border-radius: 10px;
}

.team-form-container .form-control.textarea {
    resize: none;
    min-height: 40px;
    max-height: 200px;
    overflow-y: auto;
}

.team-form-container .form-control:focus {
    box-shadow: none;
    border: none;
}

/* Team List (app-index.html) */
.team-list-card {
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.team-list-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-cm-light);
}

.team-list-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-list-card .text-muted {
    color: #6c757d;
}

/* Chat Container (team_member.html) */
.chat-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 10px;
}

.chat-message {
    margin-bottom: 10px;
}

.chat-message.user {
    text-align: right;
}

.chat-message.user .message-content {
    background-color: var(--accent-cm-light);
    color: var(--gray-300);
    border-radius: 10px 10px 0 10px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 70%;
    margin-left: auto;
}

.chat-message.bot .message-content {
    background-color: var(--gray-175);
    border-radius: 10px 10px 10px 0;
    padding: 8px 12px;
    display: inline-block;
    max-width: 70%;
}

/* Chat Form (team_member.html, team-detail.html) */
.chat-form-container {
    position: relative;
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-form-container .form-control {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 10px 40px 10px 15px;
    font-size: 1rem;
    border-radius: 10px;
    resize: none;
    min-height: 40px;
    max-height: 200px;
    overflow-y: auto;
}

.chat-form-container .form-control:focus {
    box-shadow: none;
    border: none;
}

.chat-form-container .btn-send {
    background-color: transparent;
    border: none;
    color: var(--accent-cm-light);
    font-size: 1.2rem;
    padding: 5px 10px;
    line-height: 1;
    position: absolute;
    right: 10px;
    bottom: 3px;
    transform: translateY(-50%);
}

.chat-form-container .btn-send:hover {
    color: var(--accent-cm-dark);
}

/* Spinner (shared across pages) */
.spinner, .login-spinner, .team-spinner, .chat-spinner, .memo-spinner, .loading-spinner, .gen-profile-spinner {
    display: none;
    width: 25px;
    height: 25px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-cm-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.team-form-container .spinner,
.chat-form-container .spinner {
    position: absolute;
    right: 15px;
    bottom: 22px;
    transform: translateY(-50%);
}

.add-memory-form .spinner {
    margin-left: 10px;
    vertical-align: middle;
}

/* Buttons */
.btn-create {
    background-color: var(--ifm-color-primary-light);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}

.btn-create:hover {
    background-color: var(--ifm-color-primary-lighter);
    transform: scale(1.05);
}

.btn-icon {
    padding: 8px;
}

.btn.custom-btn {
    width: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-250);
    font-size: 14pt;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    background-color: var(--accent-cm);
}

.btn.custom-btn:hover {
    background-color: var(--accent-cm-light);
    color: var(--gray-300);
    border-color: var(--accent-cm-light);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.custom-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.icon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4px;
}

.button-text {
    flex-grow: 1;
    text-align: center;
    font-size: 14pt;
    color: #333;
    padding: 2px;
}

.btn.custom-btn:active .button-text {
    background-color: #222222;
    color: #ddd;
}

/* Accent Background for Headers */
.bg-crewmem {
    background-color: var(--ifm-color-cm-dark) !important;
    color: #fff;
}

.bg-accent {
    background-color: var(--accent-cm) !important;
    color: #fff;
}

/* Memory Form Button */
.btn-outline-secondary {
    border-color: var(--accent-cm-light);
    color: var(--accent-cm-light);
}

.btn-outline-secondary:hover {
    background-color: var(--accent-cm-light);
    border-color: var(--accent-cm-dark);
    color: #fff;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes cardScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-container {
        padding: 20px 10px;
    }
    .profile-container {
        flex-direction: column;
    }
    .hero h1, .hero h2 {
        font-size: 2.2rem;
    }
    .hero h1 span, .hero h4 {
        font-size: 1.4rem;
    }
    .hero ul li {
        font-size: 18pt;
    }
    .hero ol li {
        font-size: 18pt;
    }
    .hero .btn {
        font-size: 14pt;
        padding: 12px 24px;
    }
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }
    .header .logo {
        font-size: 16pt;
    }
    .nav ul li a {
        font-size: 14pt;
    }
    .team-list-card h4 {
        font-size: 1.1rem;
    }
    .team-list-card p {
        font-size: 0.9rem;
    }
}

.feature-emphasize {
    color: var(--accent-cm-dark) !important;
    font-weight: bold;
}

.feature-bullets {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 10px;
}
.feature-bullets li::before {
    content: "✓";
    color: var(--accent-cm);
    margin-right: 10px;
}

.cm-badge {
    font-size: 9pt;
    border-radius: 3px;
    background-color: var(--gray-300);
    box-shadow: 0 0 3px var(--accent-cm-dark);
    cursor: pointer;
    height: 15px;
}

.feature-box {
    padding: 5px;
    border-radius: 10px;
}

.feature-box.vibrant {
    box-shadow: 0 0 10px var(--accent-vibrant);
}

.feature-box.energy {
    box-shadow: 0 0 10px var(--accent-energy);
}

.feature-box.cm {
    box-shadow: 0 0 10px var(--accent-cm);
}

.text-block-center {
    max-width: 800px; /* Constrain the width for comfortable reading */
    margin-left: auto;  /* Center the block itself */
    margin-right: auto; /* Center the block itself */
}

/* Ensure only the title and the card section is centered on desktop */
@media (min-width: 768px) {
    .text-block-center h2 {
        text-align: center;
    }
}

.bg-cm {
    background-color: var(--accent-cm);
    color: var(--gray-250);
}
.bg-cm-light {
    background-color: var(--accent-cm-light);
    color: var(--gray-250);
}
.bg-cm-dark {
    background-color: var(--accent-cm-dark);
    color: var(--gray-300);
}

.bg-vibrant {
    background-color: var(--accent-vibrant);
    color: var(--gray-250);
}
.bg-vibrant-light {
    background-color: var(--accent-vibrant-light);
    color: var(--gray-250);
}
.bg-vibrant-dark {
    background-color: var(--accent-vibrant-dark);
    color: var(--gray-300);
}

.bg-energy {
    background-color: var(--accent-energy);
    color: var(--gray-250);
}
.bg-energy-light {
    background-color: var(--accent-energy-light);
    color: var(--gray-250);
}
.bg-energy-dark {
    background-color: var(--accent-energy-dark);
    color: var(--gray-300);
}

.accent-vibrant {
    color: var(--accent-vibrant);
}
.accent-vibrant-light {
    color: var(--accent-vibrant-light);
}
.accent-vibrant-dark {
    color: var(--accent-vibrant-dark);
}

.accent-energy {
    color: var(--accent-energy);
}
.accent-energy-light {
    color: var(--accent-energy-light);
}
.accent-energy-dark {
    color: var(--accent-energy-dark);
}

.accent-cm {
    color: var(--accent-cm);
}
.accent-cm-light {
    color: var(--accent-cm-light);
}
.accent-cm-dark {
    color: var(--accent-cm-dark);
}

