/* ==========================================================================
   Estilos Principais - SupraVendas Img System
   ========================================================================== */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-radius: 1rem;
    --transition-fast: 0.25s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Login Page Styling
   -------------------------------------------------------------------------- */
.login-wrapper {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50px;
    left: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    border-radius: var(--card-radius);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.login-card:hover {
    transform: translateY(-2px);
}

.login-card .card-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
}

.login-header-icon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Gallery Page Styling
   -------------------------------------------------------------------------- */
.navbar {
    background: #0f172a !important;
    backdrop-filter: blur(10px);
}

.image-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

.image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.image-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    background-color: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.image-card:hover .image-card-img {
    transform: scale(1.05);
}

.barcode-badge {
    font-family: monospace;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.max-h-75vh {
    max-height: 75vh;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Animações e Utilitários
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.35s ease forwards;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
