/* Stylings für die Dev-Tools-Seite */

.auth-container {
  max-width: 600px;
  margin: 2rem auto;
}

.auth-container .widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-container .widget-header {
  background-color: #334466;
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
}

.auth-container .widget-header i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.auth-container .widget-content {
  padding: 1.5rem;
}

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

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

.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.btn-warning {
  background-color: #ff9500;
  color: white;
}

.btn-warning:hover {
  background-color: #e6840e;
}

/* Admin Actions Styling */
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 600px) {
  .admin-actions {
    flex-direction: row;
  }
  
  .admin-actions .btn {
    flex: 1;
  }
}

/* Server-Info Styling */
.dev-tools-container {
  margin-top: 2rem;
}

.server-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #555;
}

.info-value {
  font-family: 'Courier New', monospace;
  background-color: #f8f8f8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

/* Fehler-Anzeige */
.error {
  color: #d32f2f;
  font-weight: 500;
}

/* Konsolenlogs-Widget Styling */
.console-logs-widget {
  margin-top: 2rem;
}

.console-logs-widget .widget-header {
  display: flex;
  justify-content: space-between;
}

.console-logs-widget .widget-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-small:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-small.active {
  background-color: rgba(255, 255, 255, 0.4);
}

#console-logs-container {
  height: 400px;
  overflow-y: auto;
  background-color: #1e1e1e;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #d4d4d4;
  padding: 0.5rem;
}

.console-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.log-entry {
  margin: 0;
  padding: 2px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: #8a8a8a;
  font-size: 0.75rem;
  min-width: 180px;
  padding-right: 8px;
}

.log-level {
  font-weight: bold;
  min-width: 70px;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 1px 4px;
  border-radius: 3px;
}

.log-message {
  flex: 1;
}

.log-system {
  color: #4ca8ff;
  font-weight: bold;
  min-width: 70px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Log Level Colors */
.log-error .log-level {
  background-color: #5f1818;
  color: #ff6666;
}

.log-warning .log-level {
  background-color: #5f4c18;
  color: #ffcc66;
}

.log-info .log-level {
  background-color: #185f5f;
  color: #66ffff;
}

.log-debug .log-level {
  background-color: #18335f;
  color: #66aaff;
}

/* Responsives Design */
@media (min-width: 768px) {
  .server-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .info-label {
    margin-bottom: 0.25rem;
  }
  
  .log-entry {
    flex-direction: column;
    gap: 2px;
  }
  
  .log-time, .log-level, .log-system {
    min-width: auto;
  }
}

/* Fullscreen-Modus für Konsolen-Logs */
#console-logs-container.fullscreen {
  background-color: #1e1e1e;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  padding: 1rem;
  overflow: auto;
  box-sizing: border-box;
}

#console-logs-container.fullscreen .console-output {
  font-size: 1rem;
  line-height: 1.6;
}

/* Verbesserte Log-Einträge im Fullscreen-Modus */
#console-logs-container.fullscreen .log-entry {
  padding: 4px 0;
}

#console-logs-container.fullscreen .log-time {
  min-width: 200px;
  font-size: 0.85rem;
}

#console-logs-container.fullscreen .log-level {
  min-width: 80px;
  font-size: 0.85rem;
  padding: 2px 6px;
}

#console-logs-container.fullscreen .log-message {
  font-size: 1rem;
}

/* === E-Mail Test Widget Styles === */

.email-test-widget .widget-content {
  padding: 1.5rem;
}

.email-test-form {
  margin-bottom: 2rem;
}

.email-test-form .form-group {
  margin-bottom: 1.5rem;
}

.email-test-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.email-test-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.email-test-form .form-control:focus {
  outline: none;
  border-color: #0079C7;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.email-test-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: 'Courier New', monospace;
  line-height: 1.4;
}

.email-test-form select.form-control {
  cursor: pointer;
  background-color: white;
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.form-actions .btn {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #0079C7, #2980b9);
  color: white;
  border: none;
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
}

.form-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(52, 152, 219, 0.4);
}

.form-actions .btn-secondary {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  color: white;
  border: none;
  box-shadow: 0 3px 6px rgba(149, 165, 166, 0.3);
}

.form-actions .btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(149, 165, 166, 0.4);
}

.form-actions .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* E-Mail Test Ergebnisse */
.email-test-results {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e1e8ed;
}

.email-test-results h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.test-output {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background: #f8f9fa;
}

.test-result {
  padding: 1rem;
  border-bottom: 1px solid #e1e8ed;
  transition: background-color 0.3s ease;
}

.test-result:last-child {
  border-bottom: none;
}

.test-result:hover {
  background-color: #ffffff;
}

.test-result.success {
  border-left: 4px solid #27ae60;
}

.test-result.error {
  border-left: 4px solid #e74c3c;
}

.test-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.test-result-header i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.test-result.success i {
  color: #27ae60;
}

.test-result.error i {
  color: #e74c3c;
}

.test-result-header .timestamp {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.test-result-message {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.test-result-details {
  font-size: 0.9rem;
  color: #6c757d;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  margin-top: 0.5rem;
}

/* E-Mail Vorschau Modal */
.email-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
}

.email-preview-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.email-preview-header {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.email-preview-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #495057;
}

.email-preview-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.email-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* Widget-spezifische Header-Buttons */
.email-test-widget .widget-actions .btn {
  padding: 0.5rem;
  font-size: 0.85rem;
  min-width: auto;
}

.email-test-widget .widget-actions .btn i {
  margin: 0;
}

/* Responsive Design für E-Mail Widget */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
  
  .email-preview-modal {
    padding: 1rem;
  }
  
  .email-preview-content {
    width: 100%;
    height: 80vh;
  }
  
  .email-preview-header {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .email-test-form .form-control {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .email-test-form textarea.form-control {
    min-height: 100px;
  }
  
  .form-actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .email-preview-header h3 {
    font-size: 1.1rem;
  }
  
  .close-btn {
    font-size: 1.5rem;
  }
} 