/* Custom Styles for Admin Dashboard */

/* Color Scheme: Light = Skype-like (light blue/white), Dark = Telegram-like (dark blue) */

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(30, 42, 58, 0.5);
  border: 1px solid rgba(43, 82, 120, 0.3);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: rgb(220 252 231);
  color: rgb(22 101 52);
}

.dark .badge-success {
  background-color: rgba(20, 83, 45, 0.3);
  color: rgb(74 222 128);
}

.badge-warning {
  background-color: rgb(254 249 195);
  color: rgb(113 63 18);
}

.dark .badge-warning {
  background-color: rgba(113, 63, 18, 0.3);
  color: rgb(250 204 21);
}

.badge-error {
  background-color: rgb(254 226 226);
  color: rgb(153 27 27);
}

.dark .badge-error {
  background-color: rgba(153, 27, 27, 0.3);
  color: rgb(248 113 113);
}

.badge-info {
  background-color: rgb(219 234 254);
  color: rgb(30 64 175);
}

.dark .badge-info {
  background-color: rgba(30, 64, 175, 0.3);
  color: rgb(147 197 253);
}

.badge-running {
  background-color: rgb(219 234 254);
  color: rgb(30 64 175);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.dark .badge-running {
  background-color: rgba(30, 64, 175, 0.3);
  color: rgb(147 197 253);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgb(191 219 254);
  padding: 1.5rem;
}

.dark .card {
  background-color: #1e2a35;
  border-color: #2b5278;
}

.card-glass {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(191, 219, 254, 0.5);
  padding: 1.5rem;
}

.dark .card-glass {
  background-color: rgba(30, 42, 58, 0.8);
  border-color: rgba(43, 82, 120, 0.5);
}

/* Active Navigation Link */
.nav-link.active {
  background-color: rgb(37 99 235);
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .nav-link.active {
  background-color: #5288c1;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(219 234 254);
}

.dark ::-webkit-scrollbar-track {
  background: #1e2a35;
}

::-webkit-scrollbar-thumb {
  background: rgb(147 197 253);
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #5288c1;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(96 165 250);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #5d9bd4;
}

/* Terminal/Log Viewer Styles */
.terminal {
  background-color: rgb(15 23 42);
  color: rgb(74 222 128);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: auto;
}

.log-info {
  color: rgb(96 165 250);
}

.log-warn {
  color: rgb(250 204 21);
}

.log-error {
  color: rgb(248 113 113);
}

/* Progress Bar Animation */
.progress-bar {
  height: 0.5rem;
  background-color: rgb(191 219 254);
  border-radius: 9999px;
  overflow: hidden;
}

.dark .progress-bar {
  background-color: #2b5278;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
  border-radius: 9999px;
  transition: all 300ms;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Glow Effects */
.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.glow-yellow {
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}

/* Chart Container */
.chart-container {
  position: relative;
  background-color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgb(191 219 254);
  height: 300px;
}

.dark .chart-container {
  background-color: #1e2a35;
  border-color: #2b5278;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search Bar Styles */
.search-bar {
  position: relative;
}

.search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
}

.search-input:focus + .search-shortcut-hint,
.search-input:not(:placeholder-shown) + .search-shortcut-hint {
  display: none;
}

.search-dropdown {
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-item {
  text-decoration: none;
  color: inherit;
}

.search-item:hover {
  text-decoration: none;
}

.search-item-shortcut kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1;
}

.search-section-header {
  user-select: none;
}

.collapsible-header {
  cursor: pointer;
}

.search-loading-content {
  min-height: 100px;
}

.no-results-content {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Search bar responsive adjustments */
@media (max-width: 1024px) {
  .search-shortcut-hint {
    display: none !important;
  }
}

