/**
 * TempoBurn Custom Styles
 * Global component styles using explicit CSS to work with the Giglink template
 * Note: Tailwind opacity modifiers (bg-color/20) don't work reliably with this theme
 */

/* ==========================================================================
   Badges - Consistent badge styling across the app
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-online {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-friends {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-info {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-primary {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   Cards - Generic card containers
   ========================================================================== */

.card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    padding: 20px;
}

.card-hover:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(139, 92, 246, 0.5);
}

.card-header {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

.card-body {
    background: rgba(15, 23, 42, 0.5);
    border-left: 1px solid rgba(51, 65, 85, 1);
    border-right: 1px solid rgba(51, 65, 85, 1);
    padding: 20px;
}

.card-footer {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 15px 20px;
}

/* ==========================================================================
   Conversation Cards - For messages/DMs
   ========================================================================== */

.conversation-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.conversation-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(4px);
}

.conversation-card.has-unread {
    border-left: 4px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.conversation-username {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.conversation-time {
    font-size: 12px;
    color: #64748b;
}

.conversation-preview {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.conversation-preview .from-me {
    color: #a78bfa;
}

.conversation-arrow {
    color: #475569;
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   Online/Status Indicators
   ========================================================================== */

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 3px solid rgba(30, 41, 59, 1);
    border-radius: 50%;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   Unread/Notification Badges
   ========================================================================== */

.unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #8b5cf6;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   System Messages/Notifications
   ========================================================================== */

.system-conversation {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.system-conversation:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.system-conversation.has-unread {
    border-left: 4px solid #a855f7;
}

.system-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 22px;
}

/* ==========================================================================
   Chat/Messaging UI
   ========================================================================== */

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 400px;
}

.chat-header {
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-left: 1px solid rgba(51, 65, 85, 1);
    border-right: 1px solid rgba(51, 65, 85, 1);
    min-height: 0;
}

.chat-input {
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 15px 20px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 8px;
}

.chat-bubble-mine {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    color: #fff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-bubble-theirs {
    background: rgba(51, 65, 85, 0.5);
    color: #fff;
    border-bottom-left-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    /* Default to primary violet style */
    background: linear-gradient(to right, #7c3aed, #6d28d9) !important;
    color: #fff !important;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(to right, #7c3aed, #6d28d9) !important;
    color: #fff !important;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(to right, #22c55e, #16a34a) !important;
    color: #fff !important;
}

.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(to right, #ef4444, #dc2626) !important;
    color: #fff !important;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(to right, #f59e0b, #d97706) !important;
    color: #fff !important;
}

.btn-warning:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(51, 65, 85, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.8) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.8) !important;
}

.btn-outline {
    background: transparent !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    color: #a78bfa !important;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

.btn-outline-danger {
    background: transparent !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* Override for when Tailwind bg classes are used with .btn */
.btn.bg-violet-600,
.btn.bg-violet-600\/80 {
    background: linear-gradient(to right, #7c3aed, #6d28d9) !important;
}

.btn.bg-green-600 {
    background: linear-gradient(to right, #22c55e, #16a34a) !important;
}

.btn.bg-red-600 {
    background: linear-gradient(to right, #ef4444, #dc2626) !important;
}

.btn.bg-yellow-600 {
    background: linear-gradient(to right, #f59e0b, #d97706) !important;
}

.btn.bg-cyan-600 {
    background: linear-gradient(to right, #06b6d4, #0891b2) !important;
}

/* ==========================================================================
   File Inputs - Style native file upload buttons
   ========================================================================== */

input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px dashed rgba(71, 85, 105, 0.8);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.05);
}

input[type="file"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
}

/* Style the file button itself */
input[type="file"]::file-selector-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin-right: 12px;
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    opacity: 0.9;
}

/* Webkit browsers (Chrome, Safari) */
input[type="file"]::-webkit-file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin-right: 12px;
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::-webkit-file-upload-button:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Form Inputs
   ========================================================================== */

.input {
    width: 100%;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: rgba(139, 92, 246, 0.6);
}

.input-rounded {
    border-radius: 20px;
    padding: 12px 18px;
}

.textarea {
    width: 100%;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #8b5cf6;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #8b5cf6;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #8b5cf6;
}

.empty-state h5 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: #64748b;
}

/* ==========================================================================
   Date Separators (for chat/timelines)
   ========================================================================== */

.date-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.date-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(71, 85, 105, 0.5);
}

.date-separator span {
    background: rgba(15, 23, 42, 0.9);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    color: #64748b;
    position: relative;
}

/* ==========================================================================
   Stats Row (for profiles)
   ========================================================================== */

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 24px 0;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.stat-item {
    text-align: center;
    padding: 8px 24px;
    border-right: 1px solid rgba(71, 85, 105, 0.5);
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 14px;
    color: #fff;
}

/* ==========================================================================
   Alerts/Notices
   ========================================================================== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-info {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #22c55e;
}

.toast-error {
    background: #ef4444;
}

.toast-info {
    background: #8b5cf6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-muted {
    color: #64748b;
}

.text-primary {
    color: #a78bfa;
}

.text-success {
    color: #4ade80;
}

.text-warning {
    color: #facc15;
}

.text-danger {
    color: #f87171;
}

.bg-glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
}

.border-subtle {
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.rounded-box {
    border-radius: 12px;
}

/* ==========================================================================
   GLOBAL ELEMENT OVERRIDES
   Fix native HTML elements that Tailwind classes don't style properly
   ========================================================================== */

/* Text Inputs - Global fix for all input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"] {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus {
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Textareas - Global fix */
textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Select dropdowns - Global fix */
select {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px !important;
}

select:focus {
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

select option {
    background: #1e293b;
    color: #fff;
    padding: 8px;
}

/* Buttons - Global fix for button elements */
button[type="submit"],
button.btn-search,
input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: linear-gradient(to right, #7c3aed, #6d28d9) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

button[type="submit"]:hover,
button.btn-search:hover,
input[type="submit"]:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Fix for forms with flex layout */
form.flex,
.flex-form {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
}

form.flex input[type="text"],
form.flex input[type="search"],
.flex-form input[type="text"],
.flex-form input[type="search"] {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Tables - Global fix */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: rgba(30, 41, 59, 0.5);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

table tr:hover td {
    background: rgba(51, 65, 85, 0.3);
}

/* Pagination - Global fix */
nav[aria-label="Pagination Navigation"] {
    display: flex;
    justify-content: center;
    gap: 4px;
}

nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

nav[aria-label="Pagination Navigation"] a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
}

nav[aria-label="Pagination Navigation"] span[aria-current="page"] span,
nav[aria-label="Pagination Navigation"] .active {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    border-color: #7c3aed;
    color: #fff;
}

/* Links inside content areas */
.content-area a:not(.btn):not([class*="btn-"]) {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.content-area a:not(.btn):not([class*="btn-"]):hover {
    color: #c4b5fd;
    text-decoration: underline;
}

/* ==========================================================================
   CUSTOM SCROLLBARS
   Dark themed scrollbars to match the site design
   ========================================================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(139, 92, 246, 0.8);
}

::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.5) rgba(15, 23, 42, 0.5);
}

/* Thin scrollbar variant for chat boxes and smaller containers */
.chat-messages-box::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-box::-webkit-scrollbar-thumb,
.overflow-y-auto::-webkit-scrollbar-thumb,
.overflow-auto::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 4px;
}

.chat-messages-box::-webkit-scrollbar-thumb:hover,
.overflow-y-auto::-webkit-scrollbar-thumb:hover,
.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}
