/*
 * This is a manifest file that'll be compiled into application.css
 *
 *= require_self
 *= require settings_new
 *= require manager/teams
 *= require manager/endpoint_monitoring
 */

/* Email Responsiveness Analysis Styles */
.email-responsiveness-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.email-responsiveness-section h3 {
  margin-bottom: 20px;
  color: #333;
}

.email-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.email-stats-grid .stat-item {
  background: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.email-stats-grid .stat-item strong {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.email-stats-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.email-stats-empty {
  text-align: center;
  padding: 30px;
}

.email-stats-empty p {
  margin-bottom: 15px;
  color: #666;
}

/* Basic reset and typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0px;
  background-color: #f5f5f5;
  color: #333;
}

h1, h2, h3 {
  margin-top: 0;
  color: #222;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn:hover {
  background-color: #0052a3;
  text-decoration: none;
}

/* Form submit buttons - only apply to forms with legacy-form class */
.legacy-form input[type="submit"] {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.legacy-form input[type="submit"]:hover {
  background-color: #0052a3;
  text-decoration: none;
}

.btn-primary {
  background-color: #28a745;
}

.btn-primary:hover {
  background-color: #218838;
}

/* Forms */
.field {
  margin-bottom: 15px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: white;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: bold;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Flash messages */
.notice, .alert {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

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

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

/* Assessment specific styles */
.question {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.option {
  margin: 10px 0;
}

.actions {
  margin: 20px 0;
}

.session-info {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

code {
  background-color: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

/* Info box */
.info-box {
  background-color: #e8f4f8;
  border: 1px solid #b8e0e8;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.info-box h3 {
  margin-top: 0;
  color: #0066cc;
}

.info-box ul {
  margin: 10px 0;
  padding-left: 20px;
}

/* Small text */
small {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin-top: 2px;
}

/* Saved indicator */
.saved {
  color: #28a745;
  display: inline-block;
  margin-left: 10px;
}

/* Question results */
.question-results {
  margin-top: 20px;
}

.question-results tr.correct {
  background-color: #d4edda;
}

.question-results tr.incorrect {
  background-color: #f8d7da;
}

.correct-marker {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
}

.incorrect-marker {
  color: #dc3545;
  font-weight: bold;
  font-size: 1.2em;
}

.unanswered {
  color: #6c757d;
}

/* Code blocks in questions */
pre {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  overflow-x: auto;
}

code {
  background-color: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
}
