/* ── Base ─────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
}

/* ── App color palette ────────────────────────────────── */
:root {
    --color-poll:      #5c6bc0;
    --color-standup:   #26a69a;
    --color-meetings:  #ab47bc;
    --color-links:     #42a5f5;
    --color-expenses:  #ff7043;
    --color-feedback:  #66bb6a;
    --color-kanban:    #ef5350;
    --color-timezone:  #ffa726;
    --color-avail:     #26c6da;
    --color-wiki:      #8d6e63;
}

/* ── Dark Pro hub ─────────────────────────────────────── */
body.dark-hub {
    background: #0f1117;
    min-height: 100vh;
}

.dark-nav {
    background: #0f1117;
    border-bottom: 1px solid #1e2130;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.dark-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.dark-tagline {
    color: #4a5068;
    font-size: 0.8rem;
}

.dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.dark-card {
    background: #1a1d27;
    border: 1px solid #252838;
    border-top: 3px solid var(--app-color, #5c6bc0);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    min-height: 160px;
}
.dark-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
    border-color: var(--app-color, #5c6bc0);
    text-decoration: none;
}

.dark-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dark-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--app-color, #5c6bc0) 18%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dark-card-title {
    color: #e8eaf0;
    font-size: 0.9rem;
    font-weight: 600;
}
.dark-card-desc {
    color: #555d7a;
    font-size: 0.78rem;
    line-height: 1.5;
    flex: 1;
}
.dark-card-launch {
    color: var(--app-color, #5c6bc0);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* mobile: 2 columns */
@media (max-width: 480px) {
    .dark-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px 12px 32px;
    }
    .dark-card {
        min-height: 130px;
        padding: 14px;
    }
    .dark-card-desc { display: none; }
}

/* ── App-colored navbars (individual app pages) ───────── */
.navbar-poll      { background: #1a1d27 !important; border-bottom: 3px solid var(--color-poll); }
.navbar-standup   { background: #1a1d27 !important; border-bottom: 3px solid var(--color-standup); }
.navbar-meetings  { background: #1a1d27 !important; border-bottom: 3px solid var(--color-meetings); }
.navbar-links     { background: #1a1d27 !important; border-bottom: 3px solid var(--color-links); }
.navbar-expenses  { background: #1a1d27 !important; border-bottom: 3px solid var(--color-expenses); }
.navbar-feedback  { background: #1a1d27 !important; border-bottom: 3px solid var(--color-feedback); }
.navbar-kanban    { background: #1a1d27 !important; border-bottom: 3px solid var(--color-kanban); }
.navbar-timezone  { background: #1a1d27 !important; border-bottom: 3px solid var(--color-timezone); }
.navbar-avail     { background: #1a1d27 !important; border-bottom: 3px solid var(--color-avail); }
.navbar-wiki      { background: #1a1d27 !important; border-bottom: 3px solid var(--color-wiki); }

/* ── Standard cards (app pages) ──────────────────────── */
.card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* ── Progress bars ────────────────────────────────────── */
.progress {
    border-radius: 8px;
    background-color: #e2e5ea;
}
.progress-bar {
    border-radius: 8px;
    background-color: #0d6efd;
    min-width: 2px;
    transition: width 0.4s ease;
}

/* ── Footer ───────────────────────────────────────────── */
footer a {
    color: inherit;
    text-decoration: underline;
}
