/* Processes Management Styles */

.processes-container {
  padding: 0;
}

.processes-container .cpanel-card {
  margin-bottom: 25px;
}

.processes-container .cpanel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.processes-container .table-container {
  overflow-x: auto;
}

.processes-container .cpanel-table {
  font-size: 0.9rem;
  margin: 0;
}

.processes-container .cpanel-table th {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
}

.processes-container .cpanel-table td {
  padding: 12px;
  vertical-align: middle;
}

/* App status badges */
.app-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-status-badge.running {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.app-status-badge.stopped {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Action buttons container */
.action-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.action-buttons .cpanel-btn {
  font-size: 0.8rem;
  padding: 6px 10px;
  min-width: auto;
  white-space: nowrap;
}

.action-buttons .cpanel-btn i {
  margin-right: 4px;
  font-size: 0.75rem;
}

/* App info styling */
.app-info {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.app-path {
  font-size: 0.8rem;
  color: #999;
  font-family: 'Courier New', monospace;
}

/* Process table specific styles */
.process-table {
  font-size: 0.85rem;
}

.process-table td {
  padding: 8px 12px;
}

.process-table .process-command {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .processes-container .cpanel-table th,
  .processes-container .cpanel-table td {
    padding: 8px;
    font-size: 0.8rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 2px;
  }
  
  .action-buttons .cpanel-btn {
    width: 100%;
    justify-content: center;
  }
  
  .app-info {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .processes-container .cpanel-card-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .processes-container .table-container {
    font-size: 0.75rem;
  }
  
  .processes-container .cpanel-table th,
  .processes-container .cpanel-table td {
    padding: 6px;
  }
}

/* Loading states */
.cpanel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cpanel-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* Modal improvements */
.cpanel-modal .logs-content {
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 70px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.notification.success {
  background: #28a745;
}

.notification.error {
  background: #dc3545;
}