@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0d17;
    --bg-card: rgba(18, 24, 43, 0.85);
    --bg-darker: #060810;
    --border-color: rgba(255, 255, 255, 0.05);
    --text-primary: #f8f9fa;
    --text-secondary: #94a3b8;
    
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent-green: #06d6a0;
    --accent-red: #ff5e62;
    --accent-purple: #9b5de5;

    --gradient-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #ff5e62 0%, #ff9966 100%);
    --gradient-purple: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
    --gradient-dark: linear-gradient(135deg, #18223f 0%, #0d1326 100%);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px 0 rgba(0, 242, 254, 0.1);
}

/* Navbar Premium */
.navbar-premium {
    background: rgba(10, 13, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.navbar-brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neon Badges and Buttons */
.badge-neon-blue {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-weight: 600;
}

.badge-neon-green {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
    font-weight: 600;
}

.badge-neon-red {
    background: rgba(255, 94, 98, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 94, 98, 0.2);
    font-weight: 600;
}

.btn-premium {
    background: var(--gradient-primary);
    color: #0a0d17 !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(0, 242, 254, 0.3);
}

.btn-premium:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 6px 20px 0 rgba(0, 242, 254, 0.5);
}

.btn-premium-accent {
    background: var(--gradient-accent);
    color: #0a0d17 !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(255, 94, 98, 0.3);
}

.btn-premium-accent:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 6px 20px 0 rgba(255, 94, 98, 0.5);
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 22px;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px 0 rgba(0, 242, 254, 0.2);
}

/* Cronômetro Regressivo */
.timer-container {
    background: rgba(6, 8, 16, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary);
    letter-spacing: 1px;
}

.timer-urgency {
    background: rgba(255, 94, 98, 0.15);
    border-color: rgba(255, 94, 98, 0.4);
    color: var(--accent-red);
    animation: pulsate 1s infinite alternate;
}

@keyframes pulsate {
    0% { box-shadow: 0 0 5px rgba(255, 94, 98, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 94, 98, 0.7); }
}

/* Grids e Produtos */
.product-image-container {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background: #0f1322;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .product-image {
    transform: scale(1.08);
}

.price-accent {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar do Admin/Cliente */
.sidebar-panel {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 73px);
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}

/* Formulários */
.form-control, .form-select {
    background-color: rgba(6, 8, 16, 0.6) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 242, 254, 0.2);
}

/* Histórico de Lances Real-time */
.bid-history-list {
    max-height: 250px;
    overflow-y: auto;
}

.bid-item {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bid-item:first-child {
    background: rgba(0, 242, 254, 0.05);
    border-left: 2px solid var(--primary);
    padding-left: 8px;
}

/* Estilo para rodapés e caixas */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
    padding: 40px 0;
    color: var(--text-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1f2a40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
