* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Arial", sans-serif;
    background-color: #1a202c;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #141922;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

h1, h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

h1 {
    color: #3fc360;
}

.control-panel {
    background-color: #2d3748;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a202c;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="color"]:focus {
    outline: none;
    border-color: #3fc360;
    box-shadow: 0 0 0 3px rgba(63, 195, 96, 0.2);
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background-color: #1a202c;
    cursor: pointer;
}

.btn {
    background-color: #3fc360;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #319e4c;
}

.select-btn {
    background-color: #4a5568;
    padding: 10px 15px;
    font-size: 14px;
}

.select-btn:hover {
    background-color: #2d3748;
}

.toggle-info {
    background-color: #4a5568;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

.toggle-info:hover {
    background-color: #2d3748;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 100px;
    padding: 15px;
    background-color: #2d3748;
    border-radius: 6px;
}

.hint {
    margin-bottom: 10px;
    color: #a0aec0;
    font-style: italic;
}

.sortable-ghost {
    opacity: 0.5;
}

#preloader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    color: #e2e8f0;
}

.spinner {
    border: 5px solid #2d3748;
    border-top: 5px solid #3fc360;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s;
    background-color: #1a202c;
    padding: 5px;
    border-radius: 5px;
}

/* Styl pro vybrané obrázky */
.image-wrapper.selected {
    box-shadow: 0 0 0 3px #3fc360, 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.image-wrapper img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid #4a5568;
    border-radius: 4px;
    cursor: move;
}

.image-buttons {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    background-color: rgba(26, 32, 44, 0.7);
    border-radius: 4px;
    padding: 3px;
}

.image-button {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #e2e8f0;
}

.delete-button:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

.download-button:hover {
    background-color: rgba(63, 195, 96, 0.3);
}

/* Styly pro checkbox */
.checkbox-wrapper {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 32, 44, 0.7);
    border-radius: 4px;
    padding: 3px;
}

.image-checkbox {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3fc360;
}

/* Styly pro tlačítka výběru */
.select-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: #3fc360;
}

/* Drop zone styling */
.drop-zone {
    max-width: 100%;
    height: 200px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: #a0aec0;
    border: 2px dashed #4a5568;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: #1a202c;
}

.drop-zone.highlight {
    border-color: #3fc360;
    background-color: rgba(63, 195, 96, 0.1);
}

.drop-zone-prompt {
    font-size: 1.2em;
}

.drop-zone-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Info Panel Styling */
.info-panel {
    background-color: #2d3748;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid #3fc360;
}

.info-panel h2 {
    color: #3fc360;
    margin-top: 0;
}

.info-panel h3 {
    color: #e2e8f0;
    margin-top: 15px;
    margin-bottom: 10px;
}

.info-panel ul, .info-panel ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #a0aec0;
}

.info-panel li {
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    input[type="number"],
    input[type="text"],
    .btn {
        padding: 10px;
    }
    
    .image-wrapper img {
        max-width: 120px;
        max-height: 120px;
    }
}