/* filepath: c:\Users\harry\Desktop\ClassSlate-master\styles\components\tools\timetable.css */
/* Timetable Tool Container */
#timetable-tool {
    min-width: 300px;
    width: 350px; /* Restored to original width */
    max-height: 85vh; /* Increased slightly for better space usage */
    min-height: 300px; /* Ensure minimum usable height */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Changed back to hidden to contain content */
    /* Remove position: relative here as it's now handled by the draggable class */
    padding-bottom: 0; /* Remove bottom padding in the tool container */
}

/* Class Name Display */
#timetable-class-name {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #444;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
    padding: 0 10px;
}

/* Timetable Container */
#timetable-container {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Changed back to hidden to enforce height constraints */
    margin-top: -10px; /* Pull content up to remove gap */
    margin-bottom: 0; /* Reset to normal margin */
    padding-bottom: 0; /* Remove bottom padding completely */
    background-color: white;
    position: relative; /* Keep relative positioning for internal elements */
    min-height: 0; /* Allow flex shrinking */
}

/* No class state */
#timetable-container.no-class {
    background: rgba(0,0,0,0.04);
    border-style: dashed;
}

/* No class message */
.no-class-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    color: #666;
    font-size: 1.1em;
    text-align: center;
    background-color: rgba(0,0,0,0.02);
    border-radius: 6px;
    margin: 15px;
}

.no-class-message i {
    margin-right: 8px;
    color: #4CAF50;
}

/* Timetable actions container */
.timetable-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 10px 15px 0 15px;
}

.date-display {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    margin-right: 5px;
    text-align: right;
}

.full-date {
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
}

.short-date {
    font-size: 0.9em;
    color: #888;
}

/* Dropdown Menu */
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0,0,0,0.05);
}

.icon-button:active {
    background-color: rgba(0,0,0,0.1);
}

.icon-button i {
    color: #555;
    font-size: 1em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 150px;
    z-index: 10;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-menu.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.menu-item {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item:active {
    background-color: #e8e8e8;
}

.menu-item i {
    color: #555;
    width: 16px;
    text-align: center;
}

/* Entries list */
#timetable-entries {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding: 5px 5px 10px 5px; /* Increased bottom padding to match top gap */
    position: relative;
    margin-bottom: 0;
    min-height: 0; /* Allow flex shrinking */
    max-height: calc(85vh - 120px); /* Ensure entries don't exceed container minus header/actions space */
    
    /* Ensure smooth scrolling and proper scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    /* Touch scrolling optimization */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Webkit scrollbar styling for better appearance */
#timetable-entries::-webkit-scrollbar {
    width: 6px;
}

#timetable-entries::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

#timetable-entries::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#timetable-entries::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Individual entry styling - updated for interactions */
.timetable-entry {
    display: flex;
    margin: 5px 0; /* Restored to original spacing */
    padding: 12px 15px; /* Restored to original padding */
    border-radius: 6px;
    background-color: #e9e9e9;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    cursor: grab;
    /* Enhanced touch targets for interactive whiteboards */
    touch-action: none; /* Prevent default touch behaviors during drag */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Minimum touch target size for accessibility */
    min-height: 44px;
}

.timetable-entry:last-child {
    margin-bottom: 0;
}

.timetable-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.timetable-entry:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    /* Enhanced active state for touch devices */
    background-color: rgba(0, 0, 0, 0.05);
}

.entry-time {
    font-weight: bold;
    width: 60px;
    color: #333;
}

.entry-activity {
    flex-grow: 1;
    padding-left: 10px;
}

/* Show edit indicator on hover for entries */
.entry-edit-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    background: transparent;
    padding: 4px;
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
}

.timetable-entry:hover .entry-edit-icon {
    opacity: 1;
}

.entry-edit-icon:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Edit icon position - no special adjustment needed since checkmark was removed */
/* .timetable-entry.completed .entry-edit-icon {
    right: 28px;
} */

/* Hide the old pseudo-element pencil icon */
.timetable-entry::after {
    display: none;
}

/* Current activity highlight */
.current-activity {
    box-shadow: 0 0 0 2px #4caf50, 0 2px 8px rgba(0,0,0,0.2);
    transform: scale(1.02);
    margin-left: 2px;
    margin-right: 2px;
}

.current-activity::before {
    content: '• Now';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.75em;
    color: #4CAF50;
    font-weight: bold;
}

.current-activity:hover::after {
    opacity: 0; /* Hide edit icon when "Now" badge is displayed */
}

/* Completed activity styling */
.timetable-entry.completed {
    opacity: 0.65;
    background-color: #bdbdbd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transform: none;
}

.timetable-entry.completed:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.timetable-entry.completed .entry-activity {
    text-decoration: line-through;
    color: #555;
}

.timetable-entry.completed .entry-time {
    color: #555;
}

/* Remove the checkmark icon for completed activities to avoid visual clutter */
/* .timetable-entry.completed::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.75em;
    color: #555;
} */

/* Floating action button for quick add - mobile friendly */
.floating-action-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.floating-action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.floating-action-button:active {
    transform: scale(0.95);
}

.floating-action-button i {
    font-size: 1.5em;
}

/* Action button for adding entries */
.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.action-button i {
    font-size: 0.85em;
}

.action-button:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Controls for editing entries */
.entry-controls {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.edit-entry,
.delete-entry {
    background: none;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.edit-entry:hover {
    background-color: rgba(33, 150, 243, 0.2);
}

.delete-entry:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

.edit-entry i {
    color: #2196F3;
}

.delete-entry i {
    color: #F44336;
}

/* Footer controls */
#timetable-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

/* Button styles specific to timetable */
#edit-timetable-button {
    background-color: #2196F3;
}

#add-timetable-entry {
    background-color: #4CAF50;
    display: none;
}

#reset-timetable {
    background-color: #f44336;
    display: none;
}

#save-timetable {
    background-color: #4CAF50;
    display: none;
}

/* Button hover states */
#edit-timetable-button:hover:not(:disabled) {
    background-color: #0b7dda;
}

#add-timetable-entry:hover:not(:disabled) {
    background-color: #45a049;
}

#reset-timetable:hover:not(:disabled) {
    background-color: #d32f2f;
}

#save-timetable:hover:not(:disabled) {
    background-color: #45a049;
}

/* Disabled state */
#edit-timetable-button:disabled,
#add-timetable-entry:disabled,
#reset-timetable:disabled,
#save-timetable:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

/* Modal styling for entry edit */
#timetable-entry-modal .modal-content {
    max-width: 350px;
    padding: 15px;
    margin: 15% auto;
}

#timetable-entry-modal h2 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: #444;
    text-align: center;
}

#entry-form {
    display: flex;
    flex-direction: column;
}

#entry-form label {
    margin: 5px 0 2px 0;
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
}

#time-input-container {
    margin-bottom: 5px;
}

#entry-form input[type="time"],
#entry-form input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 2px 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#entry-form .color-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

#entry-form input[type="color"] {
    width: 50px;
    height: 35px;
    padding: 0;
    margin: 2px 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
}

#entry-form .modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

#entry-form .modal-actions button {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.95rem;
    min-width: 80px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#entry-form .modal-actions button:hover {
    background-color: #0d8aee;
    transform: translateY(-1px);
}

#entry-form .modal-actions button:active {
    transform: translateY(0px);
}

#entry-form .modal-actions button.close {
    background-color: #e0e0e0;
    color: #333;
}

#entry-form .modal-actions button.close:hover {
    background-color: #d0d0d0;
}

/* Batch edit modal styling */
.batch-edit-modal {
    max-width: 600px;
    width: 90%;
}

.batch-edit-instructions {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.batch-edit-instructions code {
    background-color: rgba(0, 123, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

#batch-edit-textarea {
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#batch-edit-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.batch-edit-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.batch-edit-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    cursor: pointer;
}

.batch-edit-options input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
}

/* Main timeline */
.timeline-container {
    position: relative;
    margin-top: 20px;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    z-index: 2;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    #timetable-tool {
        width: 300px;
    }
    
    .entry-time {
        width: 50px;
        font-size: 0.9em;
    }
}

/* Title container to group title and menu button */
.tool-title .title-container {
    display: flex;
    align-items: center;
}

/* Title with menu container - keeps title and menu button together */
.title-with-menu {
    display: flex;
    align-items: center;
}

/* Timetable menu button */
#timetable-menu-button {
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Use the same technique as resize buttons for a perfect circular hover effect */
#timetable-menu-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s;
}

#timetable-menu-button:hover::before {
    background-color: rgba(33, 150, 243, 0.1);
}

#timetable-menu-button i {
    font-size: 1.1em;
    color: #2196F3;
    position: relative;
    z-index: 1;
}

/* Emoji selector styling */
.emoji-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.selected-emoji {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.emoji-picker-button {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.emoji-picker-button:hover {
    background-color: #0d8aee;
}

.emoji-picker {
    position: absolute;
    width: 280px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    margin-top: -80px;
    margin-left: 50px;
    z-index: 1050;
}

.emoji-picker.hidden {
    display: none;
}

.emoji-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emoji-option {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.emoji-option:hover {
    background-color: #f0f0f0;
}

/* Emoji in entries display */
.entry-emoji {
    font-size: 1.2em;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.entry-activity-text {
    display: inline;
    vertical-align: middle;
}

.emoji-buttons {
    display: flex;
    gap: 8px;
}

.emoji-remove-button {
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.emoji-remove-button:hover {
    background-color: #c62828;
}

/* Drag and drop styling */
.timetable-entry.dragging {
    opacity: 0.6;
    cursor: grabbing;
    position: relative;
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    /* Touch-specific improvements for smoother interaction */
    transition: none; /* Remove transitions during drag for smoother touch response */
    touch-action: none; /* Prevent any touch gestures during drag */
}

.timetable-entry.drop-target {
    border: 2px dashed #2196F3;
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(33, 150, 243, 0.3);
    /* Touch feedback improvements */
    background-color: rgba(33, 150, 243, 0.1) !important;
    transition: all 0.2s ease; /* Smooth transition for drop target highlighting */
}

/* Custom drag image */
.drag-image {
    width: 300px;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Compact mode styling */
.compact-mode {
    max-height: 70vh; /* Reduce max height in compact mode for better fit on smaller screens */
    width: 300px; /* Make width smaller in compact mode */
}

.compact-mode #timetable-entries {
    padding: 2px; /* Reduce padding in compact mode */
    max-height: calc(70vh - 100px); /* Ensure compact entries don't exceed container */
}

/* Compact entry styling */
.timetable-entry.compact {
    margin: 3px 0; /* Reduce vertical spacing */
    padding: 6px 10px; /* Reduce padding */
    min-height: 30px; /* Set minimum height */
}

.timetable-entry.compact .entry-time {
    font-size: 0.85em; /* Smaller font size for time */
    width: 45px; /* Reduce width for time */
}

.timetable-entry.compact .entry-activity {
    font-size: 0.9em; /* Smaller font size for activity */
}

.timetable-entry.compact .entry-emoji {
    font-size: 1em; /* Smaller emoji size */
    margin-right: 5px; /* Less margin */
}

/* Adjust current activity indicators in compact mode (removed completed styling) */
.timetable-entry.compact.current-activity::before {
    font-size: 0.7em; /* Smaller indicators */
    top: 2px;
    right: 3px;
}

.timetable-entry.compact:hover {
    transform: translateY(-1px); /* Smaller hover effect */
}

/* Show the edit icon in a better position for compact entries */
.timetable-entry.compact::after {
    top: 6px;
    right: 6px;
}

/* Compact mode completed activities - no special positioning needed since checkmark was removed */
/* .timetable-entry.compact.completed:hover::after {
    right: 16px;
} */

/* Adjust current activity styling in compact mode */
.timetable-entry.compact.current-activity {
    transform: scale(1.01); /* Smaller scale effect */
    margin-left: 2px;
    margin-right: 2px;
}

/* Batch Edit Table Styles */
.batch-edit-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#batch-edit-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

#batch-edit-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
    position: sticky;
    top: 0;
    z-index: 10;
}

#batch-edit-table td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.batch-edit-row:hover {
    background-color: #f8f9fa;
}

/* Batch edit input styling */
.batch-time-input,
.batch-activity-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.batch-time-input {
    width: 80px;
    min-width: 80px;
}

.batch-time-input:focus,
.batch-activity-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Batch edit emoji cell */
.batch-emoji-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.batch-emoji-display {
    font-size: 1.2em;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-emoji-button,
.batch-emoji-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.batch-emoji-button:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.batch-emoji-remove:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Batch edit actions */
.batch-edit-actions {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.add-row-button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, transform 0.1s;
}

.add-row-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.add-row-button:active {
    transform: translateY(0);
}

/* Batch row delete button */
.batch-row-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #dc3545;
}

.batch-row-delete:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Batch emoji picker styling */
.batch-emoji-picker {
    position: fixed;
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
}

.batch-emoji-picker.hidden {
    display: none;
}

.batch-emoji-picker .emoji-options {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.batch-emoji-picker .emoji-option {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.batch-emoji-picker .emoji-option:hover {
    background-color: #f0f0f0;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-height: 900px) {
    #timetable-tool {
        max-height: 75vh; /* Reduce height on smaller screens */
    }
    
    #timetable-entries {
        max-height: calc(75vh - 120px);
    }
    
    .compact-mode {
        max-height: 65vh;
    }
    
    .compact-mode #timetable-entries {
        max-height: calc(65vh - 100px);
    }
}

@media screen and (max-height: 768px) {
    #timetable-tool {
        max-height: 70vh; /* Further reduce on very small screens */
    }
    
    #timetable-entries {
        max-height: calc(70vh - 120px);
    }
    
    .compact-mode {
        max-height: 60vh;
    }
    
    .compact-mode #timetable-entries {
        max-height: calc(60vh - 100px);
    }
    
    /* Make entries more compact on small screens */
    .timetable-entry {
        margin: 3px 0;
        padding: 8px 12px;
    }
}

@media screen and (max-height: 600px) {
    #timetable-tool {
        max-height: 65vh; /* Maximum compression for very small screens */
    }
    
    #timetable-entries {
        max-height: calc(65vh - 110px);
    }
    
    .compact-mode {
        max-height: 55vh;
    }
    
    .compact-mode #timetable-entries {
        max-height: calc(55vh - 90px);
    }
    
    /* Ultra-compact entries for very small screens */
    .timetable-entry {
        margin: 2px 0;
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .timetable-entry .entry-time {
        font-size: 0.8em;
    }
    
    .timetable-entry .entry-activity {
        font-size: 0.85em;
    }
}