/* --- CSS --- */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f0f2f5; display: flex; min-height: 100vh; overflow: hidden; }
.main-container { display: flex; width: 100%; height: 100vh; overflow: hidden; }
#left-column { min-width: 320px; padding: 0; background-color: #f9f9f9; overflow: hidden; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; box-sizing: border-box; }
.resizer { width: 10px; background-color: #c1c1c1; cursor: ew-resize; flex-shrink: 0; display: flex; align-items: center; justify-content: center; z-index: 10; }
.resizer::after { content: '⋮'; font-size: 18px; color: #555; line-height: 0; }
#right-column { flex-grow: 1; min-width: 350px; padding: 20px; background-color: #ffffff; overflow-y: auto; display: flex; flex-direction: column; box-sizing: border-box; }
body.is-resizing iframe, body.is-resizing .widget-content-area { pointer-events: none; } body.is-resizing { cursor: ew-resize; }
button, .button-like { padding: 8px 15px; font-size: 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; text-align: center; font-weight: bold; line-height: 1.4; }
button:hover, .button-like:hover { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.control-btn { background: #e0e0e0; color: #333; border-color: #ccc; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; margin: 0 5px; padding: 0; } .control-btn:hover { background: #d0d0d0; }
.btn-primary { background-color: #007bff; color: white; border-color: #007bff;} .btn-primary:hover { background-color: #0056b3; border-color: #0056b3;}
.btn-danger { background-color: #d9534f; color: white; border-color: #d9534f;} .btn-danger:hover { background-color: #c9302c; border-color: #c9302c;}
.btn-success { background-color: #28a745; color: white; border-color: #28a745;} .btn-success:hover { background-color: #218838; border-color: #218838;}
.btn-secondary { background-color: #6c757d; color: white; border-color: #6c757d;} .btn-secondary:hover { background-color: #5a6268; border-color: #545b62;}
.delete-item-btn { color: #d9534f; background: none; border: none; padding: 5px; line-height: 1; flex-shrink: 0; font-weight: normal; margin-left: auto; } .delete-item-btn:hover { color: #c9302c; background: #f0f0f0;}
.music-player-container { flex-grow: 1; display: flex; flex-direction: column; margin: 0; background-color: #ffffff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 0; width: 100%; box-sizing: border-box; overflow: hidden; }
.player-tabs { display: flex; border-bottom: 1px solid #ddd; flex-shrink: 0; }
.player-tab-btn { padding: 10px 15px; cursor: pointer; border: none; background-color: #f0f0f0; color: #555; font-size: 14px; flex-grow: 1; text-align: center; border-bottom: 3px solid transparent; }
.player-tab-btn.active { background-color: #fff; font-weight: bold; color: #333; border-bottom-color: #007bff;}
.player-tab-content { padding: 20px; overflow-y: auto; flex-grow: 1; display: none; flex-direction: column; }
.player-tab-content.active { display: flex; }
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; background-color: #ddd; margin-bottom: 15px; background-size: cover; background-position: center; flex-shrink: 0; }
.video-container iframe, .video-container #youtube-player-div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; } /* Adjusted for YT player div */
.song-title { margin: 10px 0; font-size: 18px; font-weight: bold; color: #333; text-align: center; flex-shrink: 0; }
.player-controls-area { flex-shrink: 0; }
.controls { display: flex; justify-content: center; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 5px;}
.progress-container { display: flex; align-items: center; justify-content: center; margin-top: 15px; }
.progress-bar { width: 70%; height: 15px; background-color: #ddd; border-radius: 10px; position: relative; overflow: hidden; cursor: pointer; flex-grow: 1; }
.progress { height: 100%; background-color: #888; width: 0%; transition: width 0.3s ease; border-radius: 10px; }
.time { font-size: 14px; margin: 0 10px; color: #555; flex-shrink: 0; }
.playlist-container { margin-top: 20px; overflow-y: auto; border: 1px solid #ddd; border-radius: 10px; background: #f9f9f9; padding: 10px; flex-grow: 1; min-height: 100px; }
.playlist-item { display: flex; align-items: center; padding: 10px; margin-bottom: 5px; cursor: pointer; background-color: #fff; border-radius: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: background-color 0.3s; }
.playlist-item:hover { background-color: #f0f0f0; }
.playlist-item.active-track { background-color: #d1e7ff; border-left: 4px solid #007bff; }
.playlist-item img { width: 40px; height: 40px; background-color: #ddd; display: flex; justify-content: center; align-items: center; color: #555; border-radius: 5px; margin-right: 10px; flex-shrink: 0;}
.playlist-item-title-display { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-grow: 1; } /* Applied to title div */
.playlist-item-rename-input { /* Optional: Style for the rename input */
    padding: 5px;
    font-size: 0.95em; /* Match playlist item text */
    border: 1px solid #007bff;
    border-radius: 3px;
    box-sizing: border-box;
}
.volume-container { display: flex; align-items: center; margin-left: 15px; }
.volume-slider-container { width: 80px; height: 15px; background-color: #ddd; border-radius: 5px; position: relative; cursor: pointer; }
.volume-thumb { position: absolute; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; background-color: #888; border-radius: 50%; left: 50%; }
.media-input-area { margin-top: 10px; padding-top: 0; border-top: none; margin-bottom: 15px; flex-shrink: 0;}
.media-input-area h4 { margin-top:0; margin-bottom: 10px; font-size: 1.1em; color: #333;}
.media-input-area p { font-size: 0.9em; color: #666; margin-bottom: 15px;}
.media-input-container { display: flex; margin-bottom: 5px; }
#media-url-input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px 0 0 5px; font-size: 14px; min-width: 100px; }
#load-media-btn { border-radius: 0 5px 5px 0; flex-shrink: 0; }
.load-instructions { font-size: 0.8em; color: #888; margin-top: 5px;}
#playlist-editor-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; overflow-y: auto; border: 1px solid #ddd; border-radius: 5px; background: #f9f9f9;}
#playlist-editor-list li { padding: 10px; background-color: #fff; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; cursor: grab; }
#playlist-editor-list li:last-child { border-bottom: none; }
#playlist-editor-list img { width: 30px; height: 30px; border-radius: 3px; flex-shrink: 0; }
#playlist-editor-list .playlist-item-title-display { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95em; } /* Ensure this style exists for editor list titles as well */
.sortable-ghost { background-color: #cce5ff; opacity: 0.7; } .sortable-drag { background-color: #e9f5ff; }
.widget-tabs { display: flex; margin-bottom: 0; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.widget-tab-btn { background-color: #f0f0f0; color:#333; border-color:transparent; border-bottom: none; border-radius: 5px 5px 0 0; margin-right: 5px; position: relative; bottom: -1px; padding: 10px 15px; margin-bottom: -1px; } .widget-tab-btn:hover { background-color: #e7e7e7; } .widget-tab-btn.active { background-color: #fff; border-color: #ddd #ddd transparent #ddd; font-weight: bold; border-bottom: 1px solid #fff; z-index: 1; }
.widget-content-area { border: 1px solid #ddd; border-top: none; padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.widget-card { background-color: #fff; box-sizing: border-box; display: none; flex-direction: column; height: 100%; } .widget-card.active-widget { display: flex; }
.checklist-widget {} .checklist-input-container { display: flex; margin-bottom: 15px; } #checklist-item-input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px 0 0 5px; font-size: 15px; } #add-checklist-item-btn { border-radius: 0 5px 5px 0; } #checklist { list-style: none; padding: 0; margin: 0; flex-grow: 1; overflow-y: auto; min-height: 100px; } #checklist li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 16px; } #checklist li:last-child { border-bottom: none; } #checklist input[type="checkbox"] { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 20px; height: 20px; border: 2px solid #888; border-radius: 50%; margin-right: 12px; cursor: pointer; position: relative; outline: none; flex-shrink: 0; } #checklist input[type="checkbox"]:checked { background-color: #007bff; border-color: #007bff; } #checklist input[type="checkbox"]:checked::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background-color: white; border-radius: 50%; transform: translate(-50%, -50%); } #checklist label { flex-grow: 1; cursor: pointer; color: #333; word-break: break-word; } #checklist input[type="checkbox"]:checked + label { text-decoration: line-through; color: #aaa; }
.notes-widget { flex-grow: 1; display: flex; flex-direction: column; } #notes-area { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 15px; resize: vertical; box-sizing: border-box; min-height: 200px; flex-shrink: 0; } .sticky-notes-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; flex-grow: 1; display: flex; flex-direction: column; } .sticky-notes-section h4 { margin-top: 0; margin-bottom: 10px;} #sticky-notes-controls { margin-bottom: 10px; } #sticky-notes-board { flex-grow: 1; border: 1px dashed #ccc; border-radius: 5px; position: relative; overflow: auto; background-color: #fdfdfd; min-height: 250px; } .sticky-note { position: absolute; width: 180px; height: 180px; background-color: #ffc; box-shadow: 2px 2px 5px rgba(0,0,0,0.2); padding: 0; box-sizing: border-box; cursor: move; display: flex; flex-direction: column; border: 1px solid #e6e6a1; overflow: hidden; } .sticky-note-header { display: flex; justify-content: flex-end; height: 20px; padding: 2px 5px; background-color: rgba(0,0,0,0.05); flex-shrink: 0;} .delete-sticky-btn { font-size: 14px; width: 18px; height: 18px; line-height: 16px; padding: 0; background: rgba(0,0,0,0.1); color: #333; border: none; border-radius: 50%; cursor: pointer; opacity: 0.5; } .sticky-note:hover .delete-sticky-btn { opacity: 1; } .sticky-note textarea { flex-grow: 1; border: none; background-color: transparent; resize: none; outline: none; font-family: 'Architects Daughter', cursive; font-size: 1em; padding: 8px; box-sizing: border-box; }
.flashcards-widget { display: flex; flex-direction: column; gap: 15px; flex-grow:1; } .flashcard-display-area { min-height: 180px; border: 1px solid #ccc; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 1.4em; cursor: pointer; background-color: #f9f9f9; position: relative; perspective: 1000px; overflow: hidden; } .flashcard-face { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform 0.7s ease-in-out; position: absolute; overflow-wrap: break-word; word-wrap: break-word; padding: 10px; box-sizing: border-box; } .flashcard-front { transform: rotateY(0deg); } .flashcard-back { transform: rotateY(180deg); background-color: #e8f4fd; border-radius: 8px;} .flashcard-display-area.is-flipped .flashcard-front { transform: rotateY(180deg); } .flashcard-display-area.is-flipped .flashcard-back { transform: rotateY(0deg); } .flashcard-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px;} #current-card-info { font-size: 0.9em; color: #666; margin: 0 10px; } #flip-flashcard-btn { width:100%; margin-top:5px; } .add-flashcard-area { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee;} .add-flashcard-area div { margin-bottom: 10px; } .add-flashcard-area label { display: block; margin-bottom: 5px; font-weight: bold;} .add-flashcard-area input[type="text"], .add-flashcard-area textarea { width: calc(100% - 22px); padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; } .add-flashcard-area textarea { min-height: 60px; resize: vertical; } .flashcard-term-list-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; flex-grow: 1; display: flex; flex-direction: column; min-height: 100px; } .flashcard-term-list-container h4 { margin-top:0; margin-bottom: 10px; } #flashcard-term-list { list-style-type: none; padding: 0; margin: 0; overflow-y: auto; flex-grow: 1; border: 1px solid #eee; border-radius: 4px; } #flashcard-term-list li { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: baseline; gap: 15px; } #flashcard-term-list li:last-child { border-bottom: none; } #flashcard-term-list li:hover { background-color: #e9ecef; } #flashcard-term-list li span.term { font-weight: bold; flex-shrink: 0; margin-right: 10px;} #flashcard-term-list li span.definition { font-size: 0.9em; color: #555; text-align: right; flex-grow: 1; word-break: break-word; }
