/* General Styles */
:root {
  --sidebar-width: 240px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: #343a40;
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.logo i {
  color: #61dafb;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

/* Content */
.content {
  margin-left: var(--sidebar-width);
  padding: 1rem;
  min-height: 100vh;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem;
}

/* Logs */
.log-container {
  height: 300px;
  overflow-y: auto;
  background-color: #212529;
  color: #f8f9fa;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.5rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
}

.logs {
  white-space: pre-wrap;
  word-break: break-all;
}

.log-line {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* Process Table */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  color: #495057;
}

.table td {
  vertical-align: middle;
}

/* Forms */
.form-control {
  padding: 0.5rem 0.75rem;
  border-color: #ced4da;
}

.form-control:focus {
  border-color: #61dafb;
  box-shadow: 0 0 0 0.25rem rgba(97, 218, 251, 0.25);
}

/* Buttons */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    width: 60px;
    padding: 0.5rem;
  }
  
  .sidebar .logo span,
  .sidebar .nav-link span {
    display: none;
  }
  
  .sidebar .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
  }
  
  .sidebar .nav-link i {
    margin: 0;
  }
  
  .content {
    margin-left: 60px;
  }
}

/* Animation for loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #0d6efd;
  animation: spin 1s linear infinite;
}

/* Process status colors */
.process-status.online {
  color: #198754;
}

.process-status.stopping, 
.process-status.launching {
  color: #ffc107;
}

.process-status.stopped,
.process-status.errored {
  color: #dc3545;
}

/* Deployment section */
.deployment-type-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deployment-type-button {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deployment-type-button:hover {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
}

.deployment-type-button.active {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
}

.deployment-type-button i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.deployment-type-button.active i {
  color: #0d6efd;
}

/* File dropzone */
.file-dropzone {
  border: 2px dashed #ced4da;
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
}

.file-dropzone i {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.file-list {
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.file-item i {
  margin-right: 0.5rem;
}

.file-item .remove-file {
  color: #dc3545;
  cursor: pointer;
}

/* Error handling */
.error-container {
  text-align: center;
  padding: 2rem;
}

.error-container i {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-code {
  font-size: 1.5rem;
  font-weight: bold;
}

.error-message {
  margin-top: 1rem;
  color: #6c757d;
} 