/* Angerer ImageUpload Theme */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

/* Cards */
.card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 0.75rem;
}

.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}

/* Gallery Grid */
.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
}

.gallery-thumb-small {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gallery-thumb-small:hover {
    opacity: 0.85;
}

.gallery-lightbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #212529;
    background: #e9ecef;
}

.upload-zone input[type="file"] {
    display: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.375rem;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Badges */
.badge-count {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Loading spinner overlay */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}
