html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.avatar > div {
    display: flex !important;
}

/* Aggiungi questo CSS al file site.css o crea un file notifications.css */

/* ===== STILI NOTIFICHE DROPDOWN ===== */
.notification-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .notification-item:hover {
        transform: translateX(4px);
    }

    .notification-item.unread {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
        border-left: 3px solid #3b82f6;
    }

.notification-icon {
    transition: all 0.2s ease;
}

.notification-item:hover .notification-icon {
    transform: scale(1.1);
}

/* Animazione badge notifiche */
.notification-badge {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ===== STILI ASTA CHAT ===== */
.offerta-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

    .offerta-item.mia-offerta {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
        border-left: 4px solid #3b82f6;
    }

    .offerta-item.offerta-vincente {
        background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
        border-left: 4px solid #22c55e;
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    }

    .offerta-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Animazione per nuove offerte */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offerta-new {
    animation: slideInFromTop 0.3s ease-out;
}

/* ===== COUNTDOWN ASTA ===== */
.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .countdown.urgent {
        color: #ef4444 !important;
        animation: pulse-urgent 1s infinite;
    }

@keyframes pulse-urgent {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== FORM OFFERTA ===== */
.bid-form {
    transition: all 0.3s ease;
}

    .bid-form.loading {
        opacity: 0.7;
        pointer-events: none;
    }

.bid-input {
    transition: all 0.2s ease;
}

    .bid-input:focus {
        transform: scale(1.02);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* ===== TOAST NOTIFICHE ===== */
.notification-toast {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== STATUS CONNECTION ===== */
.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

    .connection-status.connected {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

    .connection-status.connecting {
        background: rgba(249, 115, 22, 0.1);
        color: #f97316;
        animation: pulse 1s infinite;
    }

    .connection-status.disconnected {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

/* ===== STATISTICHE ASTA ===== */
.asta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-height: calc(100vh - 80px);
    }

    .asta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== DARK THEME ===== */
[data-theme="dark"] .notification-item {
    border-color: rgba(55, 65, 81, 0.5);
}

    [data-theme="dark"] .notification-item.unread {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    }

[data-theme="dark"] .offerta-item.mia-offerta {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
}

[data-theme="dark"] .offerta-item.offerta-vincente {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.2) 0%, transparent 100%);
}

[data-theme="dark"] .stat-card {
    background: #374151;
    color: white;
}

[data-theme="dark"] .stat-number {
    color: white;
}

[data-theme="dark"] .stat-label {
    color: #d1d5db;
}

/* ===== ANIMAZIONI PERSONALIZZATE ===== */
.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shadow-glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/*@font-face {
    font-family: 'Amblas';
    src: url('/fonts/Amblas.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Amblas', sans-serif;
}*/