/* Essential Styles - Navbar Added */

/* Alpine.js cloak utility */
[x-cloak] {
    display: none !important;
}

/* Additional navbar styles if needed */
.navitems {
    list-style: none;
}

/* Ensure dropdown appears above other content */
.relative [x-show] {
    z-index: 50;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Chat message animation */
@keyframes fadeInAndUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.fade-in-up {
    animation: fadeInAndUp 0.6s ease;
}

/* Floating glass navbar styles (cleaned and consolidated) */
.floating-navbar-wrapper {
    pointer-events: none;
    position: relative;
}

.floating-navbar {
    pointer-events: auto !important;
    position: fixed !important;
    top: 1.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 99999 !important;
    max-width: 1200px !important;
    width: calc(100% - 2rem) !important;
    padding: 0.5rem 1rem !important;
    opacity: 1 !important;
    transition: transform 0.28s ease, opacity 0.28s ease !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
}

/* islands */
.island {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: .75rem !important;
    padding: .5rem .875rem !important;
    border-radius: 14px !important;
    background: rgba(6, 10, 18, 0.55) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6) !important;
}

.island-left {
    min-width: 140px !important;
    display: flex !important;
    align-items: center !important;
}

.island-center {
    justify-self: center !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: .45rem 0.75rem !important;
    border-radius: 999px !important;
    max-width: 680px !important;
}

.island-right {
    min-width: 140px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Logo */
.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

.brand-text {
    font-weight: 800;
    color: #e6eefc;
    font-size: 1.15rem;
}

/* Center nav */
.center-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: center !important;
}

.center-nav .nav-item {
    color: #e6eefc;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 28px;
    font-weight: 600;
}

.center-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}

/* Profile / auth */
.profile-pill {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #7c3aed, #6b21a8);
    color: #fff;
    font-weight: 700;
}

.profile-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    background: rgba(6, 8, 12, 0.95);
    border-radius: 12px;
    padding: .5rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dropdown-item {
    display: block;
    padding: .5rem .75rem;
    color: #dbeafe;
    text-decoration: none;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.username {
    font-weight: 700;
    color: #fff;
}

.user-status {
    color: #34d399;
    font-size: 0.85rem;
    margin-top: 2px;
}

.auth-links {
    display: flex;
    gap: 0.5rem;
}

.auth-links .nav-item {
    color: #e6eefc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-links .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .island-center {
        max-width: 520px !important;
        gap: 0.5rem !important;
    }

    .island-left .brand-text {
        display: none;
    }

    .island-right .user-status {
        display: none;
    }
}

@media (max-width: 800px) {
    .center-nav {
        display: none;
    }

    .brand-text {
        font-size: 1rem;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Chat message animation */
@keyframes fadeInAndUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.fade-in-up {
    animation: fadeInAndUp 0.6s ease;
}

/* Navbar styles removed */

/* ============================================ */
/* CONSOLIDATED HOVER & INTERACTIVE EFFECTS */
/* Extracted from inline HTML styles */
/* ============================================ */

/* Chat Card Hover - Group Chat */
.chat-card-group {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-card-group:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Chat Card Hover - Private Chat */
.chat-card-private {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-card-private:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.5);
}

/* Icon Container Group Hover */
.icon-container-group {
    transition: all 0.3s ease;
}

.icon-container-group:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
    transform: scale(1.1) rotate(12deg);
}

/* Icon Container Private Hover */
.icon-container-private {
    transition: all 0.3s ease;
}

.icon-container-private:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
    transform: scale(1.1) rotate(12deg);
}

/* Chat Button Group */
.chat-button-group {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-button-group:hover {
    background: linear-gradient(135deg, rgb(5, 150, 105) 0%, rgb(4, 120, 87) 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    transform: translateY(-3px);
}

.chat-button-group:active {
    transform: translateY(-1px);
}

/* Chat Button Private */
.chat-button-private {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-button-private:hover {
    background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(25, 64, 189) 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
    transform: translateY(-3px);
}

.chat-button-private:active {
    transform: translateY(-1px);
}

/* Back Link Hover */
.back-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: rgba(156, 163, 175, 0.8);
}

.back-link:hover {
    color: rgba(209, 213, 219, 0.95);
    transform: translateX(-4px);
}

/* Message Bubble Hover */
.message-bubble {
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-bubble:hover {
    transform: translateY(-2px);
}

.message-bubble.sent:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.message-bubble.received:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Send Button Hover */
.send-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.send-btn:hover {
    transform: translateY(-3px);
}

.send-btn:active {
    transform: translateY(-1px);
}

/* Machine Card Hover */
.machine-card {
    transition: all 0.3s ease;
    border-color: transparent;
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

/* View Button Hover */
.view-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* User Table Row Hover */
tr.hover-row:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Profile Card Hover */
.profile-glass-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-glass-card:hover {
    box-shadow: 0 16px 48px rgba(30, 144, 255, 0.18), 0 16px 48px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Profile Button Hover */
.profile-btn-primary {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-btn-primary:hover {
    background: linear-gradient(90deg, #00c6fb 0%, #1e90ff 100%);
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.18);
    transform: translateY(-2px);
}

.profile-btn-secondary {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-btn-secondary:hover {
    background: #1e90ff;
    color: #fff;
    transform: translateY(-2px);
}

/* Button Red Hover */
.button-red {
    transition: all 0.3s ease;
}

.button-red:hover {
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

/* Button Gray Hover */
.button-gray {
    transition: all 0.3s ease;
}

.button-gray:hover {
    background: rgba(107, 114, 128, 0.3);
    transform: translateY(-2px);
}

/* Link Hover Effects */
.link-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-hover:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Footer Link Hover */
.footer-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #9ca3af;
    cursor: pointer;
}

.footer-link:hover {
    color: #818cf8;
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Nav Link Hover */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Avatar Ring Hover */
.avatar-ring {
    transition: all 0.3s ease;
}

.avatar-ring:hover {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

/* Account Badge Hover */
.account-badge {
    transition: all 0.3s ease;
}

.account-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* User Info Section Hover */
.user-info-section {
    transition: all 0.3s ease;
}

.user-info-section:hover {
    color: #fff;
}

/* Back Button Hover */
.back-btn {
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: translateX(-2px);
}

/* Header Icon Hover */
.header-icon {
    transition: all 0.3s ease;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ============================================ */
/* END CONSOLIDATED HOVER EFFECTS */
/* ============================================ */