* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
}

.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #059669;
  color: white;
}

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

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Search Box */
.search-box {
  margin-bottom: 20px;
}

.search-box form {
  display: flex;
  gap: 10px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.search-btn {
  padding: 10px 20px;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}

.search-btn:hover {
  background-color: #e5e7eb;
}

/* Results Count */
.results-count {
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Embeds List */
.embeds-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.embed-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.embed-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
}

.embed-meta {
  display: flex;
  gap: 15px;
  align-items: center;
}

.embed-date {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Embed URL Display on Dashboard */
.embed-url-display {
  margin-bottom: 15px;
}

.url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f9fafb;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.url-input-readonly {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #374151;
  font-family: 'Courier New', monospace;
}

.url-input-readonly:focus {
  outline: none;
}

.copy-btn-small {
  padding: 6px 10px;
  background-color: #e5e7eb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.copy-btn-small:hover {
  background-color: #d1d5db;
}

.copy-btn-small:active {
  background-color: #c4c8cc;
}

.embed-actions {
  display: flex;
  gap: 10px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  color: #6b7280;
}

.empty-state a {
  color: #3b82f6;
  text-decoration: none;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* Form */
.embed-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  font-family: 'Courier New', monospace;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Embed URL Box */
.embed-url-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.url-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.url-icon {
  font-size: 1.2rem;
}

.url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #374151;
}

.url-input:focus {
  outline: none;
}

.copy-btn {
  padding: 6px 12px;
  background-color: #e5e7eb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.copy-btn:hover {
  background-color: #d1d5db;
}

.url-hint {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111827;
}

.login-header p {
  color: #6b7280;
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .embed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .login-box {
    margin: 20px;
    padding: 30px 20px;
  }
}
