input::placeholder {
    color: lightgray !important;
}

.selected {
    background-color: greenyellow;
}

.target {
    background-color: orange;
}

.ignore-select {
    user-select: none;
}

.loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.5s linear;
    opacity: 0.8;
}

.loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-text {
    color: black;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.spinner {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 4px solid black;
    border-left-color: white;
    animation: spinner-rotation 1s linear infinite;
}

@keyframes spinner-rotation {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ドラッグ&ドロップエリアのスタイル */
.drag-drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

.drag-drop-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-content button {
    pointer-events: auto;
}

.drag-drop-area h5 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.drag-drop-area h6 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* disabled状態のスタイル */
.drag-drop-area.disabled {
    border-color: #e9ecef;
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

.drag-drop-area.disabled:hover {
    border-color: #e9ecef;
    background-color: #f8f9fa;
    transform: none;
}

.disabled-message {
    color: #6c757d !important;
    font-style: italic;
    display: block;
}

.drag-drop-area:not(.disabled) .disabled-message {
    display: none;
}

/* 画像拡大モーダルのスタイル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s;
    justify-content: center;
    align-items: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    display: block;
    width: 90%;
    max-width: 1920px;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalZoomIn 0.3s;
}

@keyframes modalZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* クリック可能な画像にカーソルポインターを追加 */
.clickable-image {
    cursor: zoom-in;
}

/* sendButtonを正円にするスタイル */
#sendButton {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    margin: 0 auto !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

#sendButton:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

#sendButton:disabled {
    border-color: #6c757d !important;
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* TOPスクロールボタンのスタイル */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px), translateX(50%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-to-top-btn.show {
    display: flex;
}