﻿/* Wedding Image Administration Styles */

/* Drag and Drop Styles */
.upload-drop-zone {
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    cursor: pointer;
}

    .upload-drop-zone:hover {
        border-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.05);
    }

    .upload-drop-zone.drag-over {
        border-color: #0d6efd !important;
        background-color: rgba(13, 110, 253, 0.1) !important;
        transform: scale(1.02);
    }

/* Image Slot Styles */
.wedding-image-slot {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .wedding-image-slot:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .wedding-image-slot .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }

    .wedding-image-slot .btn-group-vertical .btn {
        margin-bottom: 2px;
        border-radius: 4px;
    }

/* Image Display */
.image-display {
    overflow: hidden;
    border-radius: 0;
}

    .image-display img {
        transition: transform 0.3s ease;
    }

    .image-display:hover img {
        transform: scale(1.05);
    }

.image-info-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 0.8rem;
    border-radius: 0 0 4px 4px;
}

/* Status Badges */
.wedding-image-slot .badge {
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Upload Progress */
.upload-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Crop Modal Styles */
.crop-container {
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.crop-controls {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.crop-coordinates input {
    font-size: 0.8rem;
}

/* Toast Styles */
#toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header i {
    font-size: 1.1rem;
}

/* Section Styles */
.card-header h5 {
    color: #495057;
}

.card-header .badge {
    background-color: #6c757d !important;
}

/* Button Styles */
.btn-group .btn {
    margin-right: 0.25rem;
}

    .btn-group .btn:last-child {
        margin-right: 0;
    }

/* Performance Info */
#performanceInfo {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wedding-image-slot {
        margin-bottom: 1rem;
    }

    .btn-group-vertical .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .upload-drop-zone {
        min-height: 150px;
    }

    .crop-controls {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .card-header .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

        .card-header .btn-group .btn {
            margin-bottom: 0.25rem;
            margin-right: 0;
        }

    .toast {
        min-width: 280px;
    }
}

/* Animation for successful uploads */
@keyframes uploadSuccess {
    0% {
        background-color: rgba(25, 135, 84, 0);
    }

    50% {
        background-color: rgba(25, 135, 84, 0.2);
    }

    100% {
        background-color: rgba(25, 135, 84, 0);
    }
}

.upload-success {
    animation: uploadSuccess 1s ease-in-out;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
