body {
    font-family: 'Roboto Mono', monospace;
    background-color: #1a1a1a;
}

/* 드래그 앤 드롭 영역 */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropzone.dragover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.02);
}

.cursor-pointer {
    cursor: pointer;
}

/* 밀착 인화(Contact Sheet) 컨테이너 */
.contact-sheet-container {
    width: 100%;
    max-width: 1100px;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-radius: 4px;
}

/* 필름 스트립 디자인 */
.film-strip {
    width: 100%;
    background-color: #050505;
    position: relative;
    padding: 35px 20px; /* 위아래 스프로킷 홀 공간 */
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    
    /* 필름 구멍 (Sprocket holes) 패턴 */
    background-image: 
        radial-gradient(circle 4.5px at 15px 12px, #1a1a1a 100%, transparent 0),
        radial-gradient(circle 4.5px at 15px calc(100% - 12px), #1a1a1a 100%, transparent 0);
    background-size: 30px 100%;
    background-repeat: repeat-x;
    
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* 스크롤바 스타일 */
.film-strip::-webkit-scrollbar {
    height: 8px;
}
.film-strip::-webkit-scrollbar-track {
    background: #111;
}
.film-strip::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* 개별 사진 프레임 */
.frame {
    flex: 0 0 auto;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.frame-image-wrapper {
    width: 100%;
    height: 146px; /* 35mm 비율 근사치 (3:2) -> 220x146 */
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #000;
    cursor: pointer;
}

/* 흑백 필름 필터 효과 (기본 적용, 마우스 오버 시 컬러) */
.frame-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.frame-image-wrapper img:hover {
    filter: grayscale(0%) contrast(1);
}

/* 선택된 사진 스타일 */
.frame-image-wrapper.selected {
    border: 3px solid #dc3545; /* Bootstrap danger 색상 */
    box-shadow: inset 0 0 10px rgba(220, 53, 69, 0.8), 0 0 10px rgba(220, 53, 69, 0.8);
}
.frame-image-wrapper.selected img {
    filter: grayscale(0%) contrast(1); /* 선택 시 컬러 유지 */
    opacity: 0.8;
}

/* 프레임 번호 및 텍스트 (필름 가장자리 정보) */
.frame-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #eebb00; /* 코닥 옐로우 */
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 1px;
    font-weight: bold;
}

.frame-number {
    font-size: 13px;
}

.film-brand-text {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #eebb00;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    pointer-events: none;
}

/* 프린트 시 스타일 */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    nav, #uploadSection, #addMoreBtn, #printBtn {
        display: none !important;
    }
    .contact-sheet-container {
        box-shadow: none;
        max-width: 100%;
        background-color: #fff !important; /* 밀착 인화지(종이) 배경색 */
        padding: 0 !important;
        gap: 10px;
    }
    .film-strip {
        /* 프린트 시 스프로킷 홀은 흰색 종이 색상과 동일하게 */
        background-image: 
            radial-gradient(circle 4.5px at 15px 12px, #fff 100%, transparent 0),
            radial-gradient(circle 4.5px at 15px calc(100% - 12px), #fff 100%, transparent 0);
        page-break-inside: avoid;
        overflow-x: hidden; /* 프린트 시 스크롤바 숨김 */
        flex-wrap: wrap; /* 내용물이 잘리지 않게 줄바꿈 처리 옵션 (필요시) */
    }
    .film-brand-text, .frame-info {
        color: #fff; /* 프린트 시 검정 필름 위 흰색 글씨 */
    }
}