My-Weekly-ToDo-List/src/app/globals.css
mARTin 3aad7b5371 feat: smooth navigation adjustment and time grid actions
- Implemented View Transition API for Week Navigation (simultaneous slide-out/slide-in).
- Added Task Action Icons (Notes, Delete) to Time Grid tasks.
- Refactored navigate function to use startViewTransition.
- Updated globals.css with View Transition keyframes and rules.
2026-02-01 14:21:41 +01:00

1636 lines
28 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Global Styles */
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: #f8fafc;
color: #1e293b;
line-height: 1.6;
transition: background-color 0.3s ease;
}
/* Typography */
h1 {
font-size: 2.25rem;
margin-bottom: 1rem;
color: #0f172a;
font-weight: 700;
}
h2 {
font-size: 1.875rem;
margin-bottom: 0.75rem;
color: #0f172a;
font-weight: 600;
}
h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: #1e293b;
font-weight: 600;
}
/* Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* Buttons */
.btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
font-size: 0.875rem;
}
.btn-primary {
background-color: #3b82f6;
color: white;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
background-color: #2563eb;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
background-color: #94a3b8;
color: white;
}
.btn-secondary:hover {
background-color: #64748b;
}
.btn-outline {
background-color: transparent;
border: 1px solid #cbd5e1;
color: #64748b;
}
.btn-outline:hover {
background-color: #f1f5f9;
}
/* Forms */
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.25rem;
font-weight: 500;
color: #334155;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid #cbd5e1;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-row {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.form-row .form-group {
flex: 1;
}
/* Task List */
.task-list {
list-style: none;
}
.task-list li {
margin-bottom: 0.5rem;
}
/* Task Item */
.task-item {
background: white;
border-radius: 8px;
padding: 1rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid #e2e8f0;
}
.task-item:hover {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
}
.task-item.completed {
opacity: 0.7;
}
.task-item h4 {
margin: 0 0 0.5rem 0;
color: #0f172a;
}
.task-item p {
margin: 0 0 0.5rem 0;
color: #64748b;
}
.time-indicator {
font-size: 0.875rem;
color: #3b82f6;
font-weight: 500;
}
/* Weekly Calendar View */
.weekly-calendar-view {
margin-top: 2rem;
}
.calendar-header {
margin-bottom: 1.5rem;
}
.week-navigation {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
}
.nav-button {
padding: 0.5rem 1rem;
background-color: #f1f5f9;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.25rem;
}
.nav-button:hover {
background-color: #e2e8f0;
transform: translateY(-1px);
}
.week-range {
font-weight: 600;
font-size: 1.125rem;
color: #1e293b;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1rem;
}
.day-column {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
border: 1px solid #e2e8f0;
transition: all 0.2s ease;
}
.day-column:hover {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.day-header {
background-color: #3b82f6;
color: white;
padding: 0.75rem;
text-align: center;
font-weight: 600;
}
.day-content {
padding: 1rem;
min-height: 200px;
}
/* Task Form */
.task-form {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
margin-bottom: 2rem;
border: 1px solid #e2e8f0;
}
.submit-button {
background-color: #22c55e;
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.2s ease;
width: 100%;
}
.submit-button:hover {
background-color: #16a34a;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Empty state */
.empty-state {
text-align: center;
padding: 2rem;
color: #64748b;
background-color: #f8fafc;
border-radius: 8px;
border: 1px solid #e2e8f0;
}
/* Calendar Events */
.calendar-event {
border-left-width: 4px;
border-left-style: solid;
margin-bottom: 0.75rem;
padding: 0.75rem;
border-radius: 0 6px 6px 0;
background-color: #f8fafc;
transition: all 0.2s ease;
}
.calendar-event:hover {
transform: translateX(2px);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* Auth Form */
.auth-form {
background: white;
border-radius: 8px;
padding: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
border: 1px solid #e2e8f0;
}
/* Loading States */
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, .3);
border-radius: 50%;
border-top-color: #3b82f6;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.form-row {
flex-direction: column;
gap: 0;
}
.calendar-grid {
grid-template-columns: repeat(1, 1fr);
}
.week-navigation {
flex-direction: column;
gap: 0.5rem;
}
.week-range {
font-size: 1rem;
}
h1 {
font-size: 1.75rem;
}
h2 {
font-size: 1.5rem;
}
.day-header {
font-size: 0.875rem;
}
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
body {
background-color: #0f172a;
color: #f8fafc;
}
h1,
h2,
h3 {
color: #f8fafc;
}
.task-item,
.task-form,
.day-column,
.calendar-settings,
.auth-form {
background-color: #1e293b;
border-color: #334155;
}
.form-group input,
.form-group textarea,
.form-group select {
background-color: #1e293b;
border-color: #334155;
color: #f8fafc;
}
.nav-button {
background-color: #334155;
color: #f8fafc;
}
.nav-button:hover {
background-color: #475569;
}
.empty-state {
background-color: #1e293b;
border-color: #334155;
color: #94a3b8;
}
.calendar-event {
background-color: #1e293b;
border-color: #334155;
}
}
/* ============================================
TEUXDEUX STYLES
============================================ */
:root {
--teuxdeux-teal: #009a9a;
--teuxdeux-bg: #ffffff;
--teuxdeux-text: #000000;
--teuxdeux-text-light: #a6a6a7;
--teuxdeux-border: #eeeeee;
--teuxdeux-completed: #cccccc;
--teuxdeux-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* TeuxDeux Main Container */
.teuxdeux-container {
min-height: 100vh;
background: var(--teuxdeux-bg);
font-family: var(--teuxdeux-font);
display: flex;
flex-direction: column;
}
/* TeuxDeux Header */
.teuxdeux-header {
position: sticky;
top: 0;
z-index: 100;
background: var(--teuxdeux-bg);
border-bottom: 1px solid var(--teuxdeux-border);
padding: 0.75rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.teuxdeux-logo {
font-size: 1.25rem;
font-weight: 600;
letter-spacing: 0.05em;
color: var(--teuxdeux-text);
}
.teuxdeux-logo sup {
color: var(--teuxdeux-teal);
font-size: 0.75rem;
}
.teuxdeux-nav {
display: flex;
align-items: center;
gap: 0.5rem;
}
.teuxdeux-nav-btn {
background: none;
border: none;
padding: 0.5rem;
cursor: pointer;
color: var(--teuxdeux-text-light);
font-size: 1rem;
transition: color 0.15s ease;
}
.teuxdeux-nav-btn:hover {
color: var(--teuxdeux-text);
}
/* Week Number Display */
.teuxdeux-week-number {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 0.9rem;
font-weight: 600;
color: var(--teuxdeux-teal);
text-transform: uppercase;
letter-spacing: 0.1em;
}
/* Slide Animations - Two-phase animation: slide out then slide in */
/* Slide OUT animations (current content exits) */
@keyframes slideOutLeft {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(-100px);
opacity: 0;
}
}
@keyframes slideOutRight {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(100px);
opacity: 0;
}
}
/* Slide IN animations (new content enters) */
@keyframes slideInFromLeft {
0% {
transform: translateX(-100px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideInFromRight {
0% {
transform: translateX(100px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
/* Going to next (content exits left, enters from right) */
.slide-out-left {
animation: slideOutLeft 0.25s ease-in forwards;
}
.slide-in-left {
animation: slideInFromRight 0.25s ease-out forwards;
}
/* Going to previous (content exits right, enters from left) */
.slide-out-right {
animation: slideOutRight 0.25s ease-in forwards;
}
.slide-in-right {
animation: slideInFromLeft 0.25s ease-out forwards;
}
/* TeuxDeux Day Columns Grid */
.teuxdeux-days-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
flex: 1;
min-height: 0;
}
.teuxdeux-days-grid.cols-1 {
grid-template-columns: 1fr;
}
.teuxdeux-days-grid.cols-3 {
grid-template-columns: repeat(3, 1fr);
}
.teuxdeux-days-grid.cols-5 {
grid-template-columns: repeat(5, 1fr);
}
.teuxdeux-days-grid.cols-7 {
grid-template-columns: repeat(7, 1fr);
}
/* TeuxDeux Day Column */
.teuxdeux-day-column {
border-left: 1px solid #eee;
display: flex;
flex-direction: column;
min-height: 400px;
max-height: calc(100vh - 200px);
overflow-y: auto;
}
.teuxdeux-day-column:first-child {
border-left: none;
}
/* Day Header */
.teuxdeux-day-header {
padding: 1rem 1rem 0.75rem;
text-align: left;
min-height: 60px;
box-sizing: border-box;
}
.teuxdeux-day-date {
font-size: 0.65rem;
color: var(--teuxdeux-text-light);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.25rem;
}
.teuxdeux-day-name {
font-size: 1.25rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--teuxdeux-text);
}
.teuxdeux-day-name.is-today {
color: var(--teuxdeux-teal);
}
/* Task List */
.teuxdeux-task-list {
list-style: none;
padding: 0;
margin: 0;
flex: 1;
}
.teuxdeux-task-item {
padding: 0.25rem 1rem;
display: flex;
align-items: flex-start;
gap: 0.5rem;
cursor: pointer;
position: relative;
transition: all 0.2s ease;
}
.teuxdeux-task-item:hover {
color: var(--teuxdeux-teal);
}
.teuxdeux-task-item.completed {
opacity: 0.6;
}
.teuxdeux-task-item.completed .teuxdeux-task-text {
text-decoration: line-through;
color: var(--teuxdeux-completed);
}
.teuxdeux-task-text {
flex: 1;
font-size: 0.9375rem;
line-height: 1.4;
color: var(--teuxdeux-text);
border: none;
outline: none;
background: transparent;
font-family: inherit;
resize: none;
min-height: 1.4em;
}
.teuxdeux-task-text.completed {
text-decoration: line-through;
color: var(--teuxdeux-completed);
}
.teuxdeux-task-text::placeholder {
color: var(--teuxdeux-text-light);
}
/* Task Input */
.teuxdeux-task-input {
padding: 0.5rem 1rem 0.5rem 2.5rem;
border-bottom: 1px solid var(--teuxdeux-border);
}
.teuxdeux-task-input input {
width: 100%;
border: none;
outline: none;
font-size: 0.9375rem;
font-family: inherit;
color: var(--teuxdeux-text);
background: transparent;
}
.teuxdeux-task-input input::placeholder {
color: var(--teuxdeux-text-light);
}
/* Someday Section */
.teuxdeux-someday {
background: #faf8f5;
/* Light beige paper color */
transition: max-height 0.3s ease;
position: relative;
}
.teuxdeux-someday.collapsed {
max-height: 40px;
overflow: hidden;
}
.teuxdeux-someday.expanded {
max-height: 400px;
overflow: auto;
}
.teuxdeux-someday-bar {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1.5rem;
position: relative;
}
.teuxdeux-someday-toggle {
background: none;
border: none;
font-size: 0.875rem;
color: var(--teuxdeux-text-light);
cursor: pointer;
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
padding: 0.5rem;
transition: transform 0.2s ease;
}
.teuxdeux-someday-toggle:hover {
color: var(--teuxdeux-text);
}
.teuxdeux-someday-title {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--teuxdeux-text-light);
}
.teuxdeux-someday-count {
font-size: 0.75rem;
color: var(--teuxdeux-text-light);
}
.teuxdeux-someday-add {
background: none;
border: none;
font-size: 1rem;
color: var(--teuxdeux-text-light);
cursor: pointer;
padding: 0.25rem 0.5rem;
}
.teuxdeux-someday-add:hover {
color: var(--teuxdeux-text);
}
/* Someday Lists Container */
.teuxdeux-someday-lists {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 0;
max-height: 300px;
overflow-y: auto;
}
.teuxdeux-someday-list {
border-right: 1px solid rgba(0, 0, 0, 0.05);
padding: 1rem;
min-height: 200px;
}
.teuxdeux-someday-list:last-child {
border-right: none;
}
.teuxdeux-someday-list-title {
font-size: 0.875rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--teuxdeux-text);
margin-bottom: 0.75rem;
}
/* TeuxDeux Footer */
.teuxdeux-footer {
position: sticky;
bottom: 0;
z-index: 100;
background: var(--teuxdeux-bg);
border-top: 1px solid var(--teuxdeux-border);
padding: 0.5rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.teuxdeux-view-toggle {
display: flex;
align-items: center;
gap: 0.25rem;
}
.teuxdeux-view-btn {
background: none;
border: none;
padding: 0.375rem 0.5rem;
font-size: 0.875rem;
color: var(--teuxdeux-text-light);
cursor: pointer;
border-radius: 4px;
transition: all 0.15s ease;
}
.teuxdeux-view-btn:hover {
background: #f5f5f5;
color: var(--teuxdeux-text);
}
.teuxdeux-view-btn.active {
color: var(--teuxdeux-text);
font-weight: 600;
}
.teuxdeux-footer-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.teuxdeux-sync-status {
font-size: 0.75rem;
color: var(--teuxdeux-text-light);
}
.teuxdeux-dark-toggle {
background: none;
border: none;
font-size: 1rem;
cursor: pointer;
color: var(--teuxdeux-text-light);
}
/* Calendar Events in Day Column */
.teuxdeux-calendar-event {
padding: 0.5rem 1rem;
border-left: 3px solid var(--teuxdeux-teal);
background: #f8fafa;
margin: 0.25rem 0.5rem;
border-radius: 0 4px 4px 0;
font-size: 0.875rem;
}
.teuxdeux-calendar-event-time {
font-size: 0.75rem;
color: var(--teuxdeux-teal);
font-weight: 500;
}
.teuxdeux-calendar-event-title {
color: var(--teuxdeux-text);
}
/* Drag and Drop States */
.teuxdeux-task-item.dragging {
opacity: 0.5;
}
.teuxdeux-day-column.drop-target {
background: #f0fafa;
}
/* Settings Modal */
.teuxdeux-settings-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.teuxdeux-settings-modal {
background: var(--teuxdeux-bg);
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.teuxdeux-settings-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--teuxdeux-border);
}
.teuxdeux-settings-title {
font-size: 1.25rem;
font-weight: 600;
}
.teuxdeux-settings-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--teuxdeux-text-light);
}
.teuxdeux-settings-content {
padding: 1.5rem;
}
/* Dark Mode */
.teuxdeux-container.dark-mode {
--teuxdeux-bg: #1a1a1a;
--teuxdeux-text: #f0f0f0;
--teuxdeux-text-light: #888888;
--teuxdeux-border: #333333;
--teuxdeux-completed: #666666;
}
.teuxdeux-container.dark-mode .teuxdeux-task-item:hover {
background-color: #2a2a2a;
}
.teuxdeux-container.dark-mode .teuxdeux-calendar-event {
background: #2a3a3a;
}
/* Responsive */
@media (max-width: 768px) {
.teuxdeux-days-grid {
grid-template-columns: 1fr !important;
}
.teuxdeux-someday-lists {
grid-template-columns: 1fr;
}
.time-column {
display: none;
}
}
/* ============================================
TIME GRID STYLES
============================================ */
.time-grid-controls {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.5rem 1.5rem;
background: var(--teuxdeux-bg);
border-bottom: 1px solid var(--teuxdeux-border);
font-size: 0.875rem;
}
.time-grid-controls label {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--teuxdeux-text-light);
cursor: pointer;
}
.time-grid-controls input[type="checkbox"] {
accent-color: var(--teuxdeux-teal);
}
.cell-duration-select {
padding: 0.25rem 0.5rem;
border: 1px solid var(--teuxdeux-border);
border-radius: 4px;
background: var(--teuxdeux-bg);
color: var(--teuxdeux-text);
font-size: 0.875rem;
cursor: pointer;
}
.time-grid-wrapper {
display: flex;
flex: 1;
overflow: hidden;
}
/* Time Column (Hours) */
.time-column {
width: 50px;
flex-shrink: 0;
border-right: 1px solid var(--teuxdeux-border);
background: var(--teuxdeux-bg);
display: flex;
flex-direction: column;
}
.time-column-header {
padding: 1rem 0.5rem 0.75rem;
min-height: 60px;
box-sizing: border-box;
}
.time-column-slots {
flex: 1;
overflow-y: auto;
}
.time-slot-label {
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding: 0 0.25rem;
font-size: 0.65rem;
color: var(--teuxdeux-text-light);
box-sizing: border-box;
position: relative;
}
.time-slot-label.hour-start {
border-bottom: 1px solid var(--teuxdeux-border);
font-weight: 500;
color: var(--teuxdeux-text);
}
.time-slot-label span {
transform: translateY(50%);
background: var(--teuxdeux-bg);
padding: 0 2px;
z-index: 1;
}
/* Time Slots Container */
.time-slots-container {
flex: 1;
overflow-y: auto;
}
.time-slot {
position: relative;
transition: background-color 0.15s ease;
padding: 0px 8px;
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
cursor: text;
}
.time-slot.hour-start {
border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.time-slot:hover {
background: rgba(0, 0, 0, 0.01);
}
.time-slot.active {
background: rgba(0, 154, 154, 0.03);
}
.time-slot.drop-target:hover {
background: rgba(0, 154, 154, 0.08);
}
/* Slot Input Form */
.slot-input-form {
width: 100%;
}
.slot-input {
width: 100%;
border: none;
background: transparent;
font-size: 0.875rem;
font-family: inherit;
padding: 2px 0;
outline: none;
caret-color: var(--teuxdeux-teal);
}
.time-slot-task {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 4px 8px;
background: transparent;
font-size: 0.875rem;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: all 0.2s ease;
position: relative;
}
.time-slot-task:hover {
color: var(--teuxdeux-teal);
}
.time-slot-task:active {
cursor: grabbing;
}
.time-slot-task.dragging {
opacity: 0.5;
}
.time-slot-task.completed {
text-decoration: line-through;
color: var(--teuxdeux-completed);
opacity: 0.6;
}
/* Make day columns scrollable when using time grid */
.time-grid-wrapper .teuxdeux-days-grid {
flex: 1;
overflow: hidden;
}
.time-grid-wrapper .teuxdeux-day-column {
max-height: none;
min-height: auto;
display: flex;
flex-direction: column;
}
.time-grid-wrapper .teuxdeux-day-header {
flex-shrink: 0;
}
.time-grid-wrapper .time-slots-container {
overflow-y: auto;
}
/* Calendar connect button */
.calendar-connect-btn {
flex: 1;
padding: 1rem;
border: 1px solid var(--teuxdeux-border);
border-radius: 8px;
background: var(--teuxdeux-bg);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-size: 0.9rem;
transition: all 0.15s ease;
}
.calendar-connect-btn:hover {
border-color: var(--teuxdeux-teal);
background: rgba(0, 154, 154, 0.05);
}
.calendar-connect-btn span {
font-size: 1.25rem;
}
/* Draggable task items */
.teuxdeux-task-item {
cursor: grab;
}
.teuxdeux-task-item:active {
cursor: grabbing;
}
.teuxdeux-task-item.dragging {
opacity: 0.4;
background: rgba(0, 154, 154, 0.1);
}
/* Dark mode additions for time grid */
.teuxdeux-container.dark-mode .cell-duration-select {
background: #2a2a2a;
border-color: var(--teuxdeux-border);
color: var(--teuxdeux-text);
}
.teuxdeux-container.dark-mode .time-slot {
border-bottom-color: #2a2a2a;
}
.teuxdeux-container.dark-mode .time-slot.hour-start {
border-bottom-color: var(--teuxdeux-border);
}
.teuxdeux-container.dark-mode .time-slot.drop-target:hover {
background: rgba(0, 154, 154, 0.15);
}
.teuxdeux-container.dark-mode .time-slot-task {
background: rgba(0, 154, 154, 0.2);
}
.teuxdeux-container.dark-mode .calendar-connect-btn {
background: #2a2a2a;
}
.teuxdeux-container.dark-mode .calendar-connect-btn:hover {
background: rgba(0, 154, 154, 0.15);
}
/* ============================================
AUTH PAGES STYLES (TeuxDeux-style)
============================================ */
.teuxdeux-auth-container {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
padding: 2rem;
}
.teuxdeux-auth-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
padding: 3rem;
width: 100%;
max-width: 380px;
text-align: center;
}
.teuxdeux-auth-logo {
font-size: 1.75rem;
font-weight: 700;
color: #1a1a1a;
letter-spacing: 0.02em;
margin-bottom: 0.5rem;
}
.teuxdeux-auth-tagline {
color: #666;
font-size: 0.9rem;
margin-bottom: 2rem;
}
.teuxdeux-auth-error {
background: #fef2f2;
border: 1px solid #fecaca;
color: #dc2626;
padding: 0.75rem 1rem;
border-radius: 6px;
font-size: 0.875rem;
margin-bottom: 1.5rem;
}
.teuxdeux-auth-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.teuxdeux-auth-field {
width: 100%;
}
.teuxdeux-auth-input {
width: 100%;
padding: 0.875rem 1rem;
border: 1px solid #e0e0e0;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
outline: none;
}
.teuxdeux-auth-input:focus {
border-color: var(--teuxdeux-teal, #009a9a);
box-shadow: 0 0 0 3px rgba(0, 154, 154, 0.1);
}
.teuxdeux-auth-input::placeholder {
color: #999;
}
.teuxdeux-auth-button {
width: 100%;
padding: 0.875rem 1rem;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.teuxdeux-auth-button.primary {
background: var(--teuxdeux-teal, #009a9a);
color: white;
border: none;
}
.teuxdeux-auth-button.primary:hover {
background: #008888;
}
.teuxdeux-auth-button.primary:disabled {
background: #ccc;
cursor: not-allowed;
}
.teuxdeux-auth-button.google {
background: white;
color: #333;
border: 1px solid #e0e0e0;
}
.teuxdeux-auth-button.google:hover {
background: #f9f9f9;
border-color: #ccc;
}
.teuxdeux-auth-button.google:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.teuxdeux-auth-button .google-icon {
flex-shrink: 0;
}
.teuxdeux-auth-divider {
display: flex;
align-items: center;
margin: 1.5rem 0;
}
.teuxdeux-auth-divider::before,
.teuxdeux-auth-divider::after {
content: '';
flex: 1;
height: 1px;
background: #e0e0e0;
}
.teuxdeux-auth-divider span {
padding: 0 1rem;
color: #999;
font-size: 0.875rem;
}
.teuxdeux-auth-links {
margin-top: 2rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.teuxdeux-auth-link {
color: var(--teuxdeux-teal, #009a9a);
text-decoration: none;
font-size: 0.875rem;
transition: color 0.15s ease;
}
.teuxdeux-auth-link:hover {
color: #008888;
text-decoration: underline;
}
.teuxdeux-auth-link-divider {
color: #ccc;
}
.teuxdeux-auth-text {
color: #666;
font-size: 0.875rem;
}
.teuxdeux-auth-footer {
margin-top: 2rem;
color: #999;
font-size: 0.8rem;
font-style: italic;
}
/* --- FIXES & NEW FEATURES --- */
/* Fix 1: Animation Overrides (Single-phase slide-in to prevent blank flash) */
@keyframes slideInFromLeft {
0% {
transform: translateX(-50px);
opacity: 0.5;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideInFromRight {
0% {
transform: translateX(50px);
opacity: 0.5;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
.slide-in-left {
animation: slideInFromRight 0.5s ease-out forwards;
}
.slide-in-right {
animation: slideInFromLeft 0.5s ease-out forwards;
}
/* Fix 2: Task Hover Actions */
.teuxdeux-task-item,
.time-slot-task {
/* Ensure positioning context for absolute actions if needed, though flex is used */
position: relative;
}
.teuxdeux-task-item .task-actions,
.time-slot-task .task-actions {
display: flex;
align-items: center;
gap: 2px;
opacity: 0;
transition: opacity 0.2s ease;
margin-left: auto;
/* Push to far right */
padding-left: 8px;
}
.teuxdeux-task-item:hover .task-actions,
.time-slot-task:hover .task-actions {
opacity: 1;
}
.task-action-btn {
background: none;
border: none;
cursor: pointer;
color: #999;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.task-action-btn:hover {
background-color: rgba(0, 0, 0, 0.05);
color: #333;
}
.task-action-btn.delete:hover {
color: #d32f2f;
background-color: rgba(211, 47, 47, 0.1);
}
/* Notes Modal */
.teuxdeux-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(2px);
}
.teuxdeux-modal-content {
background: white;
padding: 24px;
border-radius: 12px;
width: 90%;
max-width: 500px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
}
.teuxdeux-modal-content h3 {
margin: 0 0 16px 0;
font-size: 1.2rem;
font-weight: 600;
}
.teuxdeux-notes-editor {
width: 100%;
height: 200px;
margin-bottom: 16px;
padding: 12px;
border: 1px solid #e0e0e0;
border-radius: 6px;
font-family: inherit;
resize: vertical;
line-height: 1.5;
}
.teuxdeux-modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
}
.teuxdeux-btn {
padding: 8px 16px;
border-radius: 6px;
border: none;
cursor: pointer;
font-weight: 500;
transition: background 0.2s;
}
.teuxdeux-btn-secondary {
background: #f5f5f5;
color: #333;
}
.teuxdeux-btn-secondary:hover {
background: #e0e0e0;
}
.teuxdeux-btn-primary {
background: #000;
color: #fff;
}
.teuxdeux-btn-primary:hover {
background: #333;
}
/* --- VIEW TRANSITION ANIMATION (TeuxDeux-like) --- */
.teuxdeux-days-grid {
view-transition-name: week-grid;
}
@keyframes slideOutToLeft {
to {
transform: translateX(-100%);
opacity: 0.8;
}
}
@keyframes slideInFromRight {
from {
transform: translateX(100%);
}
to {
transform: translateX(0);
}
}
@keyframes slideOutToRight {
to {
transform: translateX(100%);
opacity: 0.8;
}
}
@keyframes slideInFromLeft {
from {
transform: translateX(-100%);
}
to {
transform: translateX(0);
}
}
::view-transition-group(week-grid) {
animation-duration: 0.5s;
animation-timing-function: ease-in-out;
}
/* Next Week: Old slides Left, New enters from Right */
[data-transition-direction="next"]::view-transition-old(week-grid) {
animation: slideOutToLeft 0.5s ease-in-out both;
mix-blend-mode: normal;
}
[data-transition-direction="next"]::view-transition-new(week-grid) {
animation: slideInFromRight 0.5s ease-in-out both;
mix-blend-mode: normal;
}
/* Prev Week: Old slides Right, New enters from Left */
[data-transition-direction="prev"]::view-transition-old(week-grid) {
animation: slideOutToRight 0.5s ease-in-out both;
mix-blend-mode: normal;
}
[data-transition-direction="prev"]::view-transition-new(week-grid) {
animation: slideInFromLeft 0.5s ease-in-out both;
mix-blend-mode: normal;
}