        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
          font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          min-height: 100vh;
          padding: 20px;
        }
        .container {
          max-width: 1200px;
          margin: 0 auto;
          background: rgba(255, 255, 255, 0.95);
          border-radius: 15px;
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
          overflow: hidden;
        }
        .header {
          background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
          color: white;
          padding: 30px;
          text-align: center;
        }
        .header h1 {
          font-size: 2.5em;
          margin-bottom: 10px;
          font-weight: 300;
        }
        .header p { font-size: 1.1em; opacity: 0.9;}
        .main-content { padding: 40px; }

        .menu-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 20px;
          margin-bottom: 30px;
        }

        .menu-card {
          background: white;
          border-radius: 10px;
          padding: 25px;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          transition: all 0.3s ease;
          cursor: pointer;
          border: 2px solid transparent;
          text-align: center;
        }

        .menu-card:hover {
          transform: translateY(-5px);
          box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
          border-color: #3498db;
        }

        .menu-card h3 {
          color: #2c3e50;
          margin-bottom: 15px;
          font-size: 1.3em;
        }

        .menu-card p {
          color: #7f8c8d;
          line-height: 1.6;
        }

        .menu-card.full-diagnostic {
          background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
          color: white;
        }

        .menu-card.full-diagnostic h3,
.menu-card.full-diagnostic p {
  color: white;
}

.menu-card.critical {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.menu-card.critical h3,
.menu-card.critical p {
  color: white;
}

.menu-card.warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.menu-card.warning h3,
.menu-card.warning p {
  color: white;
}

.btn {
  background: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  margin: 5px;
}

.btn:hover { background: #2980b9;}
.btn-success { background: #27ae60;}
.btn-success:hover { background: #229954;}
.btn-danger { background: #e74c3c;}
.btn-danger:hover { background: #c0392b;}
.btn-warning { background: #f39c12;}
.btn-warning:hover { background: #e67e22;}

.loading {
  display: none;
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 20px 0;
}

.loading.active { display: block;}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }

.result-container {
  margin-top: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  display: none;
}

.result-container.active { display: block;}

.result-container.success {
  border-left-color: #27ae60;
  background: #d4edda;
}

.result-container.error {
  border-left-color: #e74c3c;
  background: #f8d7da;
}

.result-container.warning {
  border-left-color: #f39c12;
  background: #fff3cd;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
}

.result-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2em;
}

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

.result-content {
  font-family: 'Courier New', monospace;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.6;
  max-height: 500px;
  overflow-y: auto;
}

.result-summary {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #2c3e50;
}

.summary-value {
  font-family: monospace;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
}

.summary-value.success {
  background: #d4edda;
  color: #155724;
}

.summary-value.error {
  background: #f8d7da;
  color: #721c24;
}

.summary-value.warning {
  background: #fff3cd;
  color: #856404;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: none;
}

.alert.active { display: block;}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.test-section {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.test-section.success {
  border-left-color: #27ae60;
}

.test-section.error {
  border-left-color: #e74c3c;
}

.test-section.warning {
  border-left-color: #f39c12;
}

.test-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #2c3e50;
}

.test-details {
  font-family: monospace;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  white-space: pre-wrap;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  width: 0%;
  transition: width 0.3s ease;
}

.system-info {
  background: #e8f4fd;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #2196F3;
}

.system-info h4 {
  color: #1976D2;
  margin-bottom: 10px;
}

.system-info p {
  color: #1976D2;
  margin-bottom: 5px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
