/* Hosting Panel Styles */

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Badges */
.badge {
  font-size: 0.75em;
  padding: 0.375rem 0.75rem;
}

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

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: rgba(0,0,0,0.02);
}

/* Buttons */
.btn-group-sm > .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Progress bars */
.progress {
  height: 8px;
  border-radius: 4px;
}

/* Code blocks */
pre {
  font-size: 0.875rem;
  line-height: 1.4;
}

code {
  background-color: #f8f9fa;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Status indicators */
.status-running {
  color: #28a745;
}

.status-stopped {
  color: #6c757d;
}

.status-error {
  color: #dc3545;
}

/* File explorer */
.file-icon {
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* Deployment logs */
.deployment-logs {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 1rem;
  border-radius: 0.375rem;
  max-height: 500px;
  overflow-y: auto;
}

/* System stats cards */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.stats-card h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.stats-card small {
  opacity: 0.8;
}

/* SSL certificate status */
.ssl-valid {
  color: #28a745;
}

.ssl-expiring {
  color: #ffc107;
}

.ssl-expired {
  color: #dc3545;
}

/* Domain status */
.domain-active {
  border-left: 4px solid #28a745;
}

.domain-inactive {
  border-left: 4px solid #6c757d;
}

/* Process memory usage */
.memory-usage {
  font-family: monospace;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-group-sm {
    display: flex;
    flex-direction: column;
  }
  
  .btn-group-sm > .btn {
    margin-bottom: 0.25rem;
    border-radius: 0.25rem !important;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Breadcrumb */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

/* Modal improvements */
.modal-xl .modal-dialog {
  max-width: 90%;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

/* Form improvements */
.form-label {
  font-weight: 600;
  color: #495057;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.5rem;
}

/* Tooltips */
[title] {
  cursor: help;
}

/* Environment variables */
.env-variable-row {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Git status */
.git-clean {
  color: #28a745;
}

.git-dirty {
  color: #ffc107;
}

/* Deployment status */
.deployment-pending {
  color: #6c757d;
}

.deployment-running {
  color: #007bff;
}

.deployment-success {
  color: #28a745;
}

.deployment-failed {
  color: #dc3545;
}