body {
    background-color: #f0f2f5;
}

.card-custom {
    border-top: 3px solid #0d6efd;
}

.preview-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: .25rem;
}

.preview-box h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

h4.card-title, h5.fw-bold {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-item {
    transition: all 0.2s ease;
}

.option-item:hover {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.preview-wrapper {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.sidebar {
    width: 160px;
    background: #f4f4f6;
    border-right: 1px solid #ddd;
}

.sidebar a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background-color: #e9ecef;
}

.sidebar a.active {
    color: #0d6efd;
    font-weight: 600;
    background-color: #e7f1ff;
}

.main-preview {
    flex: 1;
    padding: 16px;
}

.banner-img {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
}

.greeting-box {
    background: #f0f2f5;
    padding: 12px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
}

.step-box {
    cursor: move;
    transition: all 0.2s ease;
}

.step-box:hover {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.step-status {
    font-size: 12px;
    color: #666;
    word-break: break-all;
    max-width: 300px;
}

.steps-carousel-container {
    position: relative;
}

.carousel-placeholder {
    display: block;
}

#stepsCarousel {
    display: none;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
}

#stepsCarousel.show {
    display: block;
    height: auto;
}

.carousel-placeholder.hide {
    display: none;
}

.carousel-item {
    height: 150px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 2px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

.step-preview-1,
.step-preview-2,
.step-preview-3 {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-preview-1.uploading,
.step-preview-2.uploading,
.step-preview-3.uploading {
    border-color: #007bff;
    background: linear-gradient(90deg, #e0e0e0 25%, #007bff 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.contact-preview {
    max-width: 400px;
}

/* Styles cho nút lưu */
.btn-save {
    min-width: 140px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-save:disabled {
    transform: none;
    box-shadow: none;
}

/* Styles cho thông báo */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Animation cho loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bi-hourglass-split {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-save {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .d-flex.justify-content-end {
        justify-content: center !important;
        margin-top: 1rem;
    }
    
    .preview-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .sidebar a {
        display: inline-block;
        padding: 8px 12px;
    }
}
