/* Premium B2B SaaS Aesthetics */
:root {
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --hover-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --surface-color: #ffffff;
    --background-color: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--background-color);
}

.tool-header {
    background: white;
    padding: 40px 15px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
}

/* Premium Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .upload-area {
        padding: 80px 40px;
    }
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.upload-area:hover, .upload-area.dragover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(245, 158, 11, 0.2);
}

.upload-area:hover::before, .upload-area.dragover::before {
    opacity: 0.03;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .upload-icon-wrapper {
        width: 100px;
        height: 100px;
        margin: 0 auto 24px;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-premium {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .btn-premium {
        padding: 12px 32px;
    }
}

.btn-premium:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Tab Navigation Adjustments */
.nav-tabs .nav-link {
    color: #64748b;
    background: transparent;
}
.nav-tabs .nav-link:hover {
    background: #f1f5f9;
}
.nav-tabs .nav-link.active {
    background: white !important;
    color: #0f172a !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
}

/* Image Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .images-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.image-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s ease;
}

.image-card:active {
    cursor: grabbing;
}

.image-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.image-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-card .card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.action-btn.delete:hover {
    color: #ef4444;
}

.action-btn.edit:hover {
    color: #3b82f6;
}

.image-number {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sortable JS styling */
.sortable-ghost {
    opacity: 0.4;
}

/* Cropper specific */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
}
