/* Wizard Styles for SCORM Generator */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f5f5;
  font-family: sans-serif;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 40px;
}

/* Wizard Menu Specific Styles */
.container.menu {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
}

h1 {
  margin-bottom: 30px;
}

/* Error Message Styles */
.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Page Header Styles */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.page-header .subtitle {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Example Section Styles */
.example-section {
  margin-bottom: 40px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.example-section h3 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.3rem;
}

.example-section p {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}

.example-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.example-btn {
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #495057;
}

.example-btn:hover {
  border-color: #2196F3;
  background: #e3f2fd;
  color: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.wizard-btn {
  display: block;
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: #2196F3;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.wizard-btn:hover {
  background: #1769aa;
  color: white;
  text-decoration: none;
}

/* Form Styles */
.form-group {
  margin-bottom: 30px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

#monacoConfigCode,
#monacoStartingCode {
  width: 100%;
  height: 450px;
  border: 1px solid #e0e0e0;
  margin-bottom: 0;
}

/* Variable Buttons Panel */
.variable-buttons-panel {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 12px;
  margin-bottom: 20px;
}

.variable-buttons-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.variable-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.var-btn {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  color: #0969da;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.var-btn:hover {
  background: #f6f8fa;
  border-color: #0969da;
  transform: translateY(-1px);
}

.var-btn:active {
  background: #e6f3ff;
  transform: translateY(0);
}

.button-group {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.submit-btn {
  padding: 15px 30px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1769aa;
}

.reset-btn {
  padding: 15px 30px;
  background: #757575;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.reset-btn:hover {
  background: #616161;
}

.clear-btn {
  padding: 15px 30px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.clear-btn:hover {
  background: #d32f2f;
}

.back-btn {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 24px;
  background: #888;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Success Page Styles */
.success-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}

.success-title {
  color: #4CAF50;
  text-align: center;
  margin-bottom: 20px;
}

.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #333;
}

.info-value {
  color: #666;
  font-family: monospace;
}

.download-btn {
  display: inline-block;
  padding: 15px 30px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 10px 5px;
}

/* Markdown Editor Styles */
.markdown-editor {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.markdown-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #e9ecef;
  color: #333;
}

.tab-btn.active {
  background: white;
  color: #2196F3;
  font-weight: 600;
  border-bottom: 2px solid #2196F3;
}

.markdown-content {
  position: relative;
}

.markdown-editor textarea {
  border: none;
  border-radius: 0;
  resize: vertical;
  min-height: 150px;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.markdown-editor textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #2196F3;
}

.markdown-preview {
  padding: 15px;
  min-height: 150px;
  background: white;
  font-family: inherit;
  line-height: 1.6;
  color: #333;
}

/* Markdown Preview Content Styles */
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 1em 0 0.5em 0;
  color: #2c3e50;
  font-weight: 600;
}

.markdown-preview h1 { font-size: 1.8em; border-bottom: 2px solid #eee; padding-bottom: 0.3em; }
.markdown-preview h2 { font-size: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 0.3em; }
.markdown-preview h3 { font-size: 1.3em; }
.markdown-preview h4 { font-size: 1.1em; }
.markdown-preview h5 { font-size: 1em; }
.markdown-preview h6 { font-size: 0.9em; color: #666; }

.markdown-preview p {
  margin: 0.8em 0;
  line-height: 1.6;
}

.markdown-preview ul,
.markdown-preview ol {
  margin: 0.8em 0;
  padding-left: 2em;
}

.markdown-preview li {
  margin: 0.3em 0;
}

.markdown-preview code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d73a49;
}

.markdown-preview pre {
  background: #f8f8f8;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-preview pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85em;
}

.markdown-preview blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0 1em;
  color: #6a737d;
  margin: 1em 0;
}

.markdown-preview strong {
  font-weight: 600;
  color: #24292e;
}

.markdown-preview em {
  font-style: italic;
}

.markdown-preview a {
  color: #0366d6;
  text-decoration: none;
}

.markdown-preview a:hover {
  text-decoration: underline;
}

.markdown-preview table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

.markdown-preview th,
.markdown-preview td {
  border: 1px solid #dfe2e5;
  padding: 8px 12px;
  text-align: left;
}

.markdown-preview th {
  background: #f6f8fa;
  font-weight: 600;
}

.markdown-preview hr {
  border: none;
  border-top: 1px solid #e1e4e8;
  margin: 2em 0;
}