:root {
    --color-primary: #08ACEB;
    --color-secondary: #C4F1BE;
    --color-deep-secondary: #0B4F6C;
    --color-tertiary: #CC3660;
}

/* Global typography */
body {
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-deep-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Buttons */
.button {
    font-weight: bold;
    font-size: 12px;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 6px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
    border-radius: 3px;
}

/* secondary button variant */
.button.secondary {
    background-color: var(--color-secondary);
    color: var(--color-deep-secondary);
    border: 1px solid rgba(11, 79, 108, 0.08);
}

/* Header layout: brand at left, nav at right */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 16px; /* slightly tighter header */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* Reduce logo size and tighten header visuals */
.logo {
    /* allow natural width while constraining height to a smaller value */
    height: auto;
    max-height: 36px; /* much smaller */
    width: auto;
    display: block;
}

/* tighten brand spacing */
.brand-link {
    display: flex;
    align-items: center;
    gap: 6px; /* smaller gap between logo and title */
    text-decoration: none;
}

/* make the pipe smaller so the header is less dominant */
.brand .pipe {
    font-weight: 300;
    font-size: 20px; /* much smaller divider */
    padding: 4px;
    margin: 0;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-primary);
}

/* make the app title much smaller */
.brand .title {
    font-size: 16px; /* much smaller title */
    margin: 0;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-deep-secondary);
    font-weight: 600;
}

/* Navigation and brand */
.main-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0; /* prevent inherited margins */
}

/* Group switcher area */
.group-switcher-container {
    margin: 10px 0;
}

.group-switcher-container select {
    vertical-align: middle;
}

.group-switcher-container #group-switch-btn {
    margin-left: 10px; /* space between dropdown and button */
    vertical-align: middle;
}

/* Status messages / toasts */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.status-message.success {
    background-color: var(--color-secondary);
    color: var(--color-deep-secondary);
    border: 1px solid rgba(11, 79, 108, 0.08);
}

.status-message.error {
    background-color: var(--color-tertiary);
    color: #ffffff;
    border: 1px solid rgba(204, 54, 96, 0.8);
}

.error {
    color: red;
}

/* Center the main content on the page with a constrained width */
main {
    max-width: 1100px;
    margin: 24px auto; /* centers horizontally */
    padding: 0 16px;
}

/* Optional: center short pages vertically a bit (not forcing full-screen centering) */
body.homepage, body.signed-out {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer styles */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
    padding: 18px 16px;
    margin-top: 36px;
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--color-deep-secondary);
}

.site-footer .footer-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-footer .footer-nav a {
    color: var(--color-deep-secondary);
    text-decoration: none;
}

.site-footer .footer-nav a:hover {
    text-decoration: underline;
}

.site-footer .sep {
    color: rgba(0, 0, 0, 0.25);
}

/* ensure footer stacks on small screens */
@media (max-width: 640px) {
    .site-footer .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}
