/* Add here all your CSS customizations */

/* Badge color overrides - status badges */
.badge-secondary {
    background: #6c757d;
    color: #FFF;
}

.badge-primary {
    background: #0d6efd !important;
    color: #FFF !important;
}

.badge-purple {
    background: #6f42c1 !important;
    color: #FFF !important;
}


/* ============================================
   Toggle Add Work Form Feature - CSS Styling
   ============================================ */

/* Toggle button styling */
#toggleAddWorkFormBtn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: #1b5e20 !important;
    color: white !important;
    border: none !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#toggleAddWorkFormBtn:hover {
    background-color: #145a1a !important;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

#toggleAddWorkFormBtn:focus {
    outline: 2px solid #1b5e20;
    outline-offset: 2px;
    background-color: #145a1a !important;
}

#toggleAddWorkFormBtn:active {
    background-color: #0d3817 !important;
}

/* Icon rotation animation */
#toggleAddWorkFormBtn i {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 1.2rem;
}

#toggleAddWorkFormBtn[aria-expanded="true"] i {
    transform: rotate(45deg);
}

/* Form section animation */
#addWorkFormSection {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #toggleAddWorkFormBtn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
}

/* ============================================================
   Chat Interface — ticket-chat-notifications
   ============================================================ */

.chat-container {
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-bubble {
    max-width: 75%;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    word-break: break-word;
    position: relative;
}

.chat-bubble-own {
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble-other {
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble-client      { background-color: #d1ecf1; }
.chat-bubble-technician  { background-color: #fff3cd; }
.chat-bubble-admin       { background-color: #cce5ff; }

.chat-bubble-meta {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chat-bubble-own .chat-bubble-meta {
    justify-content: flex-end;
}

.chat-bubble-body {
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-empty-state {
    text-align: center;
    color: #6c757d;
    padding: 2rem 1rem;
    font-style: italic;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.75rem;
}

.chat-form textarea {
    flex: 1;
    resize: none;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.chat-form .btn-send {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-closed-notice {
    text-align: center;
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .chat-bubble {
        max-width: 90%;
    }
}
