/* CBC-MAC Simulation Styles */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
  margin: 20px;
  line-height: 1.6;
  background-color: #f8f9fa;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h3 {
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-top: 30px;
}

h4 {
  color: #495057;
  margin-bottom: 10px;
}

h5 {
  color: #6c757d;
  margin-bottom: 8px;
}

table {
  border-collapse: collapse;
  margin: 10px 0;
}

td {
  padding: 8px;
  vertical-align: top;
}

td:first-child {
  font-weight: bold;
  min-width: 150px;
}

textarea {
  font-family: monospace;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 3px;
}

input[type="button"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2px;
}

input[type="button"]:hover {
  background-color: #0056b3;
}

select {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#notification,
#notification2 {
  min-height: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  margin: 10px 0;
  transition: all 0.3s ease;
}

/* Enhanced styling for dataset features */
.example-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-highlight {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
  border-left: 4px solid #ff9800;
  animation: fadeIn 0.5s ease;
}

.calculation-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.expected-result {
  background: #c8e6c9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

/* Part-specific styling */
div[style*="background: #f8f9fa"] {
  border: 1px solid #dee2e6;
}

div[style*="background: #fff3cd"] {
  border: 1px solid #ffeaa7;
}

hr {
  border: none;
  border-top: 2px solid #007bff;
  margin: 30px 0;
}
