/* Main styles - Enhanced with marketplace integration */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --orange-color: #fd7e14;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  
  /* Enhanced theme variables for marketplace */
  --hostinator-bg-primary: #f5f8fa;
  --hostinator-bg-secondary: #ffffff;
  --hostinator-text-primary: #343a40;
  --hostinator-text-secondary: #6c757d;
  --hostinator-border-color: rgba(0, 0, 0, 0.125);
  --hostinator-border-radius: 0.375rem;
  --hostinator-spacing-sm: 0.5rem;
  --hostinator-spacing-md: 1rem;
  --hostinator-spacing-lg: 1.5rem;
  --hostinator-spacing-xl: 3rem;
  --hostinator-transition: all 0.3s ease;
  --hostinator-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --hostinator-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --hostinator-shadow-button: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  --hostinator-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --hostinator-font-weight-normal: 400;
  --hostinator-font-weight-semibold: 600;
  --hostinator-font-weight-bold: 700;
}

body {
  font-family: var(--hostinator-font-family);
  background-color: var(--hostinator-bg-primary);
  transition: background-color 0.3s, color 0.3s;
}

/* Sidebar styles */
.sidebar {
  background-color: var(--hostinator-bg-secondary);
  box-shadow: var(--hostinator-shadow);
  height: 100vh;
  position: fixed;
  padding-top: var(--hostinator-spacing-md);
}

.sidebar-header {
  color: var(--primary-color);
  padding: var(--hostinator-spacing-sm) var(--hostinator-spacing-md);
}

.sidebar .nav-link {
  color: var(--hostinator-text-secondary);
  padding: var(--hostinator-spacing-sm) var(--hostinator-spacing-md);
  margin-bottom: 0.25rem;
  border-radius: var(--hostinator-border-radius);
  transition: var(--hostinator-transition);
}

.sidebar .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar .nav-link.active {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  font-weight: var(--hostinator-font-weight-semibold);
  border-left: 3px solid var(--primary-color);
}

.sidebar .nav-link i {
  margin-right: var(--hostinator-spacing-sm);
}

/* Main content styles */
main {
  padding-top: var(--hostinator-spacing-lg);
}

/* Card styles */
.card {
  border: none;
  box-shadow: var(--hostinator-shadow);
  margin-bottom: var(--hostinator-spacing-lg);
  border-radius: var(--hostinator-border-radius);
  transition: var(--hostinator-transition);
  background-color: var(--hostinator-bg-secondary);
}

.card:hover {
  box-shadow: var(--hostinator-shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  background-color: var(--hostinator-bg-secondary);
  border-bottom: 1px solid var(--hostinator-border-color);
  padding: var(--hostinator-spacing-md);
}

/* Marketplace specific styles */
.marketplace-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  color: white;
  padding: var(--hostinator-spacing-xl) var(--hostinator-spacing-lg);
  border-radius: var(--hostinator-border-radius);
  margin-bottom: var(--hostinator-spacing-lg);
}

.marketplace-hero h2 {
  font-weight: var(--hostinator-font-weight-bold);
  font-size: 2.5rem;
}

.marketplace-hero .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--hostinator-spacing-sm);
}

/* App card specific styles */
.app-card .card {
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-card .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.app-card .app-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.app-card .app-icon img {
  max-height: 80px;
  max-width: 80px;
  object-fit: contain;
  transition: var(--hostinator-transition);
}

.app-card:hover .app-icon img {
  transform: scale(1.1);
}

.app-card .card-title {
  font-weight: var(--hostinator-font-weight-semibold);
  color: var(--hostinator-text-primary);
  margin-bottom: var(--hostinator-spacing-sm);
}

.app-card .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--hostinator-spacing-md);
}

/* Button styles */
.btn {
  border-radius: var(--hostinator-border-radius);
  font-weight: var(--hostinator-font-weight-semibold);
  transition: var(--hostinator-transition);
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: var(--hostinator-shadow-button);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-outline-primary.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Category filter buttons */
#categoryFilters .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

/* Search input styling */
.input-group .form-control {
  border-radius: var(--hostinator-border-radius);
  border: 1px solid var(--hostinator-border-color);
  transition: var(--hostinator-transition);
}

.input-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Deployment type badges - FIXED COLORS */
.deployment-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--hostinator-border-radius);
  font-size: 0.75rem;
  font-weight: var(--hostinator-font-weight-semibold);
}

.deployment-type.wordpress {
  background-color: #21759b;
  color: white;
}

.deployment-type.mysql {
  background-color: #00758f;
  color: white;
}

.deployment-type.nextcloud {
  background-color: #0082c9;
  color: white;
}

.deployment-type.moodle {
  background-color: #f98012;
  color: white;
}

.deployment-type.zabbix {
  background-color: #d40000;
  color: white;
}

.deployment-type.postiz {
  background-color: #9400d4;
  color: white;
}

.deployment-type.joomla {
  background-color: #082b85;
  color: white;
}

.deployment-type.ghost {
  background-color: #b809db;
  color: white;
}

/* FIXED: Metabase with better contrast */
.deployment-type.metabase {
  background-color: #0099cc;
  color: white;
}

.deployment-type.react {
  background-color: #61dafb;
  color: #282c34;
}

/* FIXED: Changed from node\.js to nodejs */
.deployment-type.nodejs {
  background-color: #68a063;
  color: white;
}

.deployment-type.python {
  background-color: #3776ab;
  color: white;
}

.deployment-type.jupyter {
  background-color: #de4b07;
  color: white;
}

/* Badge styles for marketplace */
.badge {
  font-size: 0.75rem;
  font-weight: var(--hostinator-font-weight-semibold);
  padding: 0.375rem 0.5rem;
  border-radius: var(--hostinator-border-radius);
}

/* Deployment logs */
.deployment-logs {
  max-height: 300px;
  overflow-y: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  background-color: var(--dark-color);
  color: var(--light-color);
  border-radius: var(--hostinator-border-radius);
}

/* Login page */
.login-page {
  background-color: var(--hostinator-bg-primary);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal enhancements */
.modal-content {
  border-radius: var(--hostinator-border-radius);
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid var(--hostinator-border-color);
  padding: var(--hostinator-spacing-md) var(--hostinator-spacing-lg);
}

.modal-body {
  padding: var(--hostinator-spacing-lg);
}

.modal-footer {
  border-top: 1px solid var(--hostinator-border-color);
  padding: var(--hostinator-spacing-md) var(--hostinator-spacing-lg);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    height: auto;
  }
  
  .marketplace-hero h2 {
    font-size: 2rem;
  }
  
  .marketplace-hero .lead {
    font-size: 1.1rem;
  }
  
  #categoryFilters {
    justify-content: center;
  }
  
  .app-card {
    margin-bottom: var(--hostinator-spacing-md);
  }
}

@media (max-width: 576px) {
  .marketplace-hero {
    padding: var(--hostinator-spacing-lg) var(--hostinator-spacing-md);
  }
  
  .marketplace-hero h2 {
    font-size: 1.75rem;
  }
  
  #categoryFilters .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}
