body{
    background-color: rgb(255, 188, 129);
}
h1{
    text-align: center;
}
h2{
    text-align: center;
}
img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
}
button{
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(255, 255, 255);
    border: 2px solid black;
    border-radius: 12px;
    padding: 10px;
    font-size: 20px;
}
p{
    text-align: center;
}
h6{
    text-align: right;
    color: rgb(237, 246, 144);
}
.page-container {
    width: 50%;
    margin: auto;
    padding: 10px;
    font-size: 18px;
}
.label-container{
    text-align: center;
    margin-left: 600px;
    margin-right: auto;
}
input{
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    font-size: 16px;
}

h6{
    text-align: right;
    color:rgb(255, 188, 129);
}

/* Timer styles */
.timer-section { margin-bottom: 1rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.5rem; text-align:center; }
.timer-title { margin: 0; }
.timer-input-row { display:flex; flex-direction:column; align-items:center; gap:0.5rem; }
.timer-input-row label { margin: 0; }
.timer-min-input { width: 4.5rem; }
.timer-controls { display:flex; flex-direction:column; gap:0.4rem; align-items:center; }
.timer-button { min-width:84px; }
.timer-display { font-size:1.2rem; font-weight:600; margin-top:0.25rem; }
.timer-progress { height:8px; background:#eee; border-radius:4px; overflow:hidden; margin-top:0.4rem; width:320px; max-width:90%; }
.timer-bar { height:100%; width:0%; background:linear-gradient(90deg,#6ab04c,#38b6ff); }

/* Centered page/layout helpers */
.center-page { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:80vh; padding:1rem; text-align:center; }
.centered-form { width:100%; max-width:420px; margin-top:0.5rem; }
.centered-form button { display:inline-block; margin:0 0.25rem; }

/* Site header / user nav */
.site-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0.5rem 1rem; border-bottom:1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.6); }
.site-title a { text-decoration:none; color:inherit; font-weight:700; }
.user-area { display:flex; align-items:center; gap:0.5rem; }
.user-pill { background:#f0f0f0; border-radius:999px; padding:0.25rem 0.6rem; font-size:0.9rem; }
.nav-link { text-decoration:none; color:#333; font-size:0.9rem; }

.assignment {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #ccc;
    text-align: center;
    align-items: center;
}

.assignment div {
    margin: 0;
    padding: 0;
}


.assignment h3,
.assignment p {
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    white-space: normal;
}


.assignment {
    border: 1px solid #ddd;
    background: #fafafa;
}
input[type="text"],
input[type="number"],
textarea,
[contenteditable="true"] {
    border: 2px solid #444;
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

/* Highlight when focused */
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
[contenteditable="true"]:focus {
    border-color: #0078ff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 120, 255, 0.4);
}

.teacher-form {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffffcc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.teacher-form h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.teacher-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-form input,
.teacher-form textarea,
.teacher-form select {
    width: 100%;
    padding: 10px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.teacher-form button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
}

.teacher-form button:hover {
    background: #f0f0f0;
}
/* Teacher Page Layout */
.teacher-container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form styling */
.teacher-container label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.teacher-container input,
.teacher-container textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

/* Submit button */
.teacher-container button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
}

.teacher-container button:hover {
    background: #f0f0f0;
}

/* Success / Error messages */
.message {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.message.success {
    background: #c8f7c5;
    border: 2px solid #2ecc71;
}

.message.error {
    background: #f7c5c5;
    border: 2px solid #e74c3c;
}

/* Assignment list */
.assignment-list {
    margin-top: 2rem;
}

#header {
    width: 100%;
    margin: 0;
    padding: 0;
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-bottom: 2px solid black;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#userPill {
    font-weight: bold;
}

#logoutLink {
    border: 2px solid black;
    padding: 6px 12px;
    border-radius: 6px;
    background: white;
    text-decoration: none;
    color: black;
}
.edit-btn, .delete-btn {
    padding: 8px 14px;
    border: 2px solid black;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    margin-right: 8px;
}

.edit-btn:hover {
    background: #ffe9b3;
}

.delete-btn:hover {
    background: #ffb3b3;
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border: 2px solid black;
    border-radius: 8px;
    width: 350px;
}
.assignment-item.expired {
    opacity: 0.6;
    background: #f8d7da;
    border-left: 4px solid #b71c1c;
}
.timer-controls {
    display: flex;
    gap: 10px;          /* space between buttons */
    justify-content: center; /* optional: centers them */
    margin-top: 10px;
}

.timer-button {
    padding: 8px 16px;
}
.timer-controls {
    display: flex;
    justify-content: space-between;
}
.assignment-header,
.assignment-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr; /* 4 columns */
    padding: 10px;
    border-color: #000000;
    border-width: 5px;
    border-radius: 12px;
    align-items: center;
    background-color: #ffffff;

}

.assignment-header {
    font-weight: bold;
    background: #f0f0f0;
}