/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: Arial, sans-serif;
  justify-content: space-between;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Login Page Styling */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-container h1 {
  margin-bottom: 1rem;
  color: #333;
}

.login-container p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 0.95rem;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-container input[type="password"] {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.login-container button {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.login-container button:hover {
  background-color: #005fa3;
}


body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
  padding: 1em;
}

h1 {
  text-align: center;
  margin-bottom: 1em;
}


.section-element{
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
  margin-bottom: 0.5em;
  color: #444;
}

.top-section-element{ 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
  margin-bottom: 0.5em;
  color: #444;
}

section {
  margin-bottom: 2em;
}

.course {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 4px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

/* Loading animation for course details */
.course.loading {
  position: relative;
  overflow: hidden;
}

.course.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 204, 0.1), transparent);
  animation: loading-shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.course.loading summary {
  opacity: 0.7;
  pointer-events: none;
}

details.course summary {
  background-color: #f0f4ff;
  border: 1px solid #b0c4de;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

details.course summary:hover {
  background-color: #e0e8ff;
}

details.course.modules-loaded summary:hover {
  background-color: #e0e8ff;
}

details.module {
  margin-left: 1em;
  background-color: #fdfdfd;
  border-left: 4px solid #ddd;
  padding-left: 0.5em;
  margin-top: 4px;
}

details.module summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 6px;
  background-color: #f7f9fc;
  border-radius: 4px;
  position: relative;
}

.module-summary, .course-summary {
  font-size: 0.9em;
  color: #666;
  white-space: pre;
}

.boxed-emoticon {
  display: inline-block;
  padding-bottom: 2px;       /* some space above the line */
  border-bottom: 1px dashed lightblue;
  font-size: 1em;          /* optional */
  background-color: transparent; /* remove background */
}

.item-list {
  padding-left: 2em;
}


.blue-icon {
  font-size: 1.2em; /* Optional: make it visually pleasant */
}

.course-link {
  text-decoration: none;
  font-size: 1.2em; /* Optional: make it visually pleasant */
}

.course-link:hover {
  opacity: 0.7; /* subtle hover effect */
}

.assignment-link {
  text-decoration: none;
  color: #0066cc;
}

.emoji-selector {
  margin-left: 6px;
  font-size: 0.9em;
  padding: 2px 4px;
}

.compact-emoji-select {
  width: 2.5em;               /* Just wide enough for the pencil icon */
  height: 1.8em;              /* Match typical select height */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 2px 4px;
  text-align: center;
  cursor: pointer;            /* Hand cursor on hover */
  position: relative;         /* For absolute positioning of pseudo-element */
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: white;
  font-size: 0.9em;
  /* Hide the default dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

/* Custom dropdown container */
.emoji-dropdown-container {
  position: relative;
  display: inline-block;
}

/* The button that shows the pencil */
.emoji-dropdown-btn{
  width: 2.5em;
  height: 1.8em;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.emoji-dropdown-btn:hover{
  opacity: 0.6;
}

/* The button that shows the pencil */
.confirm-course-name-btn, .edit-course-name-btn {
  /*width: 2.5em;
  height: 1.8em;*/
  border: none;
  background-color: transparent;
  cursor: pointer;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
  font-size: 1em;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.confirm-course-name-btn:hover, .edit-course-name-btn:hover {
  opacity: 0.6;
}

.emoji-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 18em;
  display: none;
}

.emoji-dropdown-menu.show {
  display: block;
}

.emoji-dropdown-item {
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.85em;
  white-space: nowrap;
}

.emoji-dropdown-item:hover {
  background-color: #f0f0f0;
}

.emoji-dropdown-item:last-child {
  border-bottom: none;
}

.emoji-selector {
  display: none;
}

.assignment-link:hover {
  text-decoration: underline;
}

.summary-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.summary-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: bold;
  flex: 1;
}

.summary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hide-btn {
  font-size: 0.8em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.right-controls {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 10px;
}

.check-status-btn {
  font-size: 0.8em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.hide-btn:hover,
.check-status-btn:hover {
  background: #ddd;
}

.assessor-select {
  font-size: 0.9em;
  padding: 3px;
  border-radius: 4px;
}

#unhide-container {
  margin-top: 2em;
}

#unhide-container button {
  margin-right: 0.5em;
  margin-top: 0.3em;
  background-color: #f4f4f4;
  border: 1px solid #aaa;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

#unhide-container button:hover {
  background-color: #e1e1e1;
}

.footer {
  text-align: center;
  font-size: 0.8em;
  color: #888;
  margin-top: 4em;
  padding: 1em 0;
  border-top: 1px solid #eee;
}

.check-files-li {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
}

.check-submissions-btn {
  font-size: 0.8em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.check-submissions-btn:hover {
  background: #ddd;
}

.hidden-assessor-select {
  display: none !important;
}

.assessor-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1em;
}

#toggle-assessor-selects.check-status-btn {
  width: auto;
  min-width: 0;
  padding: 3px 12px;
  font-size: 0.95em;
  margin: 0;
}


.animated-title {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 2.3em;
  color: #222;
  letter-spacing: 1.5px;
  animation: pop 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  80% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.animated-title span {
  color: #007cf0;
  font-weight: 500;
}