/* Title Bar Styles - macOS Style */

.title-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(13, 21, 32, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 74, 111, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1100;
    /* Higher than NavBar (1000) */
    user-select: none;
    -webkit-app-region: drag;
}

/* Left Section */
.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    -webkit-app-region: no-drag;
}

/* Traffic Light Button Base */
.traffic-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

/* Mode 0: Terminal - Red */
.traffic-light.mode-0 {
    background: radial-gradient(circle at 30% 30%, #ff7b72, #ff5f56);
    box-shadow: 0 0 4px rgba(255, 95, 86, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-0:hover {
    background: radial-gradient(circle at 30% 30%, #ff9f9a, #ff7b72);
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-0.active {
    box-shadow: 0 0 12px rgba(255, 95, 86, 0.9),
        0 0 20px rgba(255, 95, 86, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Mode 1: Grid/IDE - Yellow */
.traffic-light.mode-1 {
    background: radial-gradient(circle at 30% 30%, #ffdf5d, #ffbd44);
    box-shadow: 0 0 4px rgba(255, 189, 68, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-1:hover:not(.locked) {
    background: radial-gradient(circle at 30% 30%, #ffe97f, #ffdf5d);
    box-shadow: 0 0 8px rgba(255, 189, 68, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-1.active {
    box-shadow: 0 0 12px rgba(255, 189, 68, 0.9),
        0 0 20px rgba(255, 189, 68, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-1.locked {
    background: radial-gradient(circle at 30% 30%, #6e6e6e, #4a4a4a);
    box-shadow: 0 0 4px rgba(100, 100, 100, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

/* Mode 2: Visual - Green */
.traffic-light.mode-2 {
    background: radial-gradient(circle at 30% 30%, #5cd65c, #28c840);
    box-shadow: 0 0 4px rgba(40, 200, 64, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-2:hover {
    background: radial-gradient(circle at 30% 30%, #7ae17a, #5cd65c);
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.traffic-light.mode-2.active {
    box-shadow: 0 0 12px rgba(40, 200, 64, 0.9),
        0 0 20px rgba(40, 200, 64, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Mode Icon Inside (shown on hover/active) */
.traffic-light .mode-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.traffic-light:hover .mode-icon,
.traffic-light.active .mode-icon {
    opacity: 1;
}

.traffic-light.locked .mode-icon {
    font-size: 7px;
}

/* Tooltip */
.traffic-light-wrapper {
    position: relative;
}

.traffic-light-tooltip {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1001;
}

.traffic-light-wrapper:hover .traffic-light-tooltip {
    opacity: 1;
    visibility: visible;
    top: 28px;
}

/* Title Center */
.title-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    letter-spacing: 0.5px;
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* Page Info (for merged header) */
.page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.page-icon {
    color: #00ff9d;
    font-size: 8px;
}

.page-title {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 11px;
}

.page-path {
    color: #5f636e;
    font-size: 11px;
}

/* Back Link */
.back-link {
    color: #5f636e;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.2s;
    margin-right: 8px;
}

.back-link:hover {
    color: #00ff9d;
}

/* Right Section */
.title-right {
    display: flex;
    align-items: center;
    gap: 8px;
    -webkit-app-region: no-drag;
}

/* General Nav Buttons */
.nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    padding: 0;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Language Button - Terminal Style */
.lang-menu-wrapper {
    position: relative;
}

.lang-btn {
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    font-size: 11px;
    font-weight: 500;
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.5);
    color: #3dd156;
}

.lang-btn .lang-code {
    opacity: 0.6;
}

.lang-btn .lang-current {
    font-weight: 600;
}

/* Terminal Header in Dropdown */
.terminal-header {
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
    color: #6e7681;
}

.terminal-prompt {
    color: #28a745;
    margin-right: 4px;
}

/* Language Item Styles */
.lang-item {
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

.lang-indicator {
    font-size: 8px;
    color: #6e7681;
    transition: color 0.2s;
}

.lang-item.active .lang-indicator {
    color: #28a745;
}

.lang-label {
    flex: 1;
}

.lang-code-tag {
    font-size: 9px;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    color: #6e7681;
}

.lang-item.active .lang-code-tag {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

/* User Avatar Button */
.user-menu-wrapper {
    position: relative;
}

.user-avatar-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.1);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-avatar.authenticated {
    background: linear-gradient(135deg, #2d4a6f, #1e3a5f);
    color: #8b949e;
}

.user-avatar.guest {
    background: rgba(255, 255, 255, 0.1);
    color: #6e7681;
}

.user-avatar.guest:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #8b949e;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: linear-gradient(180deg, #1a2332 0%, #0d1520 100%);
    border: 1px solid #2d4a6f;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 6px 0;
    z-index: 1200;
    overflow: hidden;
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 11px;
    color: #8b949e;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    color: #c9d1d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.active {
    background: rgba(40, 200, 64, 0.15);
    color: #28c840;
}

.dropdown-item.danger {
    color: #ff7b72;
}

.dropdown-item.danger:hover {
    background: rgba(255, 95, 86, 0.15);
}

/* Dropdown Animation */
.dropdown-enter-active,
.dropdown-leave-active {
    transition: all 0.2s ease;
}

.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: translateY(-8px);
}

/* Lang Dropdown Position */
.lang-dropdown {
    min-width: 120px;
}
.session-timer[data-v-7bff894b] {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transition: all 0.3s ease;
  user-select: none;
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- Idle Styles (Green -> Orange) --- */
.session-timer.type-idle[data-v-7bff894b] {
    color: #4ade80; /* Green */
    border: 1px solid transparent;
}
.session-timer.type-idle.status-warning[data-v-7bff894b] {
    color: #fbbf24; /* Amber */
}
.session-timer.type-idle.status-critical[data-v-7bff894b] {
    color: #ef4444; /* Red */
    animation: pulse-7bff894b 2s infinite;
}

/* --- Forced Styles (Blue -> Red) --- */
.session-timer.type-forced[data-v-7bff894b] {
    color: #60a5fa; /* Blue */
    border: 1px solid rgba(96, 165, 250, 0.2);
}
.session-timer.type-forced.status-warning[data-v-7bff894b] {
    color: #f87171; /* Light Red */
    border-color: rgba(248, 113, 113, 0.5);
}
.session-timer.type-forced.status-critical[data-v-7bff894b] {
    color: #ff0000; /* Bright Red */
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    font-weight: bold;
    animation: urgent-pulse-7bff894b 1s infinite;
}
@keyframes urgent-pulse-7bff894b {
0% { transform: scale(1); opacity: 1;
}
50% { transform: scale(1.02); opacity: 0.8;
}
100% { transform: scale(1); opacity: 1;
}
}
.label[data-v-7bff894b] {
  opacity: 0.8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.time[data-v-7bff894b] {
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@keyframes pulse-7bff894b {
0% { opacity: 1;
}
50% { opacity: 0.6;
}
100% { opacity: 1;
}
}

.notification-panel[data-v-dad5622c] {
    width: 320px;
    padding: 0;
    overflow: hidden;
    right: 0; /* Align right to parent */
    left: auto;
    /* dropdown-menu class handles absolute positioning and z-index */
}
.panel-header[data-v-dad5622c] {
    padding: 12px 16px;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
}
.title[data-v-dad5622c] {
    font-weight: 600;
    color: #c9d1d9;
    font-size: 14px;
}
.action-link[data-v-dad5622c] {
    background: none;
    border: none;
    color: #58a6ff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}
.action-link[data-v-dad5622c]:hover { text-decoration: underline;
}
.panel-body[data-v-dad5622c] {
    max-height: 400px;
    overflow-y: auto;
    background: #0d1117;
}
.empty-state[data-v-dad5622c] {
    padding: 20px;
    text-align: center;
    color: #8b949e;
    font-size: 13px;
}
.notification-item[data-v-dad5622c] {
    padding: 12px 38px 12px 16px; /* Extra right padding for check button */
    border-bottom: 1px solid #21262d;
    cursor: pointer;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    position: relative; /* For absolute button */
}
.notification-item[data-v-dad5622c]:hover {
    background: #161b22;
}
.notification-item[data-v-dad5622c]:last-child {
    border-bottom: none;
}
.item-icon[data-v-dad5622c] {
    padding-top: 4px;
}
.dot[data-v-dad5622c] {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30363d;
}
.unread .dot[data-v-dad5622c] {
    background: #58a6ff;
    box-shadow: 0 0 4px #58a6ff;
}
.item-content[data-v-dad5622c] {
    flex: 1;
    min-width: 0; /* text truncate works */
}
.item-title[data-v-dad5622c] {
    font-weight: 600;
    font-size: 13px;
    color: #c9d1d9;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.unread .item-title[data-v-dad5622c] {
    color: #fff;
}
.item-msg[data-v-dad5622c] {
    color: #8b949e;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.item-time[data-v-dad5622c] {
    color: #484f58;
    font-size: 11px;
}
.panel-footer[data-v-dad5622c] {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #30363d;
    background: #161b22;
    color: #c9d1d9;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.panel-footer[data-v-dad5622c]:hover {
    background: #21262d;
}
.item-check-btn[data-v-dad5622c] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #21262d;
    border: 1px solid #30363d;
    color: #58a6ff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.notification-item:hover .item-check-btn[data-v-dad5622c] {
    display: flex;
}
.item-check-btn[data-v-dad5622c]:hover {
    background: #58a6ff;
    color: #0d1117;
    border-color: #58a6ff;
}

/* Additional styles for links */
.link-text[data-v-dad5622c] {
    color: #58a6ff; /* GitHub blue */
    text-decoration: none;
}
.link-text[data-v-dad5622c]:hover {
    text-decoration: underline;
}
.link-button[data-v-dad5622c] {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.link-icon[data-v-dad5622c] {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: super;
}

/* Basic Badge Style - Ideally move to CSS file */
.notification-wrapper[data-v-0a4bcedc] {
    position: relative;
    /* margin-right removed to use parent gap */
}
.bell-icon[data-v-0a4bcedc] {
    width: 18px;
    height: 18px;
    color: #c9d1d9;
    transition: color 0.2s;
}
.nav-btn:hover .bell-icon[data-v-0a4bcedc] {
    color: #fff;
}
.badge[data-v-0a4bcedc] {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff4757;
    color: white;
    font-size: 9px;
    padding: 0 4px;
    border-radius: 10px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 0 0 1px #010409;
}
