* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Varela Round', sans-serif;
    font-weight: 800;
}

body {
    background: #0f172a;
    color: #e5e7eb;
}

header {
    background: #6366f1;
    padding: 18px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.25rem;
}

/*make buttons look good*/
button {
    background: #4f46e5;
    border: none;
    color: white;
    padding: 10px 16px;
    margin: 0 6px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background:#9400D3;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(148, 0, 211, 0.2);
}

.timer-display {
    font-size: 10rem;
}

.timer-controls {
    font-size: 1.25rem;
}

.timer-section {
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
}

/*change layout to display due dates and tasks on side
and timer and calendar in middle*/
.layout {
    max-width: 1200px;
    margin: 24px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 260px 500px 260px;
    gap: 150px;
    align-items: start;
    justify-content: center;
}

/*box-card around each section*/
.due-dates,
.tasks,
.timer-section,
.calendar-section {
   background: #1e293b;
   border-radius: 10px;
   padding: 16px;
   box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
}

/*change size for headers in sections
*/
.due-dates h2,
.tasks h2,
.calendar-section h2 {
   margin-top: 0;
   font-size: 1.05rem;
}

/*padding moved left for list*/
.due-dates ul,
.tasks ul {
   padding-left: 1rem;
   margin: 8px 0;
}

#custom-time {
    font-family: inherit;
    font-size: 20px;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color:#6366f1;
    color: white;
    border: none;
    border-radius: 6px;
}

.add-input {
    font-family: inherit;
    font-size: 14px;
    width: 80%;
    padding: 6px;
    margin: 10px;
    background-color:#6366f1;
    color: white;
    border: none;
    border-radius: 6px;
}



input::placeholder {
    color: #e5e7eb;
}

/* Calendar Styling */
#container {
    width: 100%;
    font-family: sans-serif;
}

#header {
    padding: 8px;
    color: #e5e7eb;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#header button {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#header button:hover {
    background-color: #9400D3;
    transform: scale(1.05);
}

#weekdays {
    width: 100%;
    display: flex;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 4px;
}

#weekdays div {
    flex: 1;
    padding: 4px 2px;
    text-align: center;
}

#calendar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.day {
    flex: 0 0 calc(14.28% - 2px);
    padding: 4px;
    height: 50px;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #334155;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #e5e7eb;
    border-radius: 4px;
}

.day:hover {
    background-color: #475569;
}

#currentDay {
    background-color: #6366f1;
}

.event {
    font-size: 0.65rem;
    padding: 2px 3px;
    background-color: #10b981;
    color: white;
    border-radius: 3px;
    max-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.padding {
    cursor: default !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

#newEventModal, #deleteEventModal {
    display: none;
    z-index: 40;
    padding: 20px;
    background-color: #1e293b;
    border: 1px solid #475569;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    font-family: sans-serif;
    color: #e5e7eb;
}

#newEventModal h2, #deleteEventModal h2 {
    margin-top: 0;
    color: #e5e7eb;
    font-size: 1.1rem;
}

#eventTitleInput {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #475569;
    background-color: #334155;
    color: white;
    font-size: 0.9rem;
}

#eventTitleInput::placeholder {
    color: #94a3b8;
}

#eventTitleInput.error {
    border: 2px solid #ef4444;
}

#cancelButton, #deleteButton {
    background-color: #ef4444;
}

#saveButton, #closeButton {
    background-color: #6366f1;
}

#cancelButton:hover, #deleteButton:hover {
    background-color: #dc2626;
}

#saveButton:hover, #closeButton:hover {
    background-color: #9400D3;
}

#eventText {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

#modalBackDrop {
    display: none;
    top: 0px;
    left: 0px;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Expanded Calendar Modal */
#expandedCalendarModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#expandedContainer {
    font-family: sans-serif;
}

#expandedHeader {
    padding: 12px;
    color: #e5e7eb;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#expandedHeader button {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 4px;
}

#expandedHeader button:hover {
    background-color: #9400D3;
    transform: scale(1.05);
}

#expandedWeekdays {
    width: 100%;
    display: flex;
    color: #a0aec0;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

#expandedWeekdays div {
    flex: 1;
    padding: 8px;
    text-align: center;
}

#expandedCalendar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#expandedCalendar .day {
    flex: 0 0 calc(14.28% - 4px);
    padding: 12px;
    height: 100px;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #334155;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #e5e7eb;
    border-radius: 6px;
}

#expandedCalendar .day:hover {
    background-color: #475569;
}

#expandedCalendar #currentDay {
    background-color: #6366f1;
}

#expandedCalendar .event {
    font-size: 0.9rem;
    padding: 4px 6px;
    background-color: #10b981;
    color: white;
    border-radius: 4px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

#expandedCalendar .padding {
    cursor: default !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

#expandedCalendarBackdrop {
    display: none;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}





