/* assets/css/style.css */

.bitp-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bitp-header {
    text-align: center;
    margin-bottom: 30px;
}

.bitp-header h2 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 28px;
}

.bitp-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.bitp-dropzone {
    border: 3px dashed #3498db;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.bitp-dropzone:hover {
    border-color: #2980b9;
    background: #e3f2fd;
}

.bitp-dropzone.drag-over {
    border-color: #27ae60;
    background: #d5f4e6;
}

.bitp-dropzone svg {
    color: #3498db;
    margin-bottom: 20px;
}

.bitp-dropzone h3 {
    margin: 10px 0;
    color: #2c3e50;
    font-size: 20px;
}

.bitp-dropzone p {
    margin: 5px 0;
    color: #95a5a6;
    font-size: 14px;
}

.bitp-preview-area {
    margin: 30px 0;
}

.bitp-preview-area h3 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 18px;
}

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

.bitp-image-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    transition: all 0.2s ease;
    background: #fff;
}

.bitp-image-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bitp-image-item.sortable-ghost {
    opacity: 0.4;
}

.bitp-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.bitp-image-name {
    padding: 8px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f8f9fa;
}

.bitp-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bitp-image-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.bitp-options {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bitp-options h3 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 18px;
}

.bitp-radio-group {
    margin-bottom: 20px;
}

.bitp-radio-group label {
    display: block;
    margin: 10px 0;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bitp-radio-group label:hover {
    border-color: #3498db;
}

.bitp-radio-group input[type="radio"] {
    margin-right: 10px;
}

.bitp-radio-group input[type="radio"]:checked + span {
    font-weight: 600;
    color: #3498db;
}

.bitp-radio-group label:has(input:checked) {
    border-color: #3498db;
    background: #e3f2fd;
}

.bitp-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.bitp-btn-primary {
    background: #3498db;
    color: white;
}

.bitp-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.bitp-btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.bitp-btn-secondary {
    background: #95a5a6;
    color: white;
}

.bitp-btn-secondary:hover {
    background: #7f8c8d;
}

.btn-loader {
    display: inline-block;
}

.bitp-progress {
    margin: 20px 0;
}

.bitp-progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bitp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.bitp-progress-text {
    text-align: center;
    color: #7f8c8d;
    margin: 0;
}

.bitp-result {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.bitp-result.success {
    background: #d5f4e6;
    border: 2px solid #27ae60;
}

.bitp-result.error {
    background: #fadbd8;
    border: 2px solid #e74c3c;
}

.bitp-result h4 {
    margin: 0 0 10px;
    color: #2c3e50;
}

.bitp-result p {
    margin: 5px 0;
}

.bitp-download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.bitp-download-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}