/* Global Styles - Retro 90s/80s Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: #008080; /* Teal - classic Windows 95 */
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    color: #000;
    line-height: 1.6;
}

/* Navbar - Classic Windows Taskbar Style */
.navbar {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.8);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.navbar h1 {
    font-size: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 2px outset #fff;
    transition: all 0.1s;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    border: 2px inset #fff;
}

.nav-links a:active,
.nav-links a.active {
    background: rgba(0,0,0,0.3);
    border: 2px inset #fff;
}

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

@media (max-width: 767px) {
    .container {
        padding: 0.5rem;
    }
}

/* Auth Pages - Retro Dialog Style */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #008080;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

.auth-container {
    background: #c0c0c0;
    padding: 0;
    border: 3px outset #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 450px;
    font-family: 'VT323', monospace;
}

.auth-container h1 {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    color: white;
    padding: 0.5rem;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    border-bottom: 2px solid #fff;
}

.auth-container h2 {
    text-align: center;
    margin: 1.5rem 0;
    color: #000;
    font-size: 1.5rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.auth-container input {
    padding: 0.5rem;
    border: 2px inset #fff;
    background: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    color: #000;
    font-size: 1.2rem;
}

.auth-link {
    text-align: center;
    margin: 1rem 0;
    padding-bottom: 1rem;
}

.auth-link a {
    color: #000080;
    text-decoration: underline;
    font-size: 1.1rem;
}

/* Buttons - Windows 95 Style */
.btn-primary {
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s;
}

.btn-primary:hover {
    background: #d0d0d0;
}

.btn-primary:active {
    border: 2px inset #fff;
    background: #a0a0a0;
}

.btn-secondary {
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-secondary:active {
    border: 2px inset #fff;
}

.btn-danger {
    background: #c00000;
    color: #fff;
    border: 2px outset #ff6666;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.btn-danger:active {
    border: 2px inset #ff6666;
}

.btn-google {
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-chat {
    background: #00ff00;
    color: #000;
    border: 2px outset #66ff66;
    padding: 0.5rem 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
    position: relative;
}

.btn-chat:active {
    border: 2px inset #66ff66;
}

.btn-close {
    background: #c00000;
    color: #fff;
    border: 2px outset #ff6666;
    font-size: 1.5rem;
    font-family: 'VT323', monospace;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Messages - Retro Alert Style */
.error-message {
    background-color: #ff0000;
    color: #fff;
    padding: 0.75rem;
    border: 2px solid #000;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.success-message {
    background-color: #00ff00;
    color: #000;
    padding: 0.75rem;
    border: 2px solid #000;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.info-box {
    background-color: #ffff00;
    color: #000;
    padding: 1rem;
    border: 3px outset #fff;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

/* Dashboard - Windows 95 Desktop Icons Style */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #c0c0c0;
    padding: 1rem;
    border: 3px outset #fff;
}

.dashboard-header h2 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-card {
    background: #c0c0c0;
    padding: 1rem;
    border: 3px outset #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

.song-card:hover {
    background: #d0d0d0;
}

.song-card:active {
    border: 3px inset #fff;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.song-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background-color: #000080;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border: 2px solid #fff;
    font-size: 0.9rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.badge.notification {
    background-color: #ff0000;
    color: #fff;
    position: absolute;
    transform: translate(-28px, -78px);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.song-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
}

/* Modal - Windows 95 Dialog */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #c0c0c0;
    padding: 0;
    border: 3px outset #fff;
    width: 90%;
    max-width: 500px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

.modal-content h3 {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    color: white;
    padding: 0.5rem;
    margin: 0;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.modal-content input {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.5rem;
    border: 2px inset #fff;
    background: #fff;
    font-family: 'Courier New', monospace;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem;
}

/* Simple Modal */
.simple-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.simple-modal {
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
}

.simple-modal h4 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000080;
}

.simple-modal p {
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.simple-modal input[type="text"] {
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Song Page - Windows 95 Program Window */
.song-status-bar {
    background: #c0c0c0;
    padding: 1rem;
    border: 3px outset #fff;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

.song-status-bar select {
    padding: 0.5rem;
    border: 2px inset #fff;
    background: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

/* Tabs - Windows 95 Menu Bar Style */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    overflow-x: auto;
    padding-top: 5px;
    background: #c0c0c0;
    border: 3px outset #fff;
    border-bottom: none;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #c0c0c0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.1s;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    width: 100%;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: #fff;
    border-bottom: 2px solid #fff;
}

.tab-btn:active {
    background: #a0a0a0;
}

/* Tab Content - Windows 95 Window Interior */
.tab-content {
    display: none;
    background: #fff;
    padding: 1.5rem;
    border: 3px outset #fff;
    border-top: 3px solid #c0c0c0;
    min-height: 400px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000080;
}

.tab-content textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.tab-btn {
    position: relative;
}

.tab-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: 'VT323', monospace;
    animation: blink 1s infinite;
    z-index: 10;
}

.autosave-indicator {
    display: block;
    margin-top: 0.5rem;
    color: #008000;
    font-size: 0.9rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .autosave-indicator {
        font-size: 0.7rem;
        margin-top: 0.1rem;
    }
}

/* Structure */
.structure-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.structure-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
}

.sections-list, .layers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-item, .layer-item {
    background: #c0c0c0;
    padding: 1rem;
    border: 2px outset #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.section-item {
    cursor: move;
}


.section-item.dragging {
    opacity: 0.5;
    border: 2px inset #fff;
    cursor: grabbing;
}

.section-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #808080,
        #808080 10px,
        #a0a0a0 10px,
        #a0a0a0 20px
    );
    border: 2px dashed #000;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Checklist */
.checklist-section {
    background: #c0c0c0;
    padding: 1rem;
    border: 2px outset #fff;
    margin-bottom: 1rem;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checklist-header h4 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.add-task-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-task-form input {
    flex: 1;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
    min-width: 50%;
}

.task-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #ffff95;
    align-items: flex-start;
    font-family: 'Courier New', monospace;
    align-items: center;
}

.task-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
}

@media (max-width: 767px) {
    .task-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;        
    }
}

.task-idea {
    background: #fac679;
}

/* Task Type Toggle Button */
.task-type-toggle {
    padding: 0.5rem 1rem;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.task-type-toggle:active {
    border: 2px inset #fff;
}

.task-type-toggle.is-idea {
    background: #ff9800;
    color: #000;
}

/* Versions */
.version-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.version-controls input {
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.version-item {
    background: #c0c0c0;
    padding: 1rem;
    border: 2px outset #fff;
    font-family: 'Courier New', monospace;
}

.version-item.latest {
    background: #00ff00;
    border: 3px solid #000;
}

.version-item a {
    color: #000080;
    text-decoration: underline;
}

.version-meta {
    font-size: 0.9rem;
    color: #000;
    margin-top: 0.25rem;
}

/* Lyrics and Visual Toolbar */
.lyrics-toolbar, 
.visual-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lyrics-editor, 
.visual-editor {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    overflow-y: visible;
    height: auto;
    max-height: none;
}

.lyrics-editor:focus, 
.visual-editor:focus {
    outline: 2px solid #000080;
    outline-offset: -4px;
}

.lyrics-editor[contenteditable="true"]:empty:before,
.visual-editor[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #808080;
    white-space: pre-wrap;
}

.lyrics-editor h3, .visual-editor h3 {
    color: #000080;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
}

.lyrics-editor h3:first-child, .visual-editor h3:first-child {
    margin-top: 0;
}

.lyrics-editor h4, .visual-editor h4 {
    color: #008000;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.3;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.lyrics-editor p, .visual-editor p {
    line-height: 1.5;
    color: #000;
    font-weight: normal;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.lyrics-editor p:empty, .visual-editor p:empty {
    min-height: 1.8em;
}

@media (max-width: 767px) {
    #lyrics-tab {
        padding: 0.5rem;
    }
}

/* Chat Drawer - Hacker Terminal Style */
.chat-drawer {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #000;
    border-left: 4px solid #00ff00;
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 16px rgba(0,0,0,0.8);
}

.chat-drawer.open {
    right: 0;
}

/* Hide chat input until chat is opened */
.chat-drawer:not(.open) .chat-input-container {
    display: none !important;
}

.chat-header {
    background: #001a00;
    color: #00ff00;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
    font-family: 'VT323', monospace;
}

.chat-header h3 {
    font-size: 1.5rem;
}

.chat-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    overflow-x: auto;
    background: #001a00;
    border-bottom: 1px solid #00ff00;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00ff00;
    background: transparent;
    color: #00ff00;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(0,255,0,0.1);
}

.filter-btn.active {
    background: #00ff00;
    color: #000;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #000;
    min-height: 0;
}

.chat-message {
    background: rgba(0,255,0,0.25);
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
    max-width: 80%;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    align-self: flex-start;
}

.chat-message.own {
    background: rgba(0,255,255,0.25);
    border-color: #00ffff;
    color: #00ffff;
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.message-author {
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.message-meta {
    font-size: 0.8rem;
    color: #00cc00;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    display: none;
}

.message-section-tag {
    background: rgba(0,255,0,0.2);
    padding: 0.1rem 0.4rem;
    border: 1px solid #00ff00;
    font-size: 0.75rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 2px solid #00ff00;
    background: #001a00;
    flex-shrink: 0;
}

.chat-input-container input {
    flex: 1;
    padding: 0.5rem !important;
    border: 1px solid #00ff00 !important;
    background: #000 !important;
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
}

.chat-input-container input::placeholder {
    color: #006600;
}

/* Universal Chat */
#chatView {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

#backToSongsBtn {
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
}

.song-selector-view {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #000;
}

.chat-song-item {
    background: rgba(0,255,0,0.1);
    border: 2px solid #00ff00;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-song-item:hover {
    background: rgba(0,255,0,0.2);
}

.chat-song-item:active {
    background: rgba(0,255,0,0.3);
}

.chat-song-title {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.chat-song-meta {
    display: flex;
    gap: 0.5rem;
}

.chat-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: 'VT323', monospace;
    font-weight: bold;
    animation: blink 1s infinite;
    z-index: 10;
}

.chat-song-badge {
    display: inline-block;
    margin-left: 0.5rem;
    background: #ff0000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 0.1rem 0.5rem;
    font-size: 0.9rem;
    font-family: 'VT323', monospace;
    animation: chat-badge-blink 1s infinite;
}

/* Make sure blink animation exists */
@keyframes chat-badge-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

/* Admin Page */
.admin-section {
    background: #c0c0c0;
    padding: 1.5rem;
    border: 3px outset #fff;
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 2px inset #c0c0c0;
    font-family: 'Courier New', monospace;
}

.add-member-form {
    display: flex;
    gap: 0.5rem;
}

.add-member-form input {
    flex: 1;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
}

/* Settings */
.settings-section {
    background: #c0c0c0;
    padding: 1.5rem;
    border: 3px outset #fff;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Scrollbars - Windows 95 Style */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 2px inset #fff;
}

::-webkit-scrollbar-thumb {
    background: #808080;
    border: 2px outset #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Hide scrollbar on mobile while maintaining scroll functionality */
@media (max-width: 767px) {
    body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    body::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    /* Also apply to any scrollable containers */
    .tab-content {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-content::-webkit-scrollbar {
        display: none;
    }
    
    .chat-messages {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .chat-messages::-webkit-scrollbar {
        display: none;
    }
}

/* Chat scrollbar - Terminal style */
.chat-messages::-webkit-scrollbar {
    width: 12px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #001a00;
    border: 1px solid #00ff00;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000;
}

/* Mobile-specific chat drawer fixes */
@media (max-width: 767px) {
    .chat-drawer {
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh; /* Dynamic viewport height */
    }
    
    #chatView {
        height: 100%;
        max-height: 100%;
    }
    
    #songSelectorView {
        height: 100%;
        max-height: 100%;
    }
    
    .chat-messages {
        /* Make room for input */
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    
    .chat-input-container {
        flex-shrink: 0;
        background: #001a00;
        border-top: 2px solid #00ff00;
        padding: 0.75rem;
    }
    
    .chat-input-container input {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0.75rem;
    }
    
    .chat-input-container button {
        padding: 0.75rem 1rem;
    }
    
    /* When keyboard is open */
    .chat-drawer.keyboard-open {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .chat-drawer.keyboard-open .chat-messages {
        flex: 1;
        min-height: 200px;
        max-height: 50vh;
    }
}

/* Alternative - force input to stay visible */
.chat-drawer.keyboard-open {
    padding-bottom: 0;
}

.chat-drawer.keyboard-open .chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .songs-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .version-controls {
        grid-template-columns: 2fr 3fr auto;
    }

    .chat-drawer {
        max-width: 400px;
        position: fixed;
        height: 100vh;
        height: 100dvh;
    }

    .structure-controls {
        max-width: 600px;
    }
}

/* Mobile navbar optimization */
@media (max-width: 767px) {
    .navbar h1 {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a,
    .nav-links .btn-chat {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    /* Hide text, show icons only on mobile */
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        display: inline;
        font-size: 1.2rem;
    }

    .nav-links #openChatBtn {
        padding: 0.4rem 1.2rem !important;
    }
}

/* Desktop - show text, hide icons */
@media (min-width: 768px) {
    .nav-text {
        display: inline;
    }
    
    .nav-icon {
        display: none;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .navbar h1 {
        font-size: 1.2rem;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .version-controls {
        grid-template-columns: 1fr;
    }

    .chat-drawer {
        max-width: 100%;
        position: fixed;
        height: 100vh;
        height: 100dvh;
    }
    
    .lyrics-editor, .visual-editor {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    .lyrics-toolbar, .visual-toolbar {
        position: sticky;
        top: 60px;
        background: #c0c0c0;
        z-index: 10;
        padding: 0.5rem;
        margin-bottom: 0;
        justify-content: center;
        border: 2px outset #fff;
        border-bottom: 3px solid #808080;
    }
    
    .tabs {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }

    #checklist-tab {
        padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    }

    .checklist-section {
        padding: 0.7rem 0.4rem;
    }
}

/* Selection colors - retro style */
::selection {
    background: #000080;
    color: #fff;
}

::-moz-selection {
    background: #000080;
    color: #fff;
}

/* Apply selection modal */
.apply-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
    background: #fff;
    border: 2px inset #c0c0c0;
    padding: 1rem;
}

.apply-selection-column {
    font-family: 'VT323', monospace;
}

.apply-selection-column strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #000080;
    font-size: 1.2rem;
}

.apply-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f0f0f0;
    border: 1px solid #c0c0c0;
}

.apply-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.apply-checkbox-label:hover {
    background: #e0e0e0;
}

.apply-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 767px) {
    .apply-selection-grid {
        grid-template-columns: 1fr;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px dotted #000;
    outline-offset: 2px;
}

/* Links in content */
a {
    color: #000080;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #0000ff;
}

/* Loading states */
.loading {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #000080;
    text-align: center;
    padding: 2rem;
}

/* Pixel perfect borders helper */
.pixel-border {
    border: 2px solid #000;
    box-shadow: 
        2px 2px 0 #fff,
        -2px -2px 0 #808080;
}

/* CRT screen effect (optional - subtle) */
@keyframes flicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

body {
    animation: flicker 0.15s infinite;
}

/* Additional retro details */
.tab-content input[type="text"],
.tab-content input[type="url"] {
    border: 2px inset #c0c0c0;
    padding: 0.5rem;
    background: #e1e1e1;
    font-family: 'Courier New', monospace;
    color: black;

}

/* Make sure all inputs have consistent styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select {
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Hover effects for draggable items */
.section-item:hover {
    background: #d0d0d0;
}

/* Active states for better feedback */
.btn-primary:active,
.btn-secondary:active,
.btn-google:active {
    transform: translate(1px, 1px);
}

/* Status select dropdown */
#songStatus {
    cursor: pointer;
    font-size: 1rem;
}

#songStatus:hover {
    background: #f0f0f0;
}

/* Ensure proper spacing */
.container > * {
    margin-bottom: 1rem;
}

/* Version item hover */
.version-item:hover {
    background: #d0d0d0;
}

/* Checklist complete styling */
.task-item input[type="checkbox"]:checked + .task-content {
    text-decoration: line-through;
    opacity: 0.6;
}

.dash-logo {
    height: 3rem;
}

@media (max-width: 450px) {
    .dash-logo {
        display: none;
    }
}

/* ============================================================================
   REDESIGNED VERSION HISTORY - COMPACT UI
   ============================================================================ */

/* Current Agreed Version - Grid Layout */
.version-grid-table {
    background: #fff;
    border: 2px inset #c0c0c0;
    overflow-x: auto;
    margin: 1rem 0;
}

.version-grid-container {
    display: inline-grid;
    min-width: 100%;
    border-collapse: collapse;
}

.version-grid-header {
    display: contents;
}

.version-grid-header > div {
    background: #000080;
    color: #fff;
    padding: 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    border: 1px solid #fff;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.version-grid-row {
    display: contents;
}

.version-grid-layer-label {
    background: #d0d0d0;
    padding: 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    border: 1px solid #c0c0c0;
    position: sticky;
    left: 0;
    z-index: 5;
}

.version-grid-cell {
    padding: 0.3rem;
    border: 1px solid #c0c0c0;
    text-align: center;
    min-width: 80px;
}

.version-grid-cell.empty {
    background: #f0f0f0;
}

.idea-cell-btn {
    background: #00ff00;
    border: 2px outset #66ff66;
    padding: 0.3rem 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idea-cell-btn:hover {
    background: #66ff66;
}

.idea-cell-btn:active {
    border: 2px inset #66ff66;
}

.idea-cell-btn.link::before {
    content: '🔗 ';
}

.idea-cell-btn.text::before {
    content: '📝 ';
}

#createIdeaBtn {
    background-color: #00ff00;
    border: 2px outset #9f9f9f !important;
}
#createIdeaBtn:hover {
    background-color: #23e723;
    cursor: pointer;
}

.inline-notification {
    position: absolute;

}

/* New Idea Panel - Compact */
.new-idea-panel-compact {
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.new-idea-panel-compact h4 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000080;
}

.compact-section {
    margin-bottom: 1rem;
}

.compact-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

/* Content Type Selector */
.content-selector-compact {
    position: relative;
    margin-bottom: 0.5rem;
}

.content-type-btn {
    width: 100%;
    padding: 0.6rem;
    background: #fff;
    border: 2px inset #c0c0c0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-type-btn:hover {
    background: #f0f0f0;
}

.dropdown-arrow {
    font-size: 0.8rem;
}

.content-type-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px outset #c0c0c0;
    z-index: 100;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-type-menu button {
    width: 100%;
    padding: 0.6rem;
    background: #fff;
    border: none;
    border-bottom: 1px solid #c0c0c0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.content-type-menu button:hover {
    background: #e0e0e0;
}

.content-type-menu button:last-child {
    border-bottom: none;
}

/* Content Area */
.content-area {
    margin-top: 0.5rem;
}

.content-ui-compact {
    padding: 0.5rem;
}

.btn-record-compact {
    background: #ff0000;
    color: #fff;
    border: 2px outset #ff6666;
    padding: 0.6rem 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
}

.btn-record-compact:active {
    border: 2px inset #ff6666;
}

.recording-status-compact {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ff0000;
    text-align: center;
    margin: 0.5rem 0;
}

.btn-danger-compact {
    background: #c00000;
    color: #fff;
    border: 2px outset #ff6666;
    padding: 0.5rem 1rem;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.btn-secondary-compact {
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 0.6rem 1rem;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.warning-text-compact {
    color: #ff0000;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.content-ui-compact input[type="url"],
.content-ui-compact textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #808080;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.content-ui-compact textarea {
    min-height: 60px;
    resize: vertical;
}

.attachment-preview-compact {
    margin-top: 0.5rem;
}

.attachment-preview-compact audio {
    width: 100%;
}

/* Section/Layer Selectors */
.selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.selector-compact {
    position: relative;
}

.selector-header {
    padding: 0.6rem;
    background: #fff;
    border: 2px inset #c0c0c0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.selector-header:hover {
    background: #f0f0f0;
}

.selector-toggle {
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px outset #c0c0c0;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.checkbox-list-compact {
    padding: 0.3rem;
}

.checkbox-list-compact label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.checkbox-list-compact label:hover {
    background: #e0e0e0;
}

.checkbox-list-compact input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.btn-link-compact {
    background: none;
    border: none;
    color: #000080;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.3rem;
    width: 100%;
    text-align: left;
    text-decoration: underline;
}

.btn-link-compact:hover {
    color: #0000ff;
}

/* Optional Sections */
.optional-sections {
    margin: 1rem 0;
}

.optional-toggle {
    background: none;
    border: none;
    color: #000080;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    display: block;
}

.optional-toggle:hover {
    color: #0000ff;
}

.optional-content {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 2px inset #c0c0c0;
}

.optional-content input[type="text"],
.optional-content select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #808080;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Form Actions */
.form-actions-compact {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-actions-compact button {
    flex: 1;
}

/* Version Timeline - Compact */
.version-timeline-compact {
    margin-top: 2rem;
}

.version-timeline-compact h4 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #000080;
    margin-bottom: 1rem;
}

.versions-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Version Card - Minimal */
.version-card-compact {
    background: #c0c0c0;
    border: 2px outset #fff;
    padding: 0.6rem;
    cursor: pointer;
    transition: background 0.2s;
}

.version-card-compact:hover {
    background: #d0d0d0;
}

.version-header-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.version-author {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    font-weight: bold;
}

.version-time {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
}

.current-tag {
    background: #00ff00;
    color: #000;
    padding: 0.1rem 0.4rem;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    border: 1px solid #000;
}

.version-content-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.content-icon {
    display: inline-block;
    margin-right: 0.3rem;
}

.version-actions-compact {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.version-card-compact.expanded .version-actions-compact {
    display: flex;
}

.version-details {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 2px inset #c0c0c0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.version-card-compact.expanded .version-details {
    display: block;
}

.version-details-row {
    margin-bottom: 0.3rem;
}

.version-details-row strong {
    color: #000080;
}

.version-details audio {
    width: 100%;
    margin-top: 0.3rem;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .selector-grid {
        grid-template-columns: 1fr;
    }
    
    .version-grid-container {
        font-size: 0.85rem;
    }
    
    .version-grid-layer-label {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
    
    .idea-cell-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
    }
    
    .form-actions-compact {
        flex-direction: column;
    }
}

/* Playing state for audio buttons */
.idea-cell-btn.playing {
    background: #ff9800;
    border-color: #ffb84d;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Version details popup */
.popup-text-content {
    background: #fff;
    padding: 1rem;
    border: 2px inset #c0c0c0;
    margin: 1rem 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    max-height: 300px;
    overflow-y: auto;
}

.popup-link {
    background: #fff;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.popup-link a {
    color: #000080;
    word-break: break-all;
}

.popup-notes {
    background: #ffffcc;
    padding: 0.5rem;
    border-left: 3px solid #000080;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-style: italic;
}

.popup-applies {
    background: #fff;
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.popup-applies > div {
    margin-bottom: 0.3rem;
}

.popup-applies > div:last-child {
    margin-bottom: 0;
}

.popup-footer {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #c0c0c0;
}

/* Version preview audio */
.version-content-preview audio {
    margin-top: 0.5rem;
}

.version-content-preview .content-icon {
    display: inline-block;
    margin-right: 0.3rem;
}

/* Login Display */
/* Hide the container by default */
.auth-container {
    display: none;
}

/* Show it only when the page is ready (you'd add a class via JS if NO user is found) */
.auth-ready .auth-container {
    display: block;
}

/* Chat idea picker */
.idea-picker-dropdown {
    position: absolute;
    bottom: 60px;
    left: 10px;
    right: 10px;
    max-height: 300px;
    background: white;
    border: 2px solid #c0c0c0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
}

.idea-picker-header {
    padding: 0.5rem;
    background: #e0e0e0;
    border-bottom: 1px solid #c0c0c0;
    font-weight: bold;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.idea-picker-list {
    max-height: 250px;
    overflow-y: auto;
}

.idea-picker-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.idea-picker-item:hover {
    background: #f5f5f5;
}

.idea-picker-item-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #007bff;
    color: white;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.idea-picker-item-preview {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.idea-picker-item-meta {
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Embedded idea in message */
.embedded-idea {
    margin: 0.5rem 0;
    border-radius: 4px;
    min-width: 200px;
}

.embedded-idea-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.embedded-idea-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #007bff;
    color: white;
    border-radius: 3px;
    font-size: 0.8rem;
}

.embedded-idea-meta {
    color: #ffffff;
    font-size: 0.85rem;
}

.embedded-idea-audio {
    margin-top: 0.5rem;
}

.embedded-idea-text {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    color: #333;
    max-height: 100px;
    overflow-y: auto;
}

.embedded-idea-text-preview {
    color: #666;
    font-style: italic;
    cursor: pointer;
}

.embedded-idea-text-preview:hover {
    text-decoration: underline;
}

.idea-picker-item audio {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.idea-picker-item:has(audio) {
    padding-bottom: 0.5rem;
}

/* Voice record button */
.btn-voice-record {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 !important;
    transition: transform 0.2s;
}

.btn-voice-record:hover {
    transform: scale(1.1);
}

.btn-voice-record:active {
    transform: scale(0.95);
}

/* Voice recording modal */
.voice-record-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    padding: 2rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.voice-record-content {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.voice-record-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    font-size: 1.5rem;
}

.recording-indicator {
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.voice-record-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Voice message in chat */
.voice-message {
    margin-top: 0.5rem;
    min-width: 200px;
}

.voice-message audio {
    width: 100%;
    max-width: 300px;
}

/* Activity Tab Styles */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: 'Courier New', monospace;
    min-width: 150px;
}

.activity-feed {
    border: 2px inset #c0c0c0;
    padding: 1rem;
    background: #fff;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d0d0d0;
    background: #f9f9f9;
    border-radius: 4px;
    position: relative;
}

.activity-item:hover {
    background: #f0f0f0;
}

.activity-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.activity-user {
    font-weight: bold;
    color: #0066cc;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

.activity-action {
    color: #333;
    line-height: 1.5;
}

.activity-details {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-left: 3px solid #0066cc;
    font-size: 0.9rem;
    display: none;
}

.activity-item.expanded .activity-details {
    display: block;
}

.activity-expand-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-top: 0.25rem;
}

.activity-expand-btn:hover {
    text-decoration: underline;
}

.activity-empty {
    text-align: center;
    color: #666;
    padding: 3rem;
}

.activity-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #e0e0e0;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.activity-type-badge.idea { background: #e3f2fd; color: #1976d2; }
.activity-type-badge.version { background: #f3e5f5; color: #7b1fa2; }
.activity-type-badge.structure { background: #fff3e0; color: #f57c00; }
.activity-type-badge.lyrics { background: #e8f5e9; color: #388e3c; }
.activity-type-badge.visual { background: #fce4ec; color: #c2185b; }
.activity-type-badge.checklist { background: #e0f2f1; color: #00796b; }
