/* Dashboard Styles */
#singh-sidebar {
    background-color: #103948;
    padding: 25px 20px;
    border-radius: 8px; 
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px; 
    min-height: 85vh;
    height: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#singh-sidebar img {
    margin-bottom: 10px;
    border-radius: 50%; 
    max-width: 100%;
    height: auto;
}

#singh-side-title {
    color: #fff8e9; 
    font-weight: bold;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-side-text {
    color: #90cbd4;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-sidebar a {
    display: block;
    color: #fff8e9;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#singh-sidebar a:hover {
    color: #fff8e9;
    background-color: #a74258;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transform: translateX(4px);
}

#dBod::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("bg.png") no-repeat center center fixed;
    background-size: cover;
    filter: blur(3px);
    opacity: 0.15; 
    z-index: -1;
}
#dBod {
     background-color: #f8f9fa;
     font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
     min-height: 1000px;
     display: flex;
     flex-direction: column;
}

#dashTitle {
    background-color: #1e252b;
    color: white;
    display: inline-block;
    padding: 12px 35px;
    border-radius: 15px;
    letter-spacing: 1px;
    font-size: 32px;
    margin-bottom: 10px;
}

.text-muted {
    color: #333 !important;
    font-size: 1rem;
    margin-left: 5px;
}

.header-section {
    text-align: left;
    margin-bottom: 40px !important;
}

#ictTitle {
     color: #00cefb !important;
     font-size: 28px;
     margin-bottom: 5px;
     text-align: left;
}

#currHead {
     font-size: 22px;
     text-align: left;
     margin-bottom: 30px;
}

#dashBox {
     background-color: white;
     padding: 40px;
     border-radius: 15px;
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
     width: 100%;
     max-width: 650px;
     margin-left: 0 !important;
}

#theList {
     list-style-type: upper-roman;
     padding-left: 25px;
}

#theList> li {
     font-weight: bold;
     margin-bottom: 20px;
}

#quarterHighlight {
     background-color: #93e9fa;
     padding: 2px 10px;
     border-radius: 4px;
     font-weight: normal;
}

#theList ul {
     list-style-type: circle;
     font-weight: normal;
     color: #444;
     margin-top: 10px;
}

#footerContainer {
     position: fixed;
     bottom: 0px;
     right: 0;
     z-index: 1000;
     display: flex;
     justify-content: flex-end;
     width: auto;
}

#footerBox {
     background-color: rgba(120, 120, 120, 0.8) !important;
     padding: 10px 30px;
}

#footerBox p {
     color: white !important;
     margin: 0;
     font-size: 0.9rem;
}

/* LOGIN PAGE STYLES */
body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande';
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("bg.png") no-repeat center center fixed;
    background-size: cover;
    filter: blur(3px);
    opacity: 0.25;
    z-index: -1;
}

form {
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
    width: 320px;
    background-color: #90cbd4;
}

img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

h2 {
    margin-bottom: 20px;
    color: #103948;
}

label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    color: #232323;
}

#user, #pass {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: none;
    background-color: #fff8e9;
}

#stay {
    margin-right: 5px;
}

p {
    font-size: small;
    color: #555;
    margin-bottom: 10px;
}

#login {
    background-color: #a74258;
    color:#fff8e9;
    border-color: #87515c;
    cursor: pointer;
}

#reset {
    background-color: #c9c5b0;
    border-color: #bab497;
    margin-left: 10px;
    cursor: pointer;
}

details {
    display: block;
    margin-top: 15px;
    background: none;
    border: none;
    color: #114716;
    font-size: small;
}

/* --- BODY --- */
#singh-body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', sans-serif;
    position: relative;
    min-height: 100vh;
}

/* BG PICTURE */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("bg.png") no-repeat center center fixed;
    background-size: cover;
    filter: blur(3px);
    opacity: 0.25;
    z-index: -1;
}

/* --- SIDEBAR --- */
#singh-sidebar {
    background-color: #103948;
    padding: 25px 20px;
    border-radius: 8px; 
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px; 
    min-height: 85vh;
    height: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#singh-sidebar img {
    margin-bottom: 10px;
    border-radius: 50%; 
    max-width: 100%;
    height: auto;
}

#singh-side-title {
    color: #fff8e9; 
    font-weight: bold;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-side-text {
    color: #90cbd4;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-sidebar a {
    display: block;
    color: #fff8e9;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    transition: all 0.25s ease-in-out;
}

#singh-sidebar a:hover {
    color: #fff8e9;
    background-color: #a74258;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transform: translateX(4px);
}

/* --- TASKS --- */
#singh-task-heading {
    background-color: #1e252b;
    color: white;
    display: inline-block;
    padding: 12px 35px;
    border-radius: 15px;
    letter-spacing: 1px;
    font-size: 32px;
    margin-bottom: 30px; /* Adjusted to visually match the profile page heading gap */
}

.singh-task-card {
    background-color: #ffffff; 
    border-radius: 8px; 
    padding: 25px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1); 
    border-left: 5px solid #90cbd4; 
    transition: 0.3s ease;
}

.singh-task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 18px rgba(0,0,0,0.15);
    border-left-color: #a74258; 
}

.singh-task-card h3 {
    font-weight: bold;
    color: #103948; 
}

.singh-task-card p {
    color: #232323; 
}

.singh-task-card small {
    color: #757575; 
}

/* --- BUTTONS --- */
#singh-btn1,
#singh-btn2,
#singh-btn4 {
    background-color: #a74258; 
    color: #fff8e9;
    border: 1px solid #87515c;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#singh-btn1:hover,
#singh-btn2:hover,
#singh-btn4:hover {
    background-color: #8c3246; 
}

#singh-btn3 {
    background-color: #c9c5b0; 
    color: #232323;
    border: 1px solid #bab497;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#singh-btn3:hover {
    background-color: #bab497;
}

/* --- FOOTER --- */
#singh-footer {
    position: fixed;
    bottom: 0px;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    width: auto;
    background-color: rgba(120, 120, 120, 0.8) !important;
    padding: 10px 30px;
}    

#singh-footer p {
    color: white !important;
    margin: 0;
    font-size: 0.9rem;
}

#singh-sidebar {
    background-color: #103948;
    padding: 25px 20px;
    border-radius: 8px; 
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px; 
    min-height: 85vh;
    height: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#singh-sidebar img {
    margin-bottom: 10px;
    border-radius: 50%; 
    max-width: 100%;
    height: auto;
}

#singh-side-title {
    color: #fff8e9; 
    font-weight: bold;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-side-text {
    color: #90cbd4;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#singh-sidebar a {
    display: block;
    color: #fff8e9;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#singh-sidebar a:hover {
    color: #fff8e9;
    background-color: #a74258;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transform: translateX(4px);
}

#nathan-body {
     background-color: #f8f9fa;
     font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
     min-height: 1000px;
     display: flex;
     flex-direction: column;
     position: relative;
}

#nathan-body::before {
     content: "";
     position: fixed;
     top: 0; left: 0; right: 0; bottom: 0;
     background: url("bg.png") no-repeat center center fixed;
     background-size: cover;
     filter: blur(3px);
     opacity: 0.15;
     z-index: -1;
}

#profileTitle {
    background-color: #1e252b;
    color: white;
    display: inline-block;
    padding: 12px 35px;
    border-radius: 15px;
    letter-spacing: 1px;
    font-size: 32px;
    margin-bottom: 10px;
}

.text-muted {
    color: #333 !important;
    font-size: 1rem;
    margin-left: 5px;
}

.header-section {
    text-align: left;
    margin-bottom: 40px !important;
}

.profile-layout-container {
     display: flex;
     align-items: flex-start;
     justify-content: center;
     gap: 50px;
     margin-top: 20px;
     width: 100%;
}

.avatar-upload-box {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 20px;
}

.profile-avatar-wrapper {
     width: 160px;
     height: 160px;
     border-radius: 50%;
     overflow: hidden;
     background-color: #79ebff;
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-avatar-wrapper img {
     width: 100%;
     height: 100%;
     object-fit: cover;
}

.file-input-wrapper input[type="file"] {
     font-size: 0.9rem;
     color: #444;
     background-color: #ffffff;
     border: 1px solid #dee2e6;
     border-radius: 4px;
     padding: 6px 12px;
     max-width: 230px;
}

#infoCardBox {
     background-color: #ffffff;
     padding: 40px;
     border-radius: 15px;
     box-shadow: 0 4px 20px rgba(0,0,0,0.08);
     width: 100%;
     max-width: 420px;
     display: flex;
     flex-direction: column;
     gap: 22px;
}

.card-info-title {
     font-size: 24px;
     font-weight: bold;
     color: #212529;
     margin-bottom: 5px;
}

.info-field-group {
     display: flex;
     flex-direction: column;
     gap: 2px;
}

.info-field-group label {
     font-size: 0.85rem;
     color: #8c9399;
     font-weight: 500;
}

.info-field-group p {
     font-size: 1rem;
     color: #212529;
     margin: 0;
     font-weight: 500;
     word-break: break-all;
}

#btnChangePassword {
     background-color: #00cefb;
     color: #000000;
     font-weight: 600;
     border: none;
     border-radius: 8px;
     padding: 12px;
     width: 100%;
     margin-top: 10px;
     transition: background-color 0.2s ease-in-out;
}

#btnChangePassword:hover {
     background-color: #00b4dc;
     color: #000000;
}

/* COMPLEX FOOTER IDs APPLIED HERE */
#nathan-footer {
    position: fixed;
     bottom: 0px;
     right: 0;
     z-index: 1000;
     display: flex;
     justify-content: flex-end;
     width: auto;
    background-color: rgba(120, 120, 120, 0.8) !important;
    padding: 10px 30px;
}    

#nathan-footer p {
     color: white !important;
     margin: 0;
     font-size: 0.9rem;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background-color: #f0f4f8;
}

/* ===== BACKGROUND IMAGE ===== */
#reyes-body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("bg.png") no-repeat center center fixed;
  background-size: cover;
  filter: blur(3px);
  opacity: 0.15;
  z-index: -1;
}

#reyes-body {
  position: relative;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* ===== SIDEBAR ===== */
#reyes-sidebar {
  background-color: #103948;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 85vh;
  height: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

#reyes-sidebar img {
  margin-bottom: 10px;
  border-radius: 50%;
  max-width: 100%;
  height: auto;
}

#reyes-side-title {
  color: #fff8e9;
  font-weight: bold;
  margin-bottom: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#reyes-side-text {
  color: #90cbd4;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#reyes-sidebar a {
  display: block;
  color: #fff8e9;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

#reyes-sidebar a:hover,
#reyes-sidebar a.active {
  color: #fff8e9;
  background-color: #a74258;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  transform: translateX(4px);
}

/* ===== MAIN CONTENT AREA ===== */
#notebooks-main {
  padding: 20px 15px;
}

/* Page header badge */
#notebooks-header-badge {
  background-color: #1a1a2e;
  color: #fff8e9;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

#notebooks-sub {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* ===== SUBJECT CARDS ===== */
.subject-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  height: 100%;
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Accent colors per subject */
.card-filipino  { border-bottom-color: #e74c3c; }
.card-english   { border-bottom-color: #3498db; }
.card-math      { border-bottom-color: #2ecc71; }
.card-science   { border-bottom-color: #9b59b6; }
.card-socstud   { border-bottom-color: #f39c12; }
.card-values    { border-bottom-color: #1abc9c; }
.card-ict       { border-bottom-color: #e67e22; }
.card-pe     { border-bottom-color: #e91e63; }

.subject-card h5 {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.subject-card .notebook-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.subject-card .card-section {
  font-size: 0.78rem;
  color: #777;
  display: block;
  margin-bottom: 2px;
}

.subject-card .card-teacher {
  font-size: 0.82rem;
  color: #444;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.card-open-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid #eee;
  padding-top: 8px;
  color: #103948;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.card-open-btn:hover {
  color: #a74258;
}

/* ===== MODAL / NOTEBOOK VIEWER ===== */
#notebook-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#notebook-modal-overlay.show {
  display: flex;
}

#notebook-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#notebook-modal-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#notebook-modal-header h4 {
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

#notebook-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

#notebook-modal-close:hover {
  color: #a74258;
}

#notebook-modal-body {
  padding: 20px 24px;
}

.notebook-entry {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 4px solid #103948;
}

.notebook-entry h6 {
  font-weight: 700;
  color: #103948;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.notebook-entry p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.notebook-entry .entry-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
  display: block;
}

.add-note-area {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.add-note-area p {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.add-note-area textarea {
  width: 100%;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}

.add-note-area textarea:focus {
  border-color: #103948;
}

.add-note-btn {
  margin-top: 8px;
  background-color: #103948;
  color: #fff8e9;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.add-note-btn:hover {
  background-color: #a74258;
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
#reyes-footer {
  position: fixed;
  bottom: 0px;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  width: auto;
  background-color: rgba(120, 120, 120, 0.8) !important;
  padding: 10px 30px;
}

#reyes-footer p {
  color: white !important;
  margin: 0;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #reyes-sidebar { min-height: auto; }
  #notebooks-main { padding: 12px 8px; }
}
