/* Admin-specific styles */

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

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  line-height: 1.6; 
  color: #333; 
  background: #f5f5f5; 
}

/* HTML Email Styling */
.html-email-container {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  padding: 1rem;
  margin: 1rem 0;
}

.html-email-container iframe {
  width: 100%;
  min-height: 700px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: white;
  display: block;
  margin-bottom: 0.5rem;
}

.html-email-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-small {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  color: #4a5568;
  transition: background-color 0.2s;
}

.btn-small:hover {
  background: #edf2f7;
}

.raw-html-content {
  margin-top: 0.5rem;
  padding: 1rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #2d3748;
  overflow-x: auto;
}

/* HTML content badge */
.html-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: #fbd38d;
  color: #744210;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 3px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

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

header { 
  background: #2d3748; 
  color: white; 
  padding: 1rem 0; 
  margin-bottom: 2rem; 
}

header .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

header h1 { 
  font-size: 1.5rem; 
}

header nav a { 
  color: white; 
  text-decoration: none; 
  margin-left: 1.5rem; 
}

header nav a:hover { 
  text-decoration: underline; 
}

.notice { 
  background: #48bb78; 
  color: white; 
  padding: 1rem; 
  margin-bottom: 1rem; 
  border-radius: 4px; 
}

.alert { 
  background: #f56565; 
  color: white; 
  padding: 1rem; 
  margin-bottom: 1rem; 
  border-radius: 4px; 
}

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

.card h2 { 
  margin-bottom: 1rem; 
  color: #2d3748; 
}

table { 
  width: 100%; 
  border-collapse: collapse; 
}

th { 
  background: #edf2f7; 
  text-align: left; 
  padding: 0.75rem; 
  font-weight: 600; 
}

td { 
  padding: 0.75rem; 
  border-bottom: 1px solid #e2e8f0; 
}

.btn { 
  display: inline-block; 
  padding: 0.5rem 1rem; 
  background: #4299e1; 
  color: white; 
  text-decoration: none; 
  border-radius: 4px; 
  border: none; 
  cursor: pointer; 
}

.btn:hover { 
  background: #3182ce; 
}

.btn-secondary { 
  background: #718096; 
}

.btn-secondary:hover { 
  background: #4a5568; 
}

.btn-danger { 
  background: #f56565; 
}

.btn-danger:hover { 
  background: #e53e3e; 
}

.btn-small { 
  padding: 0.25rem 0.5rem; 
  font-size: 0.875rem; 
}

.form-group { 
  margin-bottom: 1rem; 
}

.form-group label { 
  display: block; 
  margin-bottom: 0.25rem; 
  font-weight: 600; 
}

.form-group input, .form-group select, .form-group textarea { 
  width: 100%; 
  padding: 0.5rem; 
  border: 1px solid #cbd5e0; 
  border-radius: 4px; 
}

.filters { 
  display: flex; 
  gap: 1rem; 
  align-items: end; 
  margin-bottom: 1.5rem; 
  padding: 1rem; 
  background: #f8f9fa; 
  border-radius: 4px; 
}

.filters .form-group {
  margin-bottom: 0;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #374151;
}

.tab-button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Private Note Styling */
.reply.private-note {
  border-left: 4px solid #fbbf24;
  background-color: #fefce8;
}

.private-note-badge {
  display: inline-block;
  background-color: #fbbf24;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.warning-card {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.warning-card h4 {
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.warning-card p {
  color: #b45309;
  font-size: 0.875rem;
}
