/* This is a new file, I'll add styles for the calendar editor */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 템플릿 버튼 스타일 */
.template-btn {
    border: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.template-btn.selected {
    border-color: #3b82f6; /* blue-500 */
    color: #3b82f6;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    padding: 8px;
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    min-height: 76px;
}


.thumbnail-container-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    padding: 3px;
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    min-height: 48 px; /* h-16 tailwind size (64px) */
}


.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 0.25rem; /* rounded */
    overflow: hidden;
    cursor: pointer;
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.thumbnail.selected {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px #3b82f6;
}

.thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d1d5db; /* bg-gray-300 */
    color: #6b7280; /* text-gray-500 */
    font-weight: bold;
    font-size: 1.5rem; /* text-2xl */
}

/* 그리기 도구 UI를 위한 추가 스타일 */
.color-circle.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px white, 0 0 0 5px black;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    cursor: pointer;
    margin-top: -11px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        /* 슬라이더 핸들(thumb) 스타일링 */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -2px; /* 트랙 높이와 핸들 크기에 맞춰 미세 조정 */
}
input[type="range"]::-moz-range-thumb {
    appearance: none;
}

#sticker-panel.open {
    transform: translateY(0);
}

#sticker-grid::-webkit-scrollbar { display: none; }
#sticker-grid { -ms-overflow-style: none; scrollbar-width: none; }

.sticker-item-in-panel { 
    cursor: pointer; 
    transition: transform 0.1s ease-in-out; 
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 */
}
.sticker-item-in-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 스티커 이미지가 컨테이너를 꽉 채우도록 설정 */
}
.sticker-item-in-panel:active { transform: scale(0.9); }



#thumbnailContainerMobile{ 
    overflow: auto;
    max-height: 90px;
}
