/* src/App.css */

body {
  font-family: Arial, sans-serif;
  background-color: #e8f1fa; /* RWTH Lightest Blue */
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
  border-bottom: 2px solid #c7ddf2; /* RWTH Accent Blue */
  padding-bottom: 10px;
}

.field-group {
  margin-bottom: 15px;
}

.field-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.field-group textarea,
.field-group input[type="text"],
.field-group input[type="password"] {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.field-group input[type="text"][readOnly] {
  background-color: #eee;
  cursor: not-allowed;
}

.field-group-read-only {
  font-family: monospace;
  background-color: #eee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.save-button {
  background-color: #00549f; /* RWTH Primary Blue */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-button:hover {
  background-color: #407fb7; /* RWTH Secondary Blue */
}

.neutral-button {
  background-color: #8ebae5; /* RWTH Light Blue */
  color: #000; /* Black text for contrast */
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none; /* For links styled as buttons */
  display: inline-block; /* For links styled as buttons */
}

.neutral-button:hover {
  background-color: #c7ddf2; /* RWTH Accent Blue */
}

.control-section {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.container {
  max-width: 1600px; 
}

.split-container {
  display: flex;
  align-items: flex-start; 
  gap: 20px;
}

.left-pane {
  flex: 1; 
  min-width: 300px; 
  position: sticky;
  top: 20px; 
  align-self: flex-start; 
}

.right-pane {
  flex: 3; 
  min-width: 400px;
  background-color: #f8f9fa; 
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.right-pane-controls {
  display: flex;
  gap: 20px;
  width: 100%;
}
.right-pane-controls > .control-section {
  flex: 1; 
}

.right-pane h3 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.readonly-field {
  margin-bottom: 15px;
  /* Make the field grow to fill the right pane */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%; /* Ensure it fills the right pane */
}

.readonly-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.accepted-loss-field {
  width: 80%;
  margin-top: 15px;
  margin-bottom: 0; 
}
.accepted-loss-field .field-group {
  margin-bottom: 0; 
}

.logo-container {
  position: fixed;
  top: 20px;    
  right: 20px;
  z-index: 1000;
  opacity: 1; 
}
.logo-container img {
  width: 300px; 
  height: auto;
}

.pdf-embed-container {
  width: 100%;
  height: 80vh;
  margin-top: 20px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  overflow: hidden;
}
.pdf-embed-container embed {
  width: 100%;
  height: 100%;
}

.markdown-preview {
  width: 100%;
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #e9ecef; 
  cursor: default;
  resize: none;
  font-family: Arial, sans-serif;
  min-height: 400px; 
  overflow-y: auto; 
  flex-grow: 1; 
}

.markdown-preview > *:first-child { margin-top: 0; }
.markdown-preview > *:last-child { margin-bottom: 0; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
  margin-top: 1.2em; margin-bottom: 0.5em;
  border-bottom: 1px solid #c7ddf2; padding-bottom: 0.3em;
}
.markdown-preview p { margin-bottom: 1em; line-height: 1.5; }
.markdown-preview code {
  background-color: #fff; border: 1px solid #c7ddf2;
  border-radius: 3px; padding: 2px 4px;
  font-family: monospace; font-size: 0.9em;
}
.markdown-preview pre {
  background-color: #fff; border: 1px solid #c7ddf2;
  border-radius: 4px; padding: 1em;
  overflow-x: auto; font-family: monospace;
}
.markdown-preview pre code { background-color: transparent; border: none; padding: 0; }
.markdown-preview ul, .markdown-preview ol { padding-left: 2em; }
.markdown-preview blockquote { border-left: 4px solid #c7ddf2; padding-left: 1em; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.modal-content h3 {
  margin-top: 0;
  border-bottom: 2px solid #c7ddf2;
  padding-bottom: 10px;
}

.modal-textarea {
  width: 100%;
  min-height: 400px;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* --- DASHBOARD STYLES --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.dashboard-card {
  background-color: #fff;
  border: 1px solid #c7ddf2; 
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  min-height: 150px; 
}

/* Style for the link cards */
.dashboard-card.link-card {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-card.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #00549f; /* RWTH Primary Blue */
}

.dashboard-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  /* Set a default color that can be overridden */
  stroke: #407fb7; /* RWTH Secondary Blue */
}

.dashboard-card.link-card:hover svg {
  stroke: #00549f; /* RWTH Primary Blue on hover */
}

.dashboard-card h3 {
  margin: 0;
  font-size: 1.2rem;
  border-bottom: none; /* Override default h3 border */
  padding-bottom: 0;
}