/* Call Photography - Custom Styles */

/* ---- General ---- */
body {
    font-size: 0.92rem;
}

.x-small {
    font-size: 0.78rem;
}

/* ---- Graduation App (gradapp) ---- */
#grad-app {
    min-height: 60vh;
}

/* Proof thumbnail grid */
#proof-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.proof-thumb {
    width: 165px;
    height: 165px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: border-color 0.15s, transform 0.1s;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.proof-thumb:hover {
    border-color: #0d6efd;
    transform: scale(1.03);
}

.proof-thumb.selected {
    border-color: #198754;
    box-shadow: 0 0 0 2px #19875488;
}

/* Panoramic photo thumbnails — 12:5 wide-format */
.proof-thumb-pano {
    width: 50%;
    aspect-ratio: 12 / 5;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: border-color 0.15s, transform 0.1s;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.proof-thumb-pano img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proof-thumb-pano:hover {
    border-color: #0d6efd;
    transform: scale(1.01);
}

.proof-thumb-pano.selected {
    border-color: #198754;
    box-shadow: 0 0 0 2px #19875488;
}

#proof-gallery.pano-mode {
    flex-direction: column;
}

/* Package photo slots */
.package-slot {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8f9fa;
    transition: border-color 0.15s;
}

.package-slot.filled {
    border-color: #198754;
    border-style: solid;
    background: #fff;
}

.package-slot img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.package-slot .slot-label {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: #6c757d;
    background: rgba(255,255,255,0.8);
    padding: 1px 0;
}

.package-slot .slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.75rem;
    line-height: 1;
    padding: 2px 5px;
}

/* Retouch thumbnail */
.retouch-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.retouch-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.retouch-item.has-retouch {
    border-color: #0dcaf0;
    background: #f0fbff;
}

/* Screen transitions */
.grad-screen {
    display: none;
}

.grad-screen.active {
    display: block;
}

/* Product tab panel */
#panel-products .nav-tabs .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
}

/* Cart item count badge */
#cart-badge {
    font-size: 0.65rem;
    vertical-align: top;
    margin-top: -2px;
}

/* ---- Admin ---- */
.font-monospace {
    font-family: var(--bs-font-monospace);
}

/* ETL log viewer */
#etl-log-output {
    font-family: var(--bs-font-monospace);
    font-size: 0.8rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 4px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Sticky order summary on checkout */
@media (min-width: 992px) {
    #order-summary-wrap {
        position: sticky;
        top: 20px;
    }
}

/* Image zoom modal */
#zoom-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
