/*
This file contains styles specifically tailored for the public-facing section of the application. These styles override
the general ones defined in styles.css.
*/

.form-check-input:disabled {
    background-color: #a6a7a8;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-select:disabled {
    --cui-form-select-bg-img: none;
}

.logo-max-size {
    max-width: 150px;
    max-height: 150px;
}

.logo-max-size-small {
    max-width: 75px;
    max-height: 75px;
}

/* Step icon circle */
.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Container spacing for vertical step list */
.step-vertical-item {
  min-height: 75px;
}

/* Vertical line that connects steps */
.step-line-vertical {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 25px;
    background-color: #dee2e6;
    z-index: 0;
}

/* Responsive tweak for smaller screens (optional) */
@media (max-width: 768px) {
  .step-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .step-vertical-item {
    min-height: 50px;
  }

  .hide-border-end-sm {
    border-right: none !important;
  }

  .step-line-vertical {
      top: 35px;
  }
}

.step-horizontal-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.step-horizontal-item {
    position: relative;
    flex: 1;
}

.step-line-horizontal {
    position: absolute;
    top: 16px;
    left: 65%;
    right: -45%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.description-limit {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 5;
    box-orient: vertical;
    text-overflow: ellipsis;
    white-space: pre-line;
    word-break: break-word;
}

/* Customer Portal CSS */
/* Status Badges */
.status-badge {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    vertical-align: middle;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Work Order Color Scheme */

/* New / Open = Vibrant Blue (Azure) */
.status-new {
    background-color: #2e86de;
}

/* In Progress = Vibrant Purple */
.status-active {
    background-color: #8854d0;
}

/* Waiting = Vibrant Orange (Rich enough for white text) */
.status-wait {
    background-color: #fa8231;
}

/* Completed = Vibrant Emerald Green */
.status-done {
    background-color: #20bf6b;
}

/* Billed/Closed = Cool Blue-Grey */
.status-closed {
    background-color: #778ca3;
}

/* Cancelled = Soft Vibrant Red */
.status-cancel {
    background-color: #eb3b5a;
}

/* Customer portal index page that currently has work order info */
/* By default, hide the details, show the total */
.waiting-details {
    display: none !important;
}
.waiting-total {
    display: block !important;
}

/* On Hover, hide the total, show the details */
.waiting-card:hover .waiting-total {
    display: none !important;
}
.waiting-card:hover .waiting-details {
    display: block !important;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Portal Selection Index */

/* Typography */
.tracking-tight {
    letter-spacing: -0.5px;
}
.text-medium-emphasis {
    color: rgba(44, 56, 74, 0.681);
}

/* Card Interaction & Animation */
.portal-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1)!important;
}

/* Icon Animation on Card Hover */
.transition-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.portal-card:hover .transition-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Simple Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}
