/*
 * Abim Stream - Automated Multi-Channel 24/7 YouTube Live Streaming
 * Eye-Friendly Soft Dark & Slate Theme
 */

@font-face {
  font-family: 'tabler-icons';
  src: url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.30.0/fonts/tabler-icons.woff2') format('woff2');
  font-display: block;
  font-weight: normal;
  font-style: normal;
}

.ti {
  font-family: 'tabler-icons' !important;
  visibility: visible !important;
  opacity: 1;
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --bg-base: #0f141c;
  --bg-card: #161e2c;
  --bg-elevated: #1d2738;
  --border-color: #243147;
  --border-focus: #4f46e5;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
}

/* Sidebar Navigation */
.sidebar-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  width: 3.75rem;
  margin: 0 auto 0.6rem auto;
  color: #94a3b8;
  border-radius: 0.85rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.sidebar-icon:hover {
  background-color: #1d2738;
  color: #f8fafc;
}

.sidebar-icon.active {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}

.sidebar-tooltip {
  position: absolute;
  width: auto;
  padding: 0.45rem 0.75rem;
  left: 4.8rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
  background-color: #1d2738;
  border: 1px solid #2d3d57;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.9);
  opacity: 0;
  transform-origin: left center;
  z-index: 50;
}

.sidebar-icon:hover .sidebar-tooltip {
  transform: scale(1);
  opacity: 1;
}

/* Modal styling */
.modal-overlay {
  backdrop-filter: blur(6px);
  background: rgba(11, 15, 23, 0.75);
  transition: opacity 0.2s ease-in-out;
}

.modal-container {
  transform: scale(0.96);
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
  opacity: 1;
}

/* Custom Soft Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #131b26;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #253347;
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #33435c;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #253347 #131b26;
}

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

.ti.animate-spin {
  animation: spin 1s linear infinite !important;
  display: inline-block;
}

/* Character Counter Progress */
.char-meter {
  height: 4px;
  border-radius: 9999px;
  background-color: #243147;
  overflow: hidden;
}

.char-meter-fill {
  height: 100%;
  transition: width 0.2s ease, background-color 0.2s ease;
}

/* Custom Hour Toggle Buttons in Rotations */
.hour-chip {
  transition: all 0.15s ease-in-out;
  user-select: none;
  cursor: pointer;
}

.hour-chip.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hour-chip:not(.active) {
  background-color: #161e2c;
  color: #94a3b8;
  border-color: #243147;
}

.hour-chip:not(.active):hover {
  background-color: #1d2738;
  color: #f8fafc;
  border-color: #33435c;
}
