body {
    margin: 0;
    font-family: Arial;
    background: #E6D7C8; 
}
.body-container {
    margin-left: 5%;
    margin-right: 5%;
}
.body-container h1{
    display: inline-block;
    padding-right: 20px;
    vertical-align: top;
}
.body-container .btn-primary {
    margin-top: 23px;
}

header {
    background-image: url("media/header_background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    padding: 40px 20px;
    text-align: left;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    margin-left: 10%;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
    margin-left: 10%;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: #fff;
    margin: 8px 0;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

em {
    margin-left: 5px;
    color: #555;
}

/* ====== TABLE ====== */
td input label{
    width: 100%;
    margin: auto;
    padding: 10px;
}


/* ====== JAVASCRIPT ====== */
.panel{
    display: block;
}

.panel.hidden {
    display: none;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #846e01;
    color: #fff;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background-color: #a1935d;
    color:black;
    box-shadow: 0 3px 3px rgba(0,0,0,0.25);
}

.btn-secondary {
    background-color: #c4a32a;
    color: #000000;
}
.btn-secondary:hover {
    background-color: #bbb;
}

.btn-list{
    color: #846e01;
    border-radius: 5%;
    text-decoration: none;
    padding: 2px 4px;
    vertical-align: middle;
    float:right;
    transition: 0.2s ease;
}
.btn-list:hover {
    color: #826800;
    background-color: #e0e0e0;
    box-shadow: 0 5px 5px rgba(0,0,0,0.25);
}

/* ====== FORMS ====== */
.edit-task-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.edit-task-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 35%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

label{
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-input,
textarea,
select {
  width:auto;
  padding:12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}


/* Focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #555;
}

.form-button {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.form-button:hover {
  background: #000;
}

/* ====== FOOTER ====== */
footer {
    display: flex;
    align-items: center;
    position: static;
    bottom: 0px;
    color: block;
    padding: 40px 200px;
    text-align: left;
    font-size: large;
}

.footer-image {
    position: relative;
    border-radius: 50%;
    height: 50px;

}

.footer-span {
    padding-left: 20px;
}

/* ====== CALENDAR ====== */
/* Two-column page layout */
.grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* left tasks, right calendar */
    height: max-content;
}

/* LEFT: Homework / To-Do */
.task-column {
    padding: 24px;
    overflow-y: auto;
}

/* RIGHT: Calendar column */
.calendar-column {
    padding: 20px;
    border-left: 1px solid #ccc;
    height: 100%;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.calendar-column:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

/* Calendar title stays fixed */
.calendar-column h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Calendar fills remaining vertical space */
.calendar {
    width: 100%;
    height: fit-content;
    border-collapse: collapse;
    table-layout: fixed;
    vertical-align: top;
}

/* Calendar cells */
.calendar th,
.calendar td {
    border: 1px solid #ccc;
    padding: 6px;
    padding-bottom: 20px;
    vertical-align: top;
}

/* Today's date highlight */
.calendar td.today {
    background-color: #ffe8b3;
    border: 2px solid #f4b400;
}

.calendar td.today .date {
    font-weight: bold;
}

/* Header row */
.calendar th {
    background: #e5e5e5;
    text-align: center;
    font-weight: 600;
}

/* Force rows to stretch evenly */
.calendar tr {
    height: calc(100% / 6);
}

/* Adjust table headers */
.calendar .days-of-week {
    height: 5%;
    align-items: center;
}

/* Date number */
.calendar .date {
    font-weight: bold;
    margin-bottom: 4px;
}

/* Task pills */
.calendar .task {
    font-size: 0.75rem;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.calendar .event {
    font-size: 0.75rem;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.task {
    color: white;
    font-size: 11px;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 4px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
}


.event {
    background: #846e01;
    color: white;
    font-size: 11px;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 4px;
}



/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .card img {
        height: 180px !important;
    }
}