
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties (Light = default) */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-card: #ffffff;
    --text-primary: #1A1F36;
    --text-secondary: #5a6a85;
    --text-muted: #8892B0;
    --border-color: rgba(91, 115, 232, 0.12);
    --border-light: #e2e8f0;
    --shadow-color: rgba(91, 115, 232, 0.09);
    --accent: #5B73E8;
    --accent-teal: #4ECDC4;
    --nav-bg: rgba(255, 255, 255, 0.92);
    --input-bg: #ffffff;
    --hover-bg: rgba(91, 115, 232, 0.08);
}
/* Color Blindness Filters*/
/* SVG filter definitions live in base.html as an inline <svg> */
/* Applied to <body> rather than <html> — browsers do not reliably render
   CSS filter on the root element, but do on <body>. */
html[data-colorblind="protanopia"] #cb-filter-layer {
    filter: url(#cb-protanopia);
}
html[data-colorblind="deuteranopia"] #cb-filter-layer {
    filter: url(#cb-deuteranopia);
}
html[data-colorblind="tritanopia"] #cb-filter-layer {
    filter: url(#cb-tritanopia);
}
/* filter on a parent creates an isolated group that breaks backdrop-filter
   on child elements — make the navbar fully opaque when colorblind is active */
html[data-colorblind="protanopia"] .timeout-nav,
html[data-colorblind="deuteranopia"] .timeout-nav,
html[data-colorblind="tritanopia"] .timeout-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
}
html[data-colorblind="protanopia"][data-theme="dark"] .timeout-nav,
html[data-colorblind="deuteranopia"][data-theme="dark"] .timeout-nav,
html[data-colorblind="tritanopia"][data-theme="dark"] .timeout-nav {
    background: var(--nav-bg, #1a1f36) !important;
}
/* Disable backdrop-filter on social cards/overlays when colorblind is active
   (parent filter creates an isolated group that breaks backdrop-filter) */
html[data-colorblind="protanopia"] .glass-card,
html[data-colorblind="deuteranopia"] .glass-card,
html[data-colorblind="tritanopia"] .glass-card,
html[data-colorblind="protanopia"] .post-card,
html[data-colorblind="deuteranopia"] .post-card,
html[data-colorblind="tritanopia"] .post-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html[data-colorblind="protanopia"] .cp-overlay,
html[data-colorblind="deuteranopia"] .cp-overlay,
html[data-colorblind="tritanopia"] .cp-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* position:fixed breaks inside a filtered parent (becomes relative to the
   filter layer instead of the viewport). Use position:absolute + make the
   filter layer the containing block so FAB/overlay still work correctly. */
html[data-colorblind="protanopia"] #cb-filter-layer,
html[data-colorblind="deuteranopia"] #cb-filter-layer,
html[data-colorblind="tritanopia"] #cb-filter-layer {
    position: relative;
    min-height: 100vh;
}

/* Footer */

.timeout-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Navbar */

.timeout-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(91, 115, 232, 0.12);
    box-shadow: 0 2px 16px rgba(91, 115, 232, 0.09);
    font-family: 'Nunito', sans-serif;
}

.timeout-nav .navbar-brand {
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, #5B73E8, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.timeout-nav .nav-link {
    font-weight: 600;
    font-size: 13.5px;
    color: #8892B0 !important;
    padding: 7px 13px !important;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
}

.timeout-nav .nav-link:hover {
    color: #5B73E8 !important;
    background: rgba(91, 115, 232, 0.08);
}

/* Login/Signup buttons (unauthenticated) */
.nav-user-btn {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #5B73E8 !important;
    background: rgba(91, 115, 232, 0.10);
    border: 1.5px solid rgba(91, 115, 232, 0.20);
    padding: 6px 16px !important;
    border-radius: 50px !important;
}

.nav-user-btn:hover { background: rgba(91, 115, 232, 0.18) !important; }

/* User dropdown button */
.nav-user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    background: rgba(91, 115, 232, 0.08);
    border: 1.5px solid rgba(91, 115, 232, 0.18);
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #5B73E8;
    cursor: pointer;
    transition: all 0.18s;
}

.nav-user-dropdown-btn:hover,
.nav-user-dropdown-btn.show {
    background: rgba(91, 115, 232, 0.15);
    border-color: rgba(91, 115, 232, 0.30);
    color: #5B73E8;
}

.nav-user-dropdown-btn::after {
    font-size: 10px;
    vertical-align: middle;
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B73E8, #4ECDC4);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown menu */
.nav-dropdown-menu {
    min-width: 200px;
    border: 1px solid rgba(91, 115, 232, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(91, 115, 232, 0.15);
    padding: 6px;
    margin-top: 8px !important;
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.nav-dropdown-username {
    font-size: 13px;
    font-weight: 700;
    color: #1A1F36;
}

.nav-dropdown-level {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5B73E8, #4ECDC4);
    color: #fff;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6a85 !important;
    transition: all 0.15s;
}

.nav-dropdown-item:hover {
    background: rgba(91, 115, 232, 0.06) !important;
    color: #5B73E8 !important;
}

.nav-dropdown-item--danger:hover {
    background: rgba(239, 68, 68, 0.06) !important;
    color: #ef4444 !important;
}

.nav-dropdown-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

/* Status pill: identical structure to .nav-user-dropdown-btn */
.nav-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    background: rgba(91, 115, 232, 0.08);
    border: 1.5px solid rgba(91, 115, 232, 0.18);
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #5B73E8;
    text-decoration: none !important;
    transition: all 0.18s;
}

.nav-status-pill:hover,
.nav-status-pill:focus,
.nav-status-pill:visited {
    color: #5B73E8;
    text-decoration: none !important;
}

.nav-status-pill:hover {
    background: rgba(91, 115, 232, 0.15);
    border-color: rgba(91, 115, 232, 0.30);
}

/* Colored status dot inside the pill */
.nav-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.nav-status-dot.status-social   { background: #22c55e; }
.nav-status-dot.status-focus    { background: #ef4444; }
.nav-status-dot.status-inactive { background: #94a3b8; }

/* Navbar mobile */
@media (max-width: 991.98px) {
    .timeout-nav .navbar-collapse {
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(91, 115, 232, 0.10);
        margin-top: 0.5rem;
    }

    .timeout-nav .navbar-nav .nav-link {
        padding: 10px 12px !important;
        border-radius: 10px;
    }

    .timeout-nav .navbar-nav.align-items-center {
        align-items: flex-start !important;
    }
}

/* Navbar desktop: nav-topbar-user를 오른쪽 끝으로 */
@media (min-width: 992px) {
    .nav-topbar-user { order: 10; }
}

/* Status Dots & Badges (used app-wide) */

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.status-dot.status-social   { background: #22c55e; }
.status-dot.status-focus    { background: #ef4444; }
.status-dot.status-inactive { background: #94a3b8; }


.status-badge-focus,
.status-badge-social,
.status-badge-inactive {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge-focus    { background-color: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.status-badge-social   { background-color: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.status-badge-inactive { background-color: #f7fafc; color: #718096; border: 1px solid #e2e8f0; }