/* Kobie Design Custom Overrides for Task Tracker */

/* Wider, more visible scrollbar — override theme 5px defaults */
::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}

::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 6px !important;
}

::-webkit-scrollbar-thumb {
  background: #a0a0a0 !important;
  border-radius: 6px !important;
  border: 2px solid #f1f1f1 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #707070 !important;
}

/* Firefox scrollbar */
* {
  scrollbar-width: auto;
  scrollbar-color: #a0a0a0 #f1f1f1;
}

/* Ensure table-responsive containers show visible scrollbar */
.table-responsive {
  scrollbar-width: auto;
  scrollbar-color: #a0a0a0 #f1f1f1;
  overflow-x: auto;
  overflow-y: visible;
}

/* Main content area scrolling */
.nxl-content {
  overflow-y: auto;
}

/* Remove top spacing from header and container - make it flush with top */
#kobie-header,
.nxl-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: 0 !important;
}

/* Change header text to black */
.nxl-header,
.nxl-header .header-left,
.nxl-header .header-right,
.nxl-header h5,
.nxl-header .text-white,
.nxl-header .fw-bold,
.nxl-header .dropdown-toggle {
  color: #000 !important;
}

.nxl-header .text-white-50 {
  color: rgba(0, 0, 0, 0.5) !important;
}

#kobie-content-wrapper,
.nxl-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper {
  padding-top: 0 !important;
}

.main-container {
  padding-top: 0 !important;
}

/* Sidebar footer link styling */
.sidebar-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.sidebar-footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Ensure loading indicator is hidden by default */
.htmx-indicator {
  display: none;
}

/* Avatar image in header */
.avatar-image {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

/* Footer styling */
.nxl-footer {
  padding: 1rem;
  background: #f5f7fa;
  border-top: 1px solid #e5e7eb;
}

.nxl-footer .footer-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Active menu item styling enhancement */
.nxl-navbar .nxl-item.active .nxl-link {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #6366f1;
}

/* Main content padding */
.main-content {
  padding: 1.5rem;
}
.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    padding: 1rem 1.25rem 0.25rem;
    list-style: none;
}

/* Retell Voice Call Overlay */
.retell-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.retell-overlay-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.retell-overlay-header {
    margin-bottom: 1.5rem;
}

.retell-pulse-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: #6366f1;
    position: relative;
}

.retell-pulse-ring.connecting {
    background: #f59e0b;
    animation: retell-pulse 1.5s ease-in-out infinite;
}

.retell-pulse-ring.active {
    background: #22c55e;
    animation: retell-pulse 2s ease-in-out infinite;
}

.retell-pulse-ring.agent_talking {
    background: #3b82f6;
    animation: retell-pulse 0.8s ease-in-out infinite;
}

.retell-pulse-ring.ended {
    background: #6b7280;
    animation: none;
}

.retell-pulse-ring.error {
    background: #ef4444;
    animation: none;
}

@keyframes retell-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.retell-overlay-status {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.retell-overlay-timer {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
}

.retell-overlay-context {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.retell-context-line {
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0.15rem 0;
}

.retell-overlay-actions {
    margin-top: 1rem;
}

/* Call button styling */
.btn-retell-call {
    background: #6366f1;
    color: #fff;
    border: none;
}

.btn-retell-call:hover {
    background: #4f46e5;
    color: #fff;
}
