/* Custom Styles for AniGiffy */

html, body {
    min-height: 100vh;
}

body {
    background-color: #f8f9fa;
}

/* Drag and Drop */
#dropZone {
    transition: background-color 0.2s, border-color 0.2s;
}

#dropZone.drag-over {
    background-color: #e7f3ff;
    border: 2px dashed #0d6efd !important;
}

/* Frame List */
.frame-list {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.frame-item {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    cursor: move;
    transition: all 0.2s;
}

.frame-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.frame-item.dragging {
    opacity: 0.5;
}

.frame-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.frame-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.frame-duration {
    width: 80px;
}

.frame-delete {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}

.frame-delete:hover {
    color: #bb2d3b;
}

/* Add Image Placeholder */
.add-image-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-image-placeholder:hover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

.add-image-placeholder.drag-over {
    border-color: #0d6efd;
    background-color: #e7f3ff;
    border-width: 3px;
}

.add-image-placeholder i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.add-image-placeholder:hover i {
    color: #0d6efd;
}

.add-image-placeholder p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Preview Container */
.preview-container {
    min-height: 200px;
    max-height: calc(100vh - 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

#previewImage {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Settings Card */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.card-header {
    font-weight: 500;
}

/* Toast Notifications */
.toast {
    min-width: 250px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Project List */
.project-item {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

/* Scrollbar Styling */
.frame-list::-webkit-scrollbar {
    width: 8px;
}

.frame-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.frame-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.frame-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .frame-list {
        max-height: 400px;
    }

    .preview-container {
        min-height: 250px;
    }
}
