/* Add your custom styles here */

html {
    scroll-behavior: smooth;
  }


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Avatar in navbar styles */
.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.avatar-container:hover {
    transform: scale(1.1);
}

.avatar-outline {
    border: 2px solid var(--secondary);
    background-color: white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.avatar-container:hover .avatar-outline {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#usernameForm {
    margin-top: 20px;
}

#usernameForm input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.has-background-white-ter-transparent {
    background-color: rgba(245, 245, 245, 0.9);
}

.has-hero-bg-img {
    background: url('/static/images/arcade-marketplace.jpg')center center;
    background-size:cover;
}

/* Smaller screen (mobile) */
@media screen and (max-width: 768px) {
    .has-hero-bg-img {
        background: url('/static/images/arcade-marketplace.jpg') center center;
        background-size: cover;
    }
}

/* HTMX Related */
.htmx-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}
.htmx-request.htmx-indicator {
    display: block;
}

.toastx {
    position: absolute;
    z-index: 1;
  }

.toast {
    position: fixed;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 6rem);
    margin-bottom: 0.5rem;
    top: 1rem;
}

.fade-in {
    animation: fadeIn 1.0s ease-in;
}

.fade-out {
    animation: fadeOut 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Alpine flicker control */
[x-cloak] { display: none; }

/* Mobile Menu Animation */
/* note performance issue on landing page */
@media only screen and (max-width: 1000px) {
    .xnavbar-menu {
        display: block;
        opacity: 0;
        position: relative;
        padding: 0;
        left: 0;
        right: 0;
        max-height: 0px;
        transition: all 0.4s ease-in-out;
        pointer-events: none;
        overflow: hidden;
    }

    .xnavbar-menu.is-active {
      max-height: 200px;
      padding: .5rem .75rem;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
  }

/* center google recaptcha */
div.g-recaptcha {
    margin: 0 auto;
    width: 304px;
}
/* ensure how it works boxes are all one height */
.howitworks {
    height: 100%;
}



/* Code block styles */
.message-body code {
    background-color: #d9d9d9;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.message-body pre code {
    background-color: #d9d9d9;
    display: block;
    border-radius: 4px;
    padding-left: 10px; /* Added padding to the left */
}
/* Greg adding back options for chat */

.notification-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* Chat UI toggle buttons */
.toggle-menu-button {
    margin-right: 0.5rem;
}

.chat-options {
    display: flex;
    align-items: center;
}

.agent-disabled {
    position: relative;
}

.agent-disabled:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ff3860;
    top: 50%;
    left: 0;
    transform: rotate(-45deg);
}

/* Participant layout */
.participant {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.participant-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.participant-avatar {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.participant-name {
    flex-grow: 1;
    text-align: left;
}

/* ORDER PROGRESS TRACKER */

    /* Master container */
    .progress-tracker {
        margin-bottom: 40px;
        position: relative;
      }

      /* Step column container - key for alignment */
      .steps-container {
        display: flex;
        justify-content: space-between;
        position: relative;
      }

      /* Individual step column for vertical alignment */
      .step-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 25%;
      }

      /* The dots */
      .step-marker {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #dbdbdb;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 14px;
        z-index: 2;
        position: relative;
        margin-bottom: 10px;
      }

      /* Completed step marker */
      .step-marker.is-completed {
        background-color: var(--primary); /* Bulma primary color */
      }

      /* Active step marker */
      .step-marker.is-active {
        background-color: var(--primary); /* Bulma primary color */
      }


        /* The connector lines */
        .connector-line-4 {
            position: absolute;
            top: 15px; /* Center vertically on dots */
            height: 3px;
            background-color: #dbdbdb;
            z-index: 1;
            }

      /* Line spans between first and last dot */
      .connector-line-4.background {
        left: calc(12.5% + 15px); /* Center of first dot */
        right: calc(12.5% + 15px); /* Center of last dot */
        width: calc(75% - 30px);
      }

      /* Line for completed progress - adjust width based on current step */
      .connector-line-4.progress {
        left: calc(12.5% + 15px); /* Center of first dot */
        width: calc(25% - 15px); /* Adjust based on progress (1 of 3 segments completed) */
        background-color: var(--primary);
      }


      .step-column-3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 33.33%;
      }
    /* The connector lines */
    .connector-line-3 {
        position: absolute;
        top: 15px; /* Center vertically on dots */
        height: 3px;
        background-color: #dbdbdb;
        z-index: 1;
      }

      /* Line spans between first and last dot */
      .connector-line-3.background {
        left: calc(16.665% + 15px); /* Center of first dot */
        right: calc(16.665% + 15px); /* Center of last dot */
        width: calc(66.67% - 30px);
      }

      /* Line for completed progress - adjust width based on current step */
      .connector-line-3.progress-half {
        left: calc(16.665% + 15px); /* Center of first dot */
        width: calc(33.33% - 15px); /* Adjust based on progress (1 of 2 segments completed) */
        background-color: var(--primary);
      }

      .connector-line-3.progress-full {
        left: calc(16.665% + 15px); /* Center of first dot */
        width: calc(66.66% - 15px); /* Adjust based on progress (1 of 2 segments completed) */
        background-color: var(--primary);
      }



      /* Step label text */
      .step-label {
        text-align: center;
        padding: 0 5px;
      }

      .step-title {
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 0.9rem;
      }

      .step-subtitle {
        font-size: 0.8rem;
        color: #777;
      }
/* END ORDER PROGRESS TRACKER */

/* Account balance rows separator */
.has-border-bottom {
  border-bottom: 1px solid #dbdbdb;
}