/* Show Information Styles */
.show-booths-main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.show-info-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.show-info-header {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
}

.show-info-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.show-info-content {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    gap: 20px;
}

.show-info-column {
    flex: 1;
    min-width: 250px;
}

.info-group {
    margin-bottom: 15px;
}

.info-group h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #3498db;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.info-group p {
    margin: 5px 0;
    font-size: 14px;
}

/* Electrical Diagrams Styles */
.electrical-diagrams {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.diagrams-header {
    margin-bottom: 15px;
}

.diagrams-header h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #e74c3c;
    /* Red for electrical */
}

.diagrams-header p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.diagrams-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.diagram-item {
    width: calc(33.333% - 10px);
    min-width: 200px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.diagram-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.diagram-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.diagram-caption span {
    font-size: 13px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-full {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

.view-full:hover {
    text-decoration: underline;
}

.booth-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.no-booths {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

.booth-row {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.booth-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.booth-info {
    display: flex;
    font-size: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.booths {
    display: flex;
    width: 100%;
}

.booth-name {
    display: flex;
    flex-direction: column;
    width: 30%;
}

.booth-name strong {
    font-size: 16px;
    color: #2c3e50;
}

.carpets-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.carpet {
    display: flex;
}

.carpet-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #5a6268;
    padding: 0px 10px;
    gap: .3rem;
}

.color-qty-container {
    width: 40%;
    display: flex;
    justify-content: space-between;
}

.extra-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.carpet-color {
    font-weight: 500;
    color: #5a6268;
}

.qty-info {
    font-weight: 500;
    color: #495057;
}

.booth-status {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.booth-status label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 3px;
    position: relative;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.radio-label {
    font-size: 14px;
    color: #495057;
}

.radio-custom.done {
    border-color: #28a745;
}

.radio-custom.not-done {
    border-color: #dc3545;
}

.radio-custom.in-progress {
    border-color: #007bff;
}

.radio-custom.booth-alert {
    border-color: #ffc107;
}

.radio-input:checked+.radio-custom.done {
    background-color: #28a745;
    border-color: #28a745;
}

.radio-input:checked+.radio-custom.not-done {
    background-color: #dc3545;
    border-color: #dc3545;
}

.radio-input:checked+.radio-custom.in-progress {
    background-color: #007bff;
    border-color: #007bff;
}

.radio-input:checked+.radio-custom.booth-alert {
    background-color: #ffc107;
    border-color: #ffc107;
}

.radio-input:checked+.radio-custom:after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reason-container,
.comment-container,
.booth-alert-container {
    width: 100%;
    display: flex;
    gap: 8px;
}

.reason-container input,
.comment-container input,
.booth-alert-container input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.reason-container input:focus,
.comment-container input:focus,
.booth-alert-container input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.submit-reason,
.submit-comment,
.submit-booth-alert {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.submit-reason:hover,
.submit-comment:hover,
.submit-booth-alert:hover {
    background: #0069d9;
    transform: translateY(-1px);
}

.submit-reason:active,
.submit-comment:active,
.submit-booth-alert:activate {
    background: #0062cc;
    transform: translateY(0);
}

/* Accordion Styles */
.status-history-accordion {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-content {
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #ddd;

    scrollbar-width: thin;
    scrollbar-color: #aaa #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.accordion-content::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
}

.accordion-content::-webkit-scrollbar-button {
    display: none;
}

.accordion-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.accordion-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 20px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.history-entries {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.history-entry {
    padding: .4rem .6rem;
    border-bottom: 1px dotted #eee;
    border-radius: 4px;
    font-size: 0.9em;
    background-color: #f9f9f9;
}

.history-entry:last-child {
    border-bottom: none;
}

.no-history {
    padding: 10px;
    color: #999;
    font-style: italic;
}

.status-complete {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
}

.status-icon {
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.status-text {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
}

.done-entry {
    color: #4CAF50;
    font-weight: bold;
}

.electrical-diagram-section {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.diagram-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    cursor: pointer;
}

.electrical-diagram-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.diagram-accordion-content {
    padding: 10px;
    display: flex;
    gap: 1rem;
}

@media (max-width: 480px) {
    .booths {
        flex-direction: column;
    }

    .carpets-container {
        margin-top: 4px;
    }

    .carpet-info {
        padding: 0;
        gap: .3rem;
    }

    .extra-info {
        gap: 0;
    }

    .carpet-extra-info {
        flex-direction: column;
    }

    .carpet-extra-info div {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

/* Loading indicators for HTMX interactions */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

.magnifier-container {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}

.magnifier {
    position: absolute;
    display: none;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #913fe2;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    background-repeat: no-repeat;
    background-size: 300% 300%;
    pointer-events: none;
    z-index: 1000;
}

.booth-search-container {
    margin: 20px 0;
    position: flex;
    width: 100%;
}

#booth-search-input {
    width: 20%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#booth-search-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin-top: 2px;
    z-index: 999;
}

#booth-search-results li {
    padding: 8px;
    cursor: pointer;
}

#booth-search-results li:hover {
    background-color: #f0f0f0;
}