/* css/styles.css */

:root {
    /* Color Variables */
    --color-teal: #00ffcc;
    --color-magenta: #ff00ff;
    --color-cyan: #00ffff;
    --color-danger: #ff4444;
    --color-success: #00ff00;

    /* Effects */
    --glow-teal: 0 0 20px rgba(0, 255, 204, 0.3);
    --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3);
    --glow-danger: 0 0 20px rgba(255, 68, 68, 0.3);

    /* Gradients */
    --gradient-cyber: linear-gradient(135deg, var(--color-teal), var(--color-magenta));

    /* Background Colors */
    --bg-dark: #0d1117;
    --bg-card: rgba(13, 17, 23, 0.95);

    /* Borders */
    --border-color: rgba(0, 255, 204, 0.1);
    --border-glow: 0 0 10px rgba(0, 255, 204, 0.1);

    --bs-secondary-color: #d8d8d8;
    --primary-color: #1d8a74;
}

.border-primary {
    border-color: #373737 !important;
}

.gradient-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00ffcc, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Badges */

.bg-info {
    background-color: #00b7ff80 !important;
    /* Semi-transparent cyan blue */
}

.bg-info.text-white {
    color: #fff !important;
}

/* If you need hover states */
.bg-info:hover {
    background-color: #00b7ffaa !important;
    /* Slightly more opaque on hover */
}

/* Badge specific styling */
.badge.bg-info {
    background-color: #00b7ff80 !important;
    border: 1px solid #00b7ff;
}

/* Badge Styling */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #000a08;
    border: 1px solid rgba(0, 255, 204, 0.3);
    font-weight: 500;
}

/* In case you need hover states for interactive badges */
.badge.bg-primary[href]:hover {
    background-color: var(--secondary-color) !important;
    color: #000a08;
}

/* Nav tab badges specific adjustments */
.nav-tabs .nav-link .badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #000a08;
}

/* Nav pills badges specific adjustments */
.nav-pills .nav-link .badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #000a08;
}

/* If you're using outline badges */
.badge.bg-primary-outline {
    background-color: transparent !important;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}


/* Tab Styling */
.nav-tabs {
    border-bottom-color: #008080;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
    background-color: rgba(0, 128, 128, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 2px solid var(--primary-color);
}

/* Tab Content Transitions */
.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
}

.tab-content .tab-pane.fade {
    transition: opacity 0.15s linear;
}

.tab-content .tab-pane.fade:not(.show) {
    opacity: 0;
}

.tab-content .tab-pane.fade.show {
    opacity: 1;
}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
    border: 3px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #333 #1e1e1e;
    box-sizing: border-box;
}

/* Font families */
body {
    background-color: #000a08;
    color: #fff;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-size: 1 rem;
}

/* Main content */
.main-content-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}

.chat-wrapper {
    overflow: hidden;
}

/* Container fluid */
.container-fluid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Row */
.row.flex-grow-1 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin: 0;
}

/* Chat header */
.chat-header {
    padding: 9px;
    background-color: #02303cd4;
    border-bottom: 1px solid #53535347;
    flex-shrink: 0;
}

/**
 * DESKTOP: .chat-window has a fixed height (as originally required).
 * MOBILE: pinned approach via media queries
 */
.chat-window {
    background-color: #1e1e1e;
    height: 850px;
    /* Desktop fixed height for chat window */
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #2e2e2e;
}

.bold-icon {
    font-weight: bold !important;
    opacity: 1 !important;
}

.modal-content {
    background-color: #1e1e1ed4 !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem !important;
}

.smaller {
    font-size: .775em;
}

.very-small {
    font-size: 0.8rem;
}

.lowpadding {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.spaced {
    letter-spacing: 1px;
}

.custom-radio .form-check-input:checked,
.custom-checkbox .form-check-input:checked {
    background-color: #00ffcc;
    border-color: #00ffcc;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Form validation states with cyber theme */
.form-control.is-valid {
    border-color: var(--color-teal) !important;
    box-shadow: var(--glow-teal) !important;
    background-image: none !important;
    /* Remove Bootstrap's checkmark */
}

.form-control.is-invalid {
    border-color: var(--color-danger) !important;
    box-shadow: var(--glow-danger) !important;
    background-image: none !important;
    /* Remove Bootstrap's X icon */
}

/* Validation card glow effects */
.card.bg-dark .validation-item i {
    filter: drop-shadow(0 0 2px currentColor);
}

/* Ensure icon transitions are smooth */
.bi-check-circle,
.bi-x-circle {
    transition: opacity 0.2s ease;
}

/* Make sure our custom validation messages follow theme */
.validation-item span {
    transition: color 0.2s ease;
}

/* Custom validation message container spacing */
.validation-container {
    margin-top: 0.5rem;
}

#navbar-unread-count {
    position: absolute;
}

/* Search Bar Styles */
#user-search-form {
    position: relative;
}

#user-search-input {
    border: 1px solid #005f5f;
    background-color: #022;
    color: #fff;
    max-width: 200px;
    border-radius: 20px;
    text-align: center;
}

.search-icon {
    left: 25px;
    color: #aaa;
    font-size: 1.2rem;
    pointer-events: none;
}

#search-results {
    background-color: #002b36;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    background-color: #002b36;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.search-result-item:hover {
    background-color: #004d40;
}

.search-result-item img {
    object-fit: cover;
}

/* Text colors */
.text-cyber {
    color: #00ffcc !important;
}

.text-cool {
    font-family: 'Orbitron', sans-serif;
}

.text-teal {
    color: #00ecbdf0 !important;
}

.text-medium-teal {
    color: #32aa92f0 !important;
}

.text-dark-teal {
    color: #002b36 !important;
}

.text-white {
    color: #fff !important;
}

.text-black {
    color: #000 !important;
}

.text-dark-green {
    color: #008b09 !important;
}

.text-silver {
    color: #c6c6c6 !important;
}

.text-gold {
    color: #ffd700;
}

/* Background colors */
.bg-dark-grey {
    background-color: #1e1e1e94 !important;
}

.bg-dark-cyber {
    background-color: #02303cd4 !important;
}

.bg-very-dark-cyber {
    background-color: #002b36a8 !important;
}

.bg-black {
    background-color: #000a08 !important;
}

/* Buttons */
.btn-teal,
.btn-primary {
    background-color: #1d8a74 !important;
    color: #fff !important;
    border: none;
}

.btn-teal:hover,
.btn-primary:hover {
    background-color: #135547 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #00b38f;
    border: 1px solid #00b38f;
}

.btn-outline-primary:hover {
    background-color: #00b38f;
    color: #fff;
}

.btn-secondary {
    background-color: #323535;
    border: 1px solid #474b4b;
}

.btn-outline-secondary {
    color: #c2c2c2;
    border-color: #939393;
}

.btn-outline-secondary:hover {
    background-color: #555;
    color: #fff;
}

.btn:disabled,
.btn.disabled {
    color: #464646 !important;
}

.form-select {
    background-color: #002b36;
    border: 1px solid #004d40;
    color: #fff;
}

.form-select:focus {
    background-color: #002b36;
    border-color: #00ffcc;
    color: #fff;
    box-shadow: none;
}

.form-select option {
    background-color: #002b36;
    color: #fff;
}

/* Avatar selection */
.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option img {
    border: 3px solid transparent;
    cursor: pointer;
}

.avatar-option input[type="radio"]:checked+img {
    border: 3px solid #00ffcc;
}

/* Spinner */
.spinner-border.text-teal {
    color: #00ffcc;
}

/* Links */
a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #00ffcc;
}

a.text-cyber:hover {
    color: #fff !important;
}

/* Form controls */
.form-control,
.form-check-input {
    background-color: #002b36;
    border: 1px solid #004d40;
    color: #fff;
}

.form-control:focus,
.form-check-input:focus {
    background-color: #002b36;
    border-color: #00ffcc;
    color: #fff;
    box-shadow: none;
}

input::placeholder {
    color: #b6c2c9 !important;
}

textarea::placeholder {
    color: #b6c2c9 !important;
}

/* Info text */
.form-text {
    color: #b0bec5 !important;
}

/* Body text */
p,
label,
input,
textarea,
select,
button {
    font-family: 'Roboto', sans-serif;
}

/* UserProfile Avatar */
.profile-image-container {
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #00ffcc;
    transition: opacity 0.3s ease;
    z-index: 101;
    position: relative;
}

.profile-image:hover {
    border: 3px solid yellow;
}

.avatar-wrapper:hover .profile-image {
    opacity: 1 !important;
}

.profile-image-editable {
    position: relative;
    display: inline-block;
}

.profile-image-editable:hover::after {
    content: attr(data-hover-text);
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 5px;
    border-radius: 0 0 50% 50%;
    z-index: 2;
}

/* Cards */
.card {
    background-color: #081720;
    color: white;
}

.card.bg-dark-grey,
.card.bg-very-dark-cyber {
    border: 1px solid #666 !important;
}

.card.bg-light {
    background-color: #ebeff1 !important;
}

.card.bg-black {
    border: none;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
}

/* Edit UserProfile Button */
.btn-teal {
    background-color: #008080;
    color: #fff;
    border: none;
}

.btn-teal:hover {
    background-color: #005f5f;
    color: #fff;
}

.btn-teal:active,
.btn-teal:focus {
    background-color: #004949 !important;
    color: #fff;
}

.btn-teal:focus-visible {
    background-color: #004949 !important;
    color: #fff !important;
    outline: none;
}

/* Chat input text area */
#chat-input {
    resize: none;
    overflow: hidden;
    min-height: 40px;
}

/* Chat Message Alignment */
.chat-window .message {
    display: flex;
    margin-bottom: 10px;
}

/* Adjust avatar alignment in chat window */
.chat-window .d-flex {
    align-items: flex-end;
}

.chat-window img.rounded-circle {
    margin-right: 8px;
    align-self: flex-end;
    margin-bottom: 20px;
}

/* Sent message avatars */
.sent-message img.rounded-circle {
    margin-left: 8px;
    align-self: flex-end;
}

/* Chat Bubbles */
.message-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    word-wrap: break-word;
    min-width: 20px;
}

.sent-message.message-bubble {
    background-color: #04514a8a;
    color: #fff;
    border-top-right-radius: 1px;
    padding-right: 30px;
}

.received-message.message-bubble {
    background-color: #2d3436;
    color: #fff;
    border-top-left-radius: 1px;
    padding-right: 30px;
}

/* Conversations List */
.list-group-item {
    background-color: #02303cd4 !important;
    border: 1px solid #53535347 !important;
}

.list-group-item a {
    color: #ffffff !important;
}

.list-group-item.active {
    background-color: #ffffff !important;
}

.list-group-item.active a {
    color: #000000 !important;
}

.list-group-item a:hover {
    text-decoration: none;
}

.list-group-item:hover:not(.active) {
    background-color: rgba(5, 57, 73, 0.83) !important;
}

/* Adjust Input Group */
.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Message Avatars */
.chat-window img.rounded-circle {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.text-light-grey {
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: #d8d8d8 !important;
}

.text-dark-grey {
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: #50616a !important;
}

/* New Conversation Error */
#new-conversation-error {
    color: #ff6b6b;
}

/* Ensure avatars are properly aligned */
.chat-window .d-flex img.rounded-circle {
    margin-right: 8px;
}

.chat-window .d-flex {
    align-items: flex-end;
}

.message-bubble {
    position: relative;
    border-radius: 15px;
    padding: 10px;
    word-wrap: break-word;
    margin: 5px 0;
    font-size: 0.9rem;
}

.message-status {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: #bbb;
}

.d-flex.align-items-end .message-content {
    margin-bottom: 0;
}

.d-flex.align-items-end img {
    align-self: flex-end;
}

/* Online Indicator */
.online-indicator {
    width: 10px;
    height: 10px;
}

/* Onboarding Form Width Adjustment */
.form-control,
.onboarding-step textarea {
    max-width: 800px;
}

.unread-count {
    font-size: 0.8rem;
    position: absolute;
    right: 5px;
    bottom: 10px;
}

.list-unstyled li {
    margin-bottom: 5px;
}


.medal-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.medal {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #f4b400;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    color: white;
    font-size: 14px;
    line-height: 21px;
    position: relative;
}

.medal i {
    font-size: inherit;
    line-height: 1;
}


.tooltip-inner {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 1) !important;
    max-width: 600px;
    text-align: center;
}

.tooltip-content img {
    display: block;
    margin: 5px auto;
    width: 256px;
    height: 256px;
}

.tooltip-content strong,
.tooltip-content span {
    display: block;
    margin: 20px auto;
}


/* Gift Styles */
.gift-placeholder-avatar {
    animation: effect-glowing-border-yellow 3s infinite;
    will-change: box-shadow;
}

@keyframes effect-glowing-border-yellow {

    0%,
    100% {
        box-shadow: 0 0 1px #d5ca30, 0 0 10px #d5ca30;
    }

    50% {
        box-shadow: 0 0 10px #d5ca30, 0 0 10px #d5ca30;
    }
}

.gift-placeholder-profile {
    animation: effect-glowing-border-blue 3s infinite;
    will-change: box-shadow;
}

@keyframes effect-glowing-border-blue {

    0%,
    100% {
        box-shadow: 0 0 1px #124da5, 0 0 10px #124da5;
    }

    50% {
        box-shadow: 0 0 10px #124da5, 0 0 10px #124da5;
    }
}


/* Gift Selection Styles */

#send-gift-button {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#send-gift-button.hidden {
    opacity: 0;
    visibility: hidden;
}

#send-gift-button.visible {
    opacity: 1;
    visibility: visible;
}

.gift-type-option,
.style-option {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #fff;
}

.gift-type-option:hover,
.style-option:hover {
    border-color: #00ffcc;
}

.gift-type-option.selected,
.style-option.selected {
    animation: effect-glowing-border-cyan 1s infinite;
    border-color: #00ffcc;
}

@keyframes effect-glowing-border-cyan {
    0% {
        box-shadow: 0 0 5px #00ffcc;
    }

    50% {
        box-shadow: 0 0 15px #00ffcc;
    }

    100% {
        box-shadow: 0 0 5px #00ffcc;
    }
}


/* Particle Effect */
.style-option.selected::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    animation: particles 2s infinite;
}

@keyframes particles {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.gift-type-option .card-body,
.style-option .card-body {
    padding: 1rem;
}

.gift-type-option .card-title,
.style-option .card-title {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.gift-type-option .bi,
.style-option .bi {
    font-size: 3rem;
}

.style-option .card-text {
    font-size: 0.9rem;
    color: #ccc;
    font-family: 'Roboto', sans-serif;
}

/* Gifts Available Progress Bar Styles */
.gifts-progress-bar-container {
    background-color: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    max-width: 70%;
    margin-left: 8px;
}

.gifts-progress-bar {
    background: linear-gradient(45deg, #ffd700, #ffea70);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: width 0.3s ease;
}

.gifts-progress-bar.depleted {
    background: #2f0707 !important;
    color: white !important;
}

/* Displayed via script */
.tutorial-incomplete .profile-element {
    display: none;
}

/* Profile Tile Edit Button */
.edit-profile-element {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 10;
    border: 1px solid #2d3436;
}

/* Apply dynamic border color to profile tiles */
.profile-tile {
    border: 2px solid transparent;
}

.profile-tile-gift {
    box-shadow: 0 0 7px 1px rgba(255, 255, 255, 0.38);
}

.profile-tile-badge {
    font-weight: normal;
    font-size: 0.72rem;
    top: -12px;
    right: 0px;
    opacity: 0.9;
}

.select-profile-element {
    transition: box-shadow 0.3s ease;
}

.select-profile-element:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.action-button-desktop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 10px 20px;
    background-color: #1d8a74;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    z-index: 1000;
}

.action-button-desktop:hover {
    background-color: #00e6b3;
}

.action-button-mobile {
    padding: 8px 16px;
    background-color: #1d8a74;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#install-button {
    display: none;
}

#enable-notifications-btn {
    display: none;
}



/* Search Form within Navbar */
#user-search-form {
    position: relative;
    width: 200px;
}

#user-search-input {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #002b36;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-result-item {
    cursor: pointer;
    background-color: #002b36;
    border: none;
    color: #fff;
}

.search-result-item:hover {
    background-color: #004d40;
}





/* Remove Button - Global Style */
.btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 50%;
    border: none;
    color: #ff4d4d;
    z-index: 10;
}

.btn-remove:hover {
    transform: scale(1.1);
    background-color: rgba(40, 40, 40, 0.95);
    color: #ff6666;
}

.btn-remove i {
    font-size: 1rem;
}

/* Show remove button when hovering over parent container */
*:hover>.btn-remove {
    opacity: 1;
}

/* For cases where you want the button always visible */
.btn-remove.always-visible {
    opacity: 1;
}

/* For cases where the parent doesn't have position: relative */
.btn-remove-container {
    position: relative;
}



/* Drop-Downs Button Styles */
.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.dropdown-menu .dropdown-item {
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #333;
    transform: translateX(3px);
}

.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-menu .dropdown-divider {
    border-top: 1px solid #333;
    margin: 0.5rem 0;
}

/* Social icons specific colors on hover */
.dropdown-item:hover i.bi-facebook {
    color: #1877f2;
}

.dropdown-item:hover i.bi-twitter-x {
    color: #1da1f2;
}

.dropdown-item:hover i.bi-linkedin {
    color: #0a66c2;
}

.dropdown-item:hover i.bi-whatsapp {
    color: #25d366;
}

.dropdown-item:hover i.bi-telegram {
    color: #0088cc;
}

.dropdown-item:hover i.bi-envelope {
    color: #00b38f;
}

.dropdown-item:hover i.bi-link-45deg {
    color: #00ffcc;
}


/* Copy animation */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.copy-success {
    animation: copySuccess 0.3s ease-in-out;
}

/* Toast notification for copy success */
.distribute-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1e1e;
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: none;
}



/* Gift Announcement */
.gift-announcement {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(0, 0, 0, 0.7));
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2),
        0 0 20px rgba(0, 255, 204, 0.1);
}

.gift-announcement-link {
    color: #fff;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.gift-announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    text-decoration: none;
}

.gift-icon {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gift-announcement h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.gift-style-tag {
    display: inline-block;
    background: rgba(0, 255, 204, 0.15);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    text-transform: capitalize;
    color: #00ffcc;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    margin-bottom: 1rem;
}

.gift-description em {
    font-size: 1rem;
    color: #bfc9ca;
    display: inline-block;
    margin-top: 0.5rem;
}


/* Friendship Announcement */
.friendship-announcement {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(0, 0, 0, 0.7));
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2),
        0 0 20px rgba(0, 255, 204, 0.1);
}

.friendship-icon {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.friendship-announcement h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.friend-avatars {
    margin-top: 1.5rem;
}

.friend-avatar img {
    border: 3px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    transition: transform 0.3s ease;
}

.friend-avatar:hover img {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5),
        0 0 20px rgba(0, 255, 204, 0.3);
}

.friend-avatar .friend-name {
    font-weight: bold;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    font-size: 1.0rem;
    margin-top: 0.5rem;
}



/* Level Up Overlay */
.level-up-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-up-container {
    position: relative;
    text-align: center;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s ease-out;
}

#levelUpOverlay.show .level-up-container {
    transform: scale(1);
    opacity: 1;
}

.level-up-circles {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border: 4px solid rgba(0, 255, 204, 0.3);
    border-radius: 50%;
}

.circle-1 {
    width: 384px;
    height: 384px;
    animation: spin 10s linear infinite;
}

.circle-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(0, 255, 204, 0.2);
    animation: spin 8s linear infinite reverse;
}

.circle-3 {
    width: 256px;
    height: 256px;
    border-color: rgba(0, 255, 204, 0.1);
    animation: spin 6s linear infinite;
}

.level-up-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.level-up-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: #00ffcc;
    animation: pulse 2s infinite;
}

.level-up-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

.level-up-message {
    margin-bottom: 2rem;
}

.message-box {
    display: inline-block;
    position: relative;
    padding: 1.5rem 3rem;
    background: #002b36;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
}

.message-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #00ffcc;
    filter: blur(24px);
    opacity: 0.2;
}

.message-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.message-subtitle {
    color: #00ffcc;
}

.level-up-button {
    font-family: 'Orbitron', sans-serif;
    padding: 1rem 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s;
    margin-top: 1rem;
}

.level-up-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.level-up-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffcc;
    border-radius: 50%;
    opacity: 0.6;
}

.particle:nth-child(3n) {
    animation: particle-float-1 3s infinite;
}

.particle:nth-child(3n+1) {
    animation: particle-float-2 4s infinite;
}

.particle:nth-child(3n+2) {
    animation: particle-float-3 5s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }

    50% {
        opacity: 0.7;
        filter: brightness(1);
    }
}

@keyframes particle-float-1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes particle-float-2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, -30px);
    }
}

@keyframes particle-float-3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -10px);
    }
}

#levelUpOverlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}


.level-up-reward {
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.reward-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}

.reward-content:hover {
    transform: scale(1.02);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    h2 {
        font-size: 1.4rem !important;
    }

    h4 {
        font-size: 0.95rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .main-content-wrapper {
        margin-bottom: 0px;
    }

    .container-fluid {
        padding-left: 0px;
        padding-right: 0px;
    }

    .row.no-padding>* {
        padding-right: 0px;
        padding-left: 0px;
    }

    .very-small {
        font-size: 0.75rem;
    }

    .form-control {
        font-size: 0.9rem !important;
    }

    .message-bubble {
        font-size: 0.85rem;
    }

    /* Ensure full width for navbar collapse on mobile */
    .navbar .navbar-collapse {
        width: 100%;
    }

    .navbar-toggler {
        margin-left: 30px;
    }

    .navbar-toggler-icon {
        font-size: 1rem !important;
    }

    .navbar-brand {
        font-size: 1rem !important;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        font-family: 'Roboto', sans-serif;
    }

    .navbar-nav .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .navbar-nav .nav-link i {
        margin-right: 0.5rem;
    }

    .navbar-nav .nav-item a[href*='logout'] {
        color: #ff6666;
    }

    .search-item-mobile {
        margin-top: auto;
        padding: 15px;
        text-align: center;
    }

    #user-search-form {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 200px;
        margin: 0.5rem auto;
    }

    #user-search-input {
        width: 100%;
        max-width: 250px;
        padding: 10px;
        margin: 0 auto;
        border-radius: 20px;
        text-align: center;
        border: 1px solid #005f5f;
        background-color: #022;
        color: #fff;
    }
}

/**
 * MOBILE FIXED LAYOUT ONLY for screens up to 768px
 * With corrected z-index for mobile chat & nav
 */
@media (max-width: 768px) {

    /* Give all pages some top padding so content isn't cut off behind navbar */
    body {
        padding-top: 56px !important;
    }

    /* Navbar at the top, highest z-index so it always covers chat header */
    .navbar {
        position: fixed !important;
        top: 0;
        width: 100%;
        z-index: 2000;
        /* higher than everything */
    }

    /* Chat header pinned below navbar, with lower z-index than navbar */
    .chat-header {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 900;
        /* below navbar & offcanvas */
        margin-left: auto;
        margin-right: auto;
    }

    /* Chat form pinned at bottom on chat pages, also a lower z-index */
    #chat-form {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        /* below offcanvas or nav expansions */
        background-color: #02303cd4;
        padding: 8px;
    }

    /* Chat window occupies space between chat-header & chat-form */
    .chat-window {
        position: absolute;
        top: 112px;
        /* 56px for navbar + ~56px chat-header */
        bottom: 60px;
        left: 0;
        right: 0;
        overflow-y: auto;
        padding: 10px;
        height: auto;
        /* override 750px for mobile */
    }

    #last-seen {
        display: none;
    }
}

/* Reply Feature Additions */
.reply-btn {
    display: none;
    color: #00ffcc;
    background-color: #02303cd4;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    z-index: 999;
}

.message-container:hover .reply-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.reply-btn:hover {
    background-color: #00ffcc;
    color: #02303cd4;
}

.reply-reference {
    color: #00ffcc;
    text-decoration: underline dotted;
    cursor: pointer;
}

#mobile-reply-menu {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 5px;
    z-index: 9999;
}

#mobile-reply-menu button {
    background: transparent;
    border: none;
    color: #00ffcc;
    font-weight: bold;
    width: 100%;
    text-align: left;
}

#reply-indicator {
    background: #002b36;
    border: 1px solid #004d40;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.highlight-blink {
    animation: highlightBlink 1.5s ease forwards;
}

@keyframes highlightBlink {
    0% {
        background-color: rgba(0, 255, 204, 0.3);
    }

    50% {
        background-color: rgba(0, 255, 204, 0);
    }

    100% {
        background-color: rgba(0, 255, 204, 0);
    }
}


/* Small mobile devices (like ~Pixel 5) */
@media (max-width: 380px) {
    .level-up-overlay-backdrop {
        align-items: flex-start;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .level-up-container {
        width: 100%;
        flex: 1;
        padding: 1rem;
        padding-bottom: calc(1rem + 60px);
        position: relative;
        overflow-y: auto;
    }

    .level-up-circles {
        transform: scale(0.7);
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .level-up-content {
        position: relative;
        z-index: 2;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .level-up-title {
        font-size: 2rem;
        margin-top: 0;
    }

    .level-up-number {
        font-size: 3rem;
        margin: 0.5rem 0;
    }

    .level-up-message {
        margin: 0.5rem 0;
    }

    .message-box {
        padding: 1rem;
    }

    .level-up-reward {
        margin: 0.5rem 0 !important;
    }

    .level-up-button {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        z-index: 1060;
        background: linear-gradient(180deg, rgba(29, 138, 116, 0.95), rgba(29, 138, 116, 1));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    }

    .level-up-particles {
        transform: scale(0.7);
        pointer-events: none;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 160px;
        height: 160px;
    }

    .circle-3 {
        width: 120px;
        height: 120px;
    }

    .message-box {
        padding: 0.75rem;
    }

    .message-title {
        font-size: 1rem;
    }

    .message-subtitle {
        font-size: 0.8rem;
    }

    .reward-content {
        padding: 0.5rem !important;
    }

    .reward-name {
        font-size: 0.9rem !important;
    }

    .reward-description {
        font-size: 0.8rem !important;
    }

    .reward-type-badge {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
    }

    .level-up-button {
        margin: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
        height: 50px;
    }
}


/* NEW: Make the validation cards smaller and neater */
.card.validation-card {
    background-color: #01181f;
    border: 1px solid #00b38f;
    /* Teal border */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
    padding: 0.75rem 1rem;
    /* Smaller padding */
    margin-bottom: 1rem;
    /* Space below the card */
    transition: all 0.2s ease-in-out;
}

.card.validation-card i {
    font-size: 1rem;
    margin-right: 4px;
}

.card.validation-card span {
    font-size: 0.9rem;
    line-height: 1.3;
}



/* Better Onboarding */


/* Onboarding Validation Styles */
.validation-card {
    background-color: #01181f;
    border: 1px solid #00b38f;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Validation Items */
[data-rule] {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

[data-rule].checking {
    opacity: 0.5;
}

/* Validation Icons */
.validation-card i {
    font-size: 1rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.validation-card i:not(.d-none) {
    opacity: 1;
    transform: scale(1);
}

/* Validation Text */
.validation-card span {
    font-size: 0.9rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* Form Controls in Onboarding */
.onboarding-form .form-floating>.form-control {
    background-color: #02303cd4;
    border: 1px solid #004d40;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.onboarding-form .form-floating>.form-control:focus {
    background-color: rgba(0, 179, 143, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 204, 0.25);
}

/* Form Labels */
.onboarding-form .form-floating>label {
    color: #b6c2c9;
    transition: transform 0.2s ease, color 0.2s ease;
}

.onboarding-form .form-floating>.form-control:focus~label,
.onboarding-form .form-floating>.form-control:not(:placeholder-shown)~label {
    color: #00ffcc;
    opacity: 0.8;
}

/* Progress Bar */
.progress-wrapper {
    position: relative;
    background: rgba(0, 179, 143, 0.1);
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, #00b38f, #00ffcc);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    height: 100% !important;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 179, 143, 0.9);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    animation: fadeInUp 0.3s ease forwards;
}

/* Custom Radio & Checkbox Enhancement */
.custom-radio .form-check-input:checked,
.custom-checkbox .form-check-input:checked {
    background-color: #00ffcc;
    border-color: #00ffcc;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.custom-radio .form-check-label,
.custom-checkbox .form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-radio .form-check-input:checked~.form-check-label,
.custom-checkbox .form-check-input:checked~.form-check-label {
    color: #00ffcc;
}

/* Character Counter Enhancement */
.character-counter {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.form-control:focus~.character-counter {
    opacity: 1;
}

/* Form Text Enhancement */
.form-text {
    color: rgba(182, 194, 201, 0.8) !important;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-text i {
    color: #00ffcc;
    opacity: 0.8;
}

/* Validation States */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #00ffcc !important;
    background-image: none !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #ff4d4d !important;
    background-image: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .validation-card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .validation-card .card-body {
        padding: 0.75rem;
    }

    .validation-card [data-rule] {
        margin-bottom: 0.5rem;
    }

    .validation-card [data-rule]:last-child {
        margin-bottom: 0;
    }

    .onboarding-form .form-floating>label {
        font-size: 0.9rem;
    }

    .save-indicator {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .character-counter {
        font-size: 0.75rem;
    }
}

/* Small Screen Optimizations */
@media (max-width: 576px) {
    .validation-card {
        font-size: 0.9rem;
    }

    .validation-card i {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Form */

.form-floating>input:not(:focus):placeholder-shown+label {
    color: #b6c2c9;
}

.form-floating>input+label:after {
    background: rgba(2, 48, 60, 0) !important;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

/* Ensure label is visible when floating */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #b6c2c9;
}