/* General */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans", sans-serif;
    background-color: #f0f2f5;
}

/* Header stays at top naturally */

/* Main content takes remaining height */
.page-body {
    flex: 1;
    display: flex;
    flex-direction: column;/* prevents footer overlap */
}
/* Header */
/* ===============================
   HEADER BASE STYLES
   =============================== */
header {
    background-color: #fff;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

/* ===== LEFT SECTION ===== */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    min-width: 160px;
}

.header-left img {
    height: 70px;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text h1 {
    color: #d35400;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
}

.header-text h2 {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.2;
    word-break: break-word;
}

/* ===== CENTER HEADING ===== */
/* Center section: absolute center for large screens */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 200px; /* ensures it never shrinks too much */
    z-index: 5;
}

.header-center h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #d35400;
    white-space: nowrap;
}

/* ===== RIGHT SECTION (Avatar) ===== */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-shrink: 0;
    min-width: 100px;
}

/* ===== USER AVATAR DROPDOWN ===== */
.user-circle-dropdown {
    position: relative;
    flex-shrink: 0;
}

.user-circle-dropdown .user-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d35400;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.user-circle-dropdown .user-circle:hover {
    transform: scale(1.1);
    background-color: #e67e22;
}

/* ===== DROPDOWN MENU ===== */
.user-circle-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    min-width: 130px;
    text-align: center;
    z-index: 20;
}

.user-circle-dropdown:hover .dropdown,
.user-circle-dropdown .dropdown:hover {
    display: block;
}

.user-circle-dropdown .dropdown .username,
.user-circle-dropdown .dropdown .login-btn,
.user-circle-dropdown .dropdown .logout-btn {
    display: block;
    padding: 8px 10px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.user-circle-dropdown .dropdown .logout-btn {
    color: #d35400;
    font-weight: bold;
    border-top: 1px solid #eee;
}

.user-circle-dropdown .dropdown a:hover {
    background-color: #f0f0f0;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* --- Medium Screens (Tablets) --- */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 15px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: 2;
        margin-top: 6px;
    }

    .header-right {
        order: 3;
        margin-top: 10px;
    }

    .header-left img {
        height: 60px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text h2 {
        font-size: 14px;
    }
}

/* --- Small Screens (Mobiles) --- */
@media (max-width: 600px) {
    .header-text h1 {
        font-size: 18px;
    }

    .header-text h2 {
        font-size: 13px;
    }

    .header-center h3 {
        font-size: 18px;
        line-height: 1.4;
        white-space: normal;
        word-break: break-word;
    }

    .header-left img {
        height: 50px;
    }

    .user-circle-dropdown .user-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* --- Very Small Screens (below 400px) --- */
@media (max-width: 400px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px 10px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-text h1 {
        font-size: 16px;
        line-height: 1.3;
    }

    .header-text h2 {
        font-size: 12px;
        line-height: 1.2;
    }

    .header-center h3 {
        font-size: 16px;
        white-space: normal;
    }

    .header-left img {
        height: 45px;
    }
}

/* --- Ultra Small Screens (below 320px) --- */
@media (max-width: 320px) {
    .header-text h1 {
        font-size: 15px;
    }

    .header-text h2 {
        font-size: 11px;
    }

    .header-center h3 {
        font-size: 14px;
    }

    .user-circle-dropdown .user-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Prevent any horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive: stack on smaller screens */
@media (max-width: 992px) {
    .header-center {
        position: static;
        transform: none;
        width: 100%;
        margin: 6px 0;
        text-align: center;
    }

    .header-center h3 {
        font-size: 18px;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .header-center h3 {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .header-center h3 {
        font-size: 14px;
    }
}







/* Login form */

/* Overall wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #aeaab1, #cddefa);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* Login card */
.login-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Heading */
.login-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

/* Inputs */
.login-card input[type="text"],
.login-card input[type="password"],
.login-card select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus,
.login-card select:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.4);
    outline: none;
}

/* Error messages */
.error-msg {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 15px;
}

/* CAPTCHA */
.captcha-group .captcha-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-area .form-check {
        display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* center each option */
    gap: 12px !important;
    flex-wrap: wrap;
    padding: 6px 0 !important;
    width: 100%;
}



.captcha-area .form-check-input {
    transform: scale(1.3);
    margin: 0;
    cursor: pointer;
}

.captcha-area .form-check-label {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #333;
    letter-spacing: 3px;
     text-align: center; /* center text of each option */
    flex: 1; /* makes each label take equal space */
}

/* Button */
.btn-login {
    width: 100%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background: linear-gradient(to right, #2575fc, #6a11cb);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .captcha-area .form-check-label {
        font-size: 14px !important;
        letter-spacing: 2px;
    }
}


/* ===== FOOTER STYLE ===== */
/* ABOUT SECTION */

.nts-footer {
    background-color: #2b2b2b;
    color: #ddd;
    padding: 30px 50px;
    font-family: "Open Sans", sans-serif;
    margin-top: auto; /*  key to push footer down */
}

.footer-bottom {
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 15px;
    color: #aaa;
    font-size: 14px;
}

.footer-visitors {
  color: #ddd;
  font-size: 13px;
}

.footer-visitors i {
  color: #00bfff;
  margin-right: 5px;
}

.scroll-top {
  background: #444;
  border-radius: 50%;
  padding: 8px 10px;
  margin-left: 10px;
  color: #ddd;
  transition: 0.3s;
}

.scroll-top:hover {
  background: #00bfff;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-inner {
    flex-direction: column;
    gap: 25px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}



@media (max-width: 768px) {
    .header-left, .header-right {
        text-align: center;
        justify-content: center;
    }
    header {
        flex-direction: column;
    }
    .footer-columns {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 20px;
    }
}



/* Prefix everything with .glossary-dashboard to prevent overlapping */

/* === Glossary Dashboard Container === */
/* === Glossary Dashboard Container === */
.glossary-dashboard {
  max-width: 930px;
  margin: 40px auto;
  padding: 30px 35px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-family: "Segoe UI", sans-serif;
  transition: 0.3s;
  box-sizing: border-box;
}

.glossary-dashboard:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* === Heading === */
.dashboard-heading {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  color: #222;
  font-weight: 600;
}

/* === Search Section === */
.search-section {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

#search_box {
  height: 44px;
  padding: 10px 14px;
  border: 1.8px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
  max-width: 210px;
  box-sizing: border-box;
  transition: 0.3s;
}

#search_box:focus {
  border-color: #0078d4;
  box-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
  outline: none;
}

/* === Main Boxes Layout === */
.main-boxes {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* === Individual Box Styling === */
.box {
  flex: 1;
  min-width: 350px;
  background: #fdfdfd;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  box-sizing: border-box;
}

.box:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.box label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

/* === Word List Container === */
.word-list-container {
  height: 90px;
  overflow-y: auto;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.word-item {
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 14px;
}

.word-item:hover { 
  background: #e0f0ff; 
  transform: translateX(3px);
}

.word-item.selected { 
  background: #0078d4; 
  color: white; 
  font-weight: 500;
}

/* === Inputs and Textareas === */
textarea, input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: 0.3s;
}

textarea:focus, input[type="text"]:focus {
  border-color: #0078d4;
  box-shadow: 0 0 5px rgba(0, 120, 212, 0.2);
  outline: none;
}

textarea[readonly] { 
  background: #f5f5f5; 
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* === Navigation Buttons === */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 12px;
}

/* Right aligned (Save/Next) */
.nav-buttons.right {
  justify-content: flex-end;
}

/* Centered (New Entry) */
.nav-buttons.center {
  justify-content: center;
}

/* Buttons styling */
.nav-buttons button,
.nav-buttons .new-entry-btn {
  padding: 10px 28px;
  border: none;
  background: #00aaff;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap; /* prevent text wrap */
  min-width: 120px;   /* ensures it doesn't shrink too much */
}

/* Hover effect */
.nav-buttons button:hover,
.nav-buttons .new-entry-btn:hover {
  background: #007bb5;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

/* === Status Message === */
#statusMessage {
  display: none;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eaf6ff;
  color: #0078d4;
}

/* === Responsive Design === */
@media (max-width: 850px) {
  .glossary-dashboard {
    padding: 20px;
    margin: 15px;
  }

  .main-boxes {
    flex-direction: column;
  }

  .box {
    width: 100%;
    min-width: auto;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center; /* center buttons vertically */
  }

  .nav-buttons button,
  .nav-buttons .new-entry-btn {
    width: auto;       /* don't force 100% */
    max-width: 90%;    /* prevent overflow */
    margin-bottom: 10px;
  }
}

/* === Global Styles === */
body {
  margin: 0;
  overflow-x: hidden;
}




/* new_entry.css - Scoped CSS for New Entry Page */

.new-entry-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f2f5, #e0e7ff);
    padding: 30px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-entry-body h2 {
    text-align: center;
    color: #222;
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Container */
.new-entry-container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 30px 35px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.new-entry-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Labels */
.new-entry-container label {
    font-weight: 600;
    color: #444;
    font-size: 15px;
    margin-bottom: 6px;
}

/* Inputs & Textareas */
.new-entry-container input, 
.new-entry-container textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s, background 0.3s;
    background: #fefefe;
}

.new-entry-container input:focus,
.new-entry-container textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
    outline: none;
    background: #fff;
}

.new-entry-container textarea {
    height: 130px;
    resize: vertical;
}

/* Buttons */
.new-entry-container button,
.new-entry-container a {
    padding: 12px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s, transform 0.2s;
    color: #fff;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.new-entry-container button {
    background: linear-gradient(45deg, #28a745, #21c37b);
}

.new-entry-container button:hover {
    background: linear-gradient(45deg, #218838, #1faa63);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.new-entry-container a {
    background: linear-gradient(45deg, #007bff, #3b8dff);
}

.new-entry-container a:hover {
    background: linear-gradient(45deg, #0056b3, #1c6ed5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Message */
#message {
    color: #28a745;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .new-entry-container {
        padding: 20px;
    }
    .new-entry-body h2 {
        font-size: 26px;
    }
}


