html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { background: #f7f3ef; color: #2f2a26; }
.card { border: 0; box-shadow: 0 10px 30px rgba(45, 35, 25, .08); }
.btn-primary { background: #8f6a4f; border-color: #8f6a4f; }
.btn-primary:hover { background: #74543d; border-color: #74543d; }
.table img, .photo-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.form-label { font-weight: 600; }
.hero { background: linear-gradient(135deg, #1f1b18, #8f6a4f); color: #fff; border-radius: 24px; padding: 48px; }
.stat { font-size: 32px; font-weight: 700; }

.admin-toast-container { z-index: 1080; }
.admin-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 340px;
    max-width: 420px;
    padding: 18px 48px 18px 18px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #2f855a 0%, #16a34a 48%, #15803d 100%);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(22, 101, 52, .34), 0 8px 22px rgba(15, 23, 42, .18);
    animation: adminToastSlideIn .34s cubic-bezier(.2, .9, .2, 1.1);
}
.admin-toast-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}
.admin-toast-content { line-height: 1.35; }
.admin-toast-title {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
}
.admin-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.92);
}
.admin-toast-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.14);
    border: 0;
    border-radius: 999px;
}
.admin-toast-close:hover { color: #fff; background: rgba(255,255,255,.24); }
.admin-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,.8);
    transform-origin: left;
    animation: adminToastProgress 3.2s linear forwards;
}
@keyframes adminToastSlideIn {
    from { transform: translateX(32px) translateY(12px) scale(.96); opacity: 0; }
    to { transform: translateX(0) translateY(0) scale(1); opacity: 1; }
}
@keyframes adminToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.carousel-collection-filter { min-width: 220px; }
.carousel-photo-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 14px;
    max-height: 430px;
    padding: 14px;
    overflow: auto;
    background: #fbf8f4;
    border: 1px solid rgba(143, 106, 79, .18);
    border-radius: 16px;
}
.carousel-photo-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(45, 35, 25, .08);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.carousel-photo-option:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 106, 79, .45);
    box-shadow: 0 14px 28px rgba(45, 35, 25, .13);
}
.carousel-photo-option img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
}
.carousel-photo-option span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.carousel-photo-option.empty {
    min-height: 134px;
    align-items: center;
    justify-content: center;
    color: #8f6a4f;
    background: linear-gradient(135deg, #fff, #f4ebe3);
    border-style: dashed;
    border-color: rgba(143, 106, 79, .35);
}
.btn-check:checked + .carousel-photo-option {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .14), 0 16px 34px rgba(45, 35, 25, .14);
}

.upload-progress-wrap {
    padding: 14px;
    background: #fbf8f4;
    border: 1px solid rgba(143, 106, 79, .18);
    border-radius: 14px;
}
.upload-progress {
    height: 16px;
    background: #eadfd6;
    border-radius: 999px;
}
.upload-progress .progress-bar {
    background: linear-gradient(90deg, #8f6a4f, #16a34a);
}
