:root {
  --alura-primary: #167BF7;       
  --alura-secondary: #051933;     
  --alura-text: #051933;         
  --alura-light: #FFFFFF;        
  --alura-gray: #C8C8C8;         
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 1rem;
}

.upload-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
}

label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: bold;
  color: #a0a0a0;
}

input[type="text"],
input[type="url"],
input[type="file"],
input[type="email"],
input[type="password"] {
  display: block;
  margin: 0.5rem auto 1rem auto;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
}

#courseIsFromAluraStart {
  margin: 0.5rem auto 1rem auto;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
}

.educational-context-select {
  display: block;
  margin: 0.5rem auto 1rem auto;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

.educational-context-select:focus {
  outline: none;
  border-color: var(--alura-primary);
  box-shadow: 0 0 0 2px rgba(22, 123, 247, 0.2);
}

.educational-context-select option {
  padding: 0.5rem;
  background-color: #fff;
  color: #333;
}

.educational-context-select option:hover {
  background-color: #f0f0f0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.divider::before {
  margin-right: .25em;
}

.divider::after {
  margin-left: .25em;
}

.skills {
  display: block;
  margin: 0.5rem auto 1rem auto;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  font-size: 1rem;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}

button:hover {
  background-color: #0056b3;
}

progress {
  width: 100%;
  height: 20px;
  margin: 1rem 0;
  border-radius: 5px;
  overflow: hidden;
  display: none;
}

progress::-webkit-progress-bar {
  background-color: #f4f4f9;
  border-radius: 5px;
}

progress::-webkit-progress-value {
  background-color: #18db0a;
  border-radius: 5px 0 0 5px;
}

#status {
  font-size: 1rem;
  color: #666;
  margin-top: 1rem;
  font-weight: bold;
}

#videoList {
  display: none;
  margin-top: 2rem;
}

#videoList h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

#videoList h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

#videoList ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
  padding: 0;
  margin: 0;
}

#videoList li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#convertButton {
  background-color: #28a745;
}

.loading-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: #fff;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.clickable-text {
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

#sidePanel {
  position: fixed;
  right: -100%;
  top: 0;
  width: 30%;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  z-index: 1000;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#closePanel {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 30px;
    cursor: pointer;
}

.video-instructions-text {
  font-size: 13.7px;
  font-weight: bold;
}

.video-instructions-text {
  margin-bottom: 2rem;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

.validation-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-size: 14px;
}

.validation-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quick-validate-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

#quickValidateButton {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    width: auto;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0;
}

#quickValidateButton:hover {
    background-color: #e9ecef;
    color: #495057;
}

#quickValidateButton i {
    margin-right: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #555;
}

.modal-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#validationResult {
    margin-top: 1rem;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
    padding-right: 1rem;
}

#validationResult::-webkit-scrollbar {
    width: 8px;
}

#validationResult::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#validationResult::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#validationResult::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.validation-group {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.validation-group h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #495057;
}

.validation-videos {
    margin-top: 1.5rem;
    text-align: left;
}

.validation-videos h3 {
    color: #495057;
    margin-bottom: 1rem;
}

#quickValidationList ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    padding: 0;
    margin: 0;
}

#quickValidationList li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.9rem;
}

.validation-instruction {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
}

.technical-terms {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.label-with-help {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 5px;
}

.help-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    margin-top: 2px;
}

.help-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    margin-bottom: 8px;
    width: 250px;
    max-width: 300px;
    white-space: pre-line;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.help-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    margin-bottom: -2px;
}

.floating-help {
    position: fixed;
    right: 70px;
    bottom: 40px;
    z-index: 1000;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: auto;
    height: auto;
}

.floating-help:hover {
    background: #f5f5f5;
}

.floating-help:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    padding: 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    margin-bottom: 8px;
    width: 250px;
    white-space: pre-line;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.floating-help:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #333;
    margin-bottom: -2px;
}

.user-logout-bar {
    position: fixed;
    top: 4px;
    right: 4px;
    background-color: rgba(248, 249, 250, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.user-email {
    color: #666;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    color: #666;
    display: flex;
    align-items: center;
    padding: 1px;
}

.logout-link svg {
    width: 14px;
    height: 14px;
}

.logout-link:hover {
    color: #dc3545;
    text-decoration: none;
}