* {
  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%);
  color: #333;
  height: 100vh;
  overflow: hidden;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
}

.header-info {
  font-size: 14px;
  opacity: 0.9;
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.nav-menu {
  margin-bottom: 30px;
}

.nav-item {
  padding: 15px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f5f7fa;
}

.nav-item.active {
  background: #f0f4ff;
  border-left-color: #667eea;
  color: #667eea;
}

.nav-icon {
  font-size: 20px;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
}

.service-status-summary {
  padding: 0 20px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.service-status-summary h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.status-label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.status-indicator {
  font-size: 32px;
  color: #ccc;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  display: inline-block;
  line-height: 1;
}

.status-indicator.running {
  color: #4CAF50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.status-indicator.stopped {
  color: #f44336;
  text-shadow: 0 0 10px rgba(244, 67, 54, 0.6);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

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

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

.dashboard-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

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

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.card-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #999;
}

.card-status.running {
  background: #e8f5e9;
  color: #2e7d32;
}

.card-status.stopped {
  background: #ffebee;
  color: #f44336;
}

.card-body {
  color: #666;
}

.card-body p {
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  gap: 24px;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.btn-start {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.btn-start:hover {
  background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.45);
}

.btn-start:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-stop {
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.35);
}

.btn-stop:hover {
  background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.45);
}

.btn-stop:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-clear {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
}

.btn-clear:hover {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.45);
}

.btn-config {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
}

.btn-config:hover {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.45);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.service-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.service-status {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 15px;
  background: #f5f5f5;
  color: #999;
}

.service-status.running {
  background: #e8f5e9;
  color: #2e7d32;
}

.service-status.stopped {
  background: #ffebee;
  color: #f44336;
}

.service-description {
  color: #666;
  margin-bottom: 20px;
}

.service-description p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.service-description ul {
  list-style: none;
  padding-left: 0;
}

.service-description li {
  font-size: 13px;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.service-description li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.service-controls {
  display: flex;
  gap: 24px;
}

.logs-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

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

.logs-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.logs-controls {
  display: flex;
  gap: 24px;
  align-items: center;
}

.logs-controls select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

.logs-controls select:focus {
  outline: none;
  border-color: #667eea;
}

.logs-content {
  flex: 1;
  overflow-y: auto;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.recent-logs {
  max-height: 200px;
  overflow-y: auto;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.log-entry {
  display: flex;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.log-time {
  color: #999;
  min-width: 80px;
}

.log-service {
  color: #667eea;
  min-width: 120px;
  font-weight: 600;
}

.log-message {
  flex: 1;
  color: #333;
  word-break: break-word;
}

.log-message.error {
  color: #f44336;
}

.log-message.success {
  color: #2e7d32;
}

.log-message.warning {
  color: #ff9800;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
