body {
    font-family: sans-serif;
    margin: 20px;
}

h4 {
    text-align: center;
}

#fileInput {
    display: none;
}

#dropZone {
    border: 2px dashed #aaa;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #666;
    transition: background 0.3s ease, transform 0.3s ease;
}

#dropZone.hover {
    background: #e0f7fa;
    transform: scale(1.02);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.grid img:hover {
    transform: scale(1.05);
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-content {
    text-align: center;
    color: white;
}

#modalInfo {
    margin-top: 15px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    white-space: pre-wrap;
}

#modalCopyBtn {
    margin-top: 10px;
    padding: 6px 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#modalCopyBtn:hover {
    background: #005fa3;
    transform: scale(1.10);
}
