diff --git a/src/app/globals.css b/src/app/globals.css index 3643d6a..afe86f2 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -449,7 +449,7 @@ h3 { --weekly-bg: #ffffff; --weekly-text: #000000; --weekly-text-light: #a6a6a7; - --weekly-border: #eeeeee; + --weekly-border: #cccccc; --weekly-completed: #cccccc; --weekly-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; @@ -635,6 +635,7 @@ h3 { min-height: 400px; max-height: calc(100vh - 200px); overflow-y: auto; + overflow-x: hidden; } .weekly-day-column:first-child { @@ -1726,6 +1727,7 @@ h3 { .time-grid-wrapper .time-slots-container { overflow-y: auto; + overflow-x: hidden; } /* All-Day Events Section */ @@ -2579,3 +2581,150 @@ h3 { font-size: 0.7rem; opacity: 0.9; } + +/* Header Icons */ +.weekly-btn-icon { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + padding: 0; + border: 1px solid #e0e0e0; + background-color: white; + color: #555; + border-radius: 6px; + cursor: pointer; + transition: all 0.2s ease; +} + +.weekly-btn-icon:hover { + background-color: #f3f4f6; + border-color: #d1d5db; + color: #111; +} + +.weekly-btn-icon.active { + background-color: #e5e7eb; + border-color: #9ca3af; + color: #000; +} + +.dark-mode .weekly-btn-icon { + background-color: #1f2937; + border-color: #374151; + color: #9ca3af; +} + +.dark-mode .weekly-btn-icon:hover { + background-color: #374151; + color: #e5e7eb; +} + +.dark-mode .weekly-btn-icon.active { + background-color: #4b5563; + color: #fff; +} + +/* Header Hover Reveal */ +.group:hover .transition-opacity { + opacity: 1; +} + +.group .transition-opacity { + opacity: 0; +} + +/* List View (formerly Grid/App View - no vertical lines) */ +.list-view.time-grid-off .weekly-day-column { + border-right: none !important; +} + +/* Calendar View (Google Calendar Style - vertical lines) */ +.calendar-view.time-grid-on .weekly-day-column { + border-right: 1px solid #e0e0e0; + margin: 0 !important; +} +.dark-mode .calendar-view.time-grid-on .weekly-day-column { + border-right: 1px solid #333; +} + +/* Simple View (Original Style with Spacing) */ +.simple-view .weekly-day-column { + border-left: 0px !important; + margin: 0 10px !important; + overflow-x: hidden !important; +} + +.simple-view .time-column { + border-right: 0px !important; +} + +.simple-view .time-slot-event { + left: 0 !important; + right: 0 !important; +} + + + +/* Scrollbar Hiding for All-Day Events */ +.all-day-events-column { + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE and Edge */ +} + +.all-day-events-column::-webkit-scrollbar { + display: none; /* Chrome, Safari, Opera */ +} + +/* Responsive Design */ +@media (max-width: 768px) { + /* Mobile/Tablet adjustment */ + .weekly-header { + flex-direction: column; + height: auto; + padding: 10px; + gap: 10px; + } + + .weekly-header > div { + width: 100%; + justify-content: center; + } + + /* Fix overlap on mobile by removing absolute positioning */ + .weekly-header .absolute { + position: static !important; + transform: none !important; + left: auto !important; + margin: 5px 0; + } + + .weekly-btn-icon { + width: 36px; + height: 36px; + } + + /* Stack days vertically on mobile */ + .list-view .weekly-days-grid { + grid-template-columns: 1fr !important; + overflow-y: auto; + } + + .time-grid-wrapper { + flex-direction: column; + height: calc(100vh - 120px); /* Adjust for header */ + } + + .weekly-day-column { + min-height: auto; + border-right: none !important; + border-bottom: 1px solid #ccc; + } + + /* Ensure sidebar is scrollable and accessible */ + .weekly-settings-sidebar { + width: 100%; + max-width: 100vw; + } +} diff --git a/src/components/DatePicker.tsx b/src/components/DatePicker.tsx index 8c9633f..fcfb4d9 100644 --- a/src/components/DatePicker.tsx +++ b/src/components/DatePicker.tsx @@ -193,7 +193,7 @@ export default function DatePicker({ selected, onSelect, onClose, language = 'en margin-top: 8px; background: white; border-radius: 8px; - border-bottom: 5px solid #00ceb0; /* TeuxDeuxish Teal/Green */ + border-bottom: 5px solid #00ceb0; /* Weekly Teal/Green */ box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 20px; z-index: 1000; diff --git a/src/components/TaskItem.tsx b/src/components/TaskItem.tsx index 114d9a6..9ba3bec 100644 --- a/src/components/TaskItem.tsx +++ b/src/components/TaskItem.tsx @@ -92,7 +92,7 @@ export default function TaskItem({ task, onToggleComplete, onDelete, onEdit, onT