* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #2b3441;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header-section {
    background: #3c4452;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #4a5568;
    text-align: center;
}

.timer {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 4em;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
}

.task-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #4a5568;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 300;
    padding: 10px 0;
    text-align: center;
    outline: none;
    width: 80%;
}

.task-input::placeholder {
    color: #6b7280;
}

.main-layout {
    display: grid;
    grid-template-columns: 120px 1fr 350px;
    gap: 20px;
    align-items: start;
}

.week-panel {
    background: #3c4452;
    border-radius: 20px;
    padding: 20px 15px;
    border: 2px solid #4a5568;
}

.week-panel h3 {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.week-stat {
    background: #4a5568;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.week-dates {
    font-size: 0.7em;
    color: #9ca3af;
    margin-bottom: 5px;
}

.week-hours {
    font-size: 1.2em;
    font-weight: bold;
    color: #60a5fa;
}

.calendar-section {
    background: #3c4452;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #4a5568;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h2 {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: minmax(110px, auto);
    gap: 3px;
    background: transparent;
}

.calendar-day-header {
    background: transparent !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    font-size: 0.8em !important;
    padding: 10px 5px !important;
    text-align: center !important;
    font-weight: 500 !important;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day {
    background: #4a5568;
    min-height: 100px;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.2s;
    height: 100%;
}

.calendar-day:hover {
    background: #545d70;
    transform: scale(1.02);
}

.calendar-day.other-month {
    background: #3a4150;
    opacity: 0.5;
}

.calendar-day.today {
    background: #4a5568;
    border: 2px solid #60a5fa;
}

.day-number {
    color: #e0e0e0;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 500;
}

.task-item {
    background: #60a5fa;
    color: white;
    padding: 4px 6px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    word-break: break-word;
    line-height: 1.4;
}

.task-item:hover {
    background: #3b82f6;
}

.task-item:nth-child(odd) {
    background: #f59e0b;
}

.task-item:nth-child(odd):hover {
    background: #d97706;
}

.task-summary {
    background: #3f4a5b;
    color: #cbd5f5;
    border: 1px dashed #60a5fa;
    text-align: center;
    font-weight: 500;
}

.task-summary:hover {
    background: #4a5669;
}

.task-hidden {
    background: #7fb3ff;
    color: #1f2937;
}

.task-hidden:hover {
    background: #6a9fee;
}

.task-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #4a5568;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-input {
    background: #3c4452;
    border: 2px solid #4a5568;
    border-radius: 25px;
    padding: 10px 20px;
    color: #e0e0e0;
    font-size: 0.9em;
    width: 100%;
}

.filter-input::placeholder {
    color: #6b7280;
}

.tags-section {
    background: #3c4452;
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #4a5568;
}

.tags-section h3 {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tag-input-container {
    position: relative;
}

.tag-input-field {
    width: 100%;
    background: #4a5568;
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: #e0e0e0;
    font-size: 0.9em;
    outline: none;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4a5568;
    border: 2px solid #5a6578;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 100;
}

.tag-suggestions option {
    padding: 8px;
    cursor: pointer;
}

.tag-suggestions option:hover {
    background: #5a6578;
}

.tag-display {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag-badge {
    background: #60a5fa;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.notes-section {
    background: #3c4452;
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #4a5568;
}

.notes-section h3 {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.notes-area {
    background: #4a5568;
    border: none;
    color: #e0e0e0;
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.6;
    outline: none;
}

.notes-area::placeholder {
    color: #6b7280;
}

.notes-section .btn {
    width: 100%;
    margin-top: 15px;
}

.break-info {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1f2937;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    z-index: 100;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary { 
    background: #60a5fa; 
    color: white;
}

.btn-success { 
    background: #34d399; 
    color: white;
}

.btn-warning { 
    background: #fbbf24; 
    color: #1f2937;
}

.btn-danger { 
    background: #f87171; 
    color: white;
}

.btn-info { 
    background: #60a5fa; 
    color: white;
}

.btn-nav { 
    background: transparent; 
    color: #9ca3af;
    padding: 8px 12px;
}

.btn-nav:hover {
    background: #4a5568;
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-large {
    font-size: 1em;
    padding: 16px 40px;
    display: inline-block;
    background: #60a5fa;
}

.btn-large::before {
    content: "▶";
    margin-right: 10px;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #3c4452;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 500px;
    max-width: 90%;
    border: 2px solid #4a5568;
}

.close {
    color: #9ca3af;
    float: right;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    margin-top: 20px;
}

.modal-body .task-input {
    background: #4a5568;
    padding: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    width: 100%;
    margin-bottom: 15px;
}

.modal-body .tag-input {
    background: #4a5568;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    border: none;
    color: #e0e0e0;
}

.modal-body .notes-area {
    background: #4a5568;
    padding: 12px;
    border-radius: 8px;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    color: #9ca3af;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.day-modal {
    max-width: 600px;
}

.day-modal h3 {
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.day-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-task-item {
    background: #4a5568;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #5c6678;
}

.day-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #e0e0e0;
    font-weight: 500;
}

.day-task-tags {
    font-size: 0.8em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.day-task-notes {
    font-size: 0.85em;
    color: #cbd5e1;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.day-task-action {
    align-self: flex-end;
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 100px 1fr;
    }
    
    .right-panel {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    
    .tags-section, .notes-section {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .week-panel {
        display: none;
    }
    
    .right-panel {
        flex-direction: column;
    }
    
    .timer {
        font-size: 3em;
    }
    
    .calendar-day {
        min-height: 80px;
    }
}
