/* Google Cloud Platform Style Customizations */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Transition effects */
.view-pane {
  transition: opacity 0.15s ease-in-out;
}

/* Sidebar Active Elements */
.sidebar-item {
  color: #5f6368;
  border-left: 3px solid transparent;
}
.sidebar-item:hover {
  background-color: #f1f3f4;
  color: #202124;
}
.sidebar-item.active {
  background-color: #e8f0fe;
  color: #1a73e8;
  border-left-color: #1a73e8;
}

/* Custom GCP animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-fade-in {
  animation: fadeIn 0.15s ease-out forwards;
}

/* Collapsed Sidebar states */
body.sidebar-collapsed #sidebar {
  width: 0px;
  overflow: hidden;
  border-right-width: 0px;
}

/* Custom status lights */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.status-running {
  background-color: #34a853;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.4);
}
.status-terminated {
  background-color: #ea4335;
  box-shadow: 0 0 8px rgba(234, 67, 53, 0.4);
}
.status-provisioning {
  background-color: #fbbc05;
  box-shadow: 0 0 8px rgba(251, 188, 5, 0.4);
  animation: pulse 1.5s infinite;
}

/* Terminal Custom Styles */
#terminal-logs {
  background-color: #030712;
  color: #38bdf8;
}
#terminal-logs::-webkit-scrollbar {
  width: 4px;
}
#terminal-logs::-webkit-scrollbar-track {
  background: #0b0f19;
}
#terminal-logs::-webkit-scrollbar-thumb {
  background: #1f2937;
}

/* Utility shadow classes */
.shadow-gcp {
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

/* Simple Toast Animation */
.toast-card {
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}