Rimosso completamente il supporto a PostgreSQL: ora tutte le statistiche e i dati persistenti usano solo SQLite, con percorso configurabile tramite DATA_PATH per Docker/volumi. Aggiunta gestione avanzata delle statistiche per prodotto, limiti consigliati calcolati automaticamente e applicabili dalla UI. Rinnovata la pagina Statistiche con tabelle aste recenti e prodotti, rimosso il supporto a grafici legacy e a "Puntate Gratuite". Migliorata la ricerca e la gestione delle aste nel browser, aggiunta diagnostica avanzata e logging dettagliato per il database. Aggiornati Dockerfile e docker-compose: l'app è ora self-contained e pronta per l'uso senza database esterni.
661 lines
15 KiB
CSS
661 lines
15 KiB
CSS
/* === MODERN PAGE STYLES (append to app-wpf.css) === */
|
|
|
|
/* ✅ NUOVO: Stili per selezione riga e colonna puntate */
|
|
.table-hover tbody tr {
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.table-hover tbody tr.selected-row {
|
|
background-color: rgba(76, 175, 80, 0.15) !important;
|
|
border-left: 4px solid #4CAF50;
|
|
}
|
|
|
|
.table-hover tbody tr:hover:not(.selected-row) {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* Colonna Puntate - testo grassetto e leggibile */
|
|
.bids-column {
|
|
font-weight: bold !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
/* Larghezza colonna puntate leggermente maggiore */
|
|
.col-click {
|
|
min-width: 85px;
|
|
width: 85px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.page-header-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--gradient-primary);
|
|
border-radius: var(--radius-md);
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
}
|
|
|
|
.page-header-text h1,
|
|
.page-header-text h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.page-header-text p {
|
|
margin: 0.25rem 0 0;
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Modern Accordion */
|
|
.accordion-modern .accordion-item {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg) !important;
|
|
margin-bottom: 0.75rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.accordion-modern .accordion-button {
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
padding: 1rem 1.25rem;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.accordion-modern .accordion-button:not(.collapsed) {
|
|
background: rgba(99, 102, 241, 0.08);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.accordion-modern .accordion-button::after {
|
|
filter: invert(1);
|
|
}
|
|
|
|
.accordion-modern .accordion-body {
|
|
padding: 1.25rem;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* Modern Form Controls Override */
|
|
.settings-container .form-control,
|
|
.settings-container .form-select {
|
|
background: var(--bg-secondary) !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
border-radius: var(--radius-md) !important;
|
|
color: var(--text-primary) !important;
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
.settings-container .form-control:focus,
|
|
.settings-container .form-select:focus {
|
|
border-color: var(--primary) !important;
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stat-box {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.25rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.stat-box:hover {
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.stat-box-label {
|
|
font-size: 0.8125rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.stat-box-value {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-box-value.success { color: var(--success); }
|
|
.stat-box-value.warning { color: var(--warning); }
|
|
.stat-box-value.danger { color: var(--danger); }
|
|
.stat-box-value.info { color: var(--info); }
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4rem 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 4rem;
|
|
color: var(--text-muted);
|
|
opacity: 0.5;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.empty-state-text {
|
|
color: var(--text-muted);
|
|
max-width: 400px;
|
|
}
|
|
|
|
/* Settings Container Override */
|
|
.settings-container {
|
|
max-width: 1000px;
|
|
}
|
|
|
|
.settings-container .accordion-item {
|
|
background: var(--bg-card) !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
border-radius: var(--radius-lg) !important;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.settings-container .accordion-button {
|
|
background: transparent !important;
|
|
color: var(--text-primary) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-container .accordion-button:not(.collapsed) {
|
|
background: rgba(99, 102, 241, 0.08) !important;
|
|
}
|
|
|
|
.settings-container .accordion-body {
|
|
background: var(--bg-secondary) !important;
|
|
border-top: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
/* Alert modernization */
|
|
.settings-container .alert {
|
|
border-radius: var(--radius-md) !important;
|
|
border: 1px solid !important;
|
|
}
|
|
|
|
.settings-container .alert-success {
|
|
background: rgba(34, 197, 94, 0.1) !important;
|
|
border-color: rgba(34, 197, 94, 0.3) !important;
|
|
color: #4ade80 !important;
|
|
}
|
|
|
|
.settings-container .alert-warning {
|
|
background: rgba(245, 158, 11, 0.1) !important;
|
|
border-color: rgba(245, 158, 11, 0.3) !important;
|
|
color: #fbbf24 !important;
|
|
}
|
|
|
|
.settings-container .alert-danger {
|
|
background: rgba(239, 68, 68, 0.1) !important;
|
|
border-color: rgba(239, 68, 68, 0.3) !important;
|
|
color: #f87171 !important;
|
|
}
|
|
|
|
/* Button modernization */
|
|
.settings-container .btn-primary {
|
|
background: var(--gradient-primary) !important;
|
|
border: none !important;
|
|
border-radius: var(--radius-md) !important;
|
|
}
|
|
|
|
.settings-container .btn-danger {
|
|
background: var(--gradient-danger) !important;
|
|
border: none !important;
|
|
border-radius: var(--radius-md) !important;
|
|
}
|
|
|
|
.settings-container .btn-outline-secondary {
|
|
background: transparent !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
color: var(--text-secondary) !important;
|
|
border-radius: var(--radius-md) !important;
|
|
}
|
|
|
|
.settings-container .btn-outline-secondary:hover {
|
|
background: var(--bg-hover) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
/* === AUCTION BROWSER STYLES === */
|
|
|
|
.browser-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.stats-mini {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Auction Grid */
|
|
.auction-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.auction-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1200px) {
|
|
.auction-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
}
|
|
}
|
|
|
|
/* Auction Card */
|
|
.auction-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.auction-card:hover {
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.auction-card.monitored {
|
|
border-color: rgba(34, 197, 94, 0.4);
|
|
background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.05) 100%);
|
|
}
|
|
|
|
.auction-card.sold {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Auction Image */
|
|
.auction-image {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 4/3;
|
|
background: var(--bg-secondary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.auction-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background: white;
|
|
}
|
|
|
|
.auction-image .placeholder-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
color: var(--text-muted);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.auction-badges {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
left: 0.5rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.auction-badges .badge {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.sold-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sold-overlay span {
|
|
background: var(--danger);
|
|
color: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius-md);
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
transform: rotate(-15deg);
|
|
}
|
|
|
|
.monitored-badge {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 0.5rem;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: var(--success);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 1rem;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* Auction Info */
|
|
.auction-info {
|
|
padding: 0.75rem;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.auction-name {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-height: 2.2em;
|
|
}
|
|
|
|
.auction-price {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.auction-price .current-price {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--success);
|
|
}
|
|
|
|
.auction-price .buynow-price {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.auction-bidder {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.auction-bidder span {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 150px;
|
|
}
|
|
|
|
.auction-timer {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--info);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.auction-timer.urgent {
|
|
color: var(--danger);
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.6; }
|
|
}
|
|
|
|
/* Auction Actions */
|
|
.auction-actions {
|
|
padding: 0.5rem 0.75rem 0.75rem;
|
|
border-top: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.auction-actions .btn {
|
|
font-size: 0.8rem;
|
|
padding: 0.4rem 0.75rem;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
/* Spin animation for loading */
|
|
.spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* === AUCTION MONITOR STATUS BADGES === */
|
|
|
|
/* Base badge styling for auction status - COMPACT */
|
|
.col-stato .badge {
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
padding: 0.25rem 0.45rem;
|
|
border-radius: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
min-width: 65px;
|
|
justify-content: center;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Icon inside badge - smaller */
|
|
.col-stato .badge i {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* === USER-CONTROLLED STATES === */
|
|
|
|
/* Active - Monitoring enabled, bright green */
|
|
.col-stato .badge.status-active {
|
|
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
|
|
color: white;
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Paused by user - Orange */
|
|
.col-stato .badge.status-paused {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
|
color: #1a1a1a;
|
|
box-shadow: 0 0 6px rgba(245, 158, 11, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Stopped by user - Gray */
|
|
.col-stato .badge.status-stopped {
|
|
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
|
|
color: #e5e5e5;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Attacking/Bidding - Electric blue with glow */
|
|
.col-stato .badge.status-attacking {
|
|
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
|
color: white;
|
|
box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* === AUCTION LIFECYCLE STATES === */
|
|
|
|
/* Won - Gold/Yellow celebration */
|
|
.col-stato .badge.status-won {
|
|
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
|
|
color: #1a1a1a;
|
|
box-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Lost - Red muted */
|
|
.col-stato .badge.status-lost {
|
|
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
color: white;
|
|
box-shadow: 0 0 6px rgba(239, 68, 68, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
opacity: 0.85;
|
|
}
|
|
|
|
/* Closed - Dark gray */
|
|
.col-stato .badge.status-closed {
|
|
background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
|
|
color: #9ca3af;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* System Paused (night pause) - Purple/Indigo */
|
|
.col-stato .badge.status-system-paused {
|
|
background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
|
|
color: white;
|
|
box-shadow: 0 0 6px rgba(139, 92, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Pending/Waiting - Cyan */
|
|
.col-stato .badge.status-pending {
|
|
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
|
|
color: white;
|
|
box-shadow: 0 0 6px rgba(6, 182, 212, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Scheduled - Teal */
|
|
.col-stato .badge.status-scheduled {
|
|
background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
|
|
color: white;
|
|
box-shadow: 0 0 6px rgba(20, 184, 166, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* === ANIMATIONS === */
|
|
|
|
/* Active pulse - subtle */
|
|
.col-stato .badge.status-anim-active {
|
|
animation: statusPulseActive 2.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes statusPulseActive {
|
|
0%, 100% {
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 14px rgba(34, 197, 94, 0.7), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
|
|
/* Paused blink */
|
|
.col-stato .badge.status-anim-paused {
|
|
animation: statusBlink 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes statusBlink {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.65; }
|
|
}
|
|
|
|
/* Attacking - fast pulse */
|
|
.col-stato .badge.status-anim-attacking {
|
|
animation: statusAttacking 0.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes statusAttacking {
|
|
0%, 100% {
|
|
box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 20px rgba(59, 130, 246, 0.9), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
transform: scale(1.02);
|
|
}
|
|
}
|
|
|
|
/* Won celebration */
|
|
.col-stato .badge.status-anim-won {
|
|
animation: statusWon 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes statusWon {
|
|
0%, 100% {
|
|
box-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 20px rgba(251, 191, 36, 0.9), 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
|
|
/* Legacy Bootstrap classes override for backward compatibility */
|
|
.col-stato .badge.bg-success {
|
|
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.col-stato .badge.bg-warning {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
|
|
color: #1a1a1a !important;
|
|
}
|
|
|
|
.col-stato .badge.bg-secondary {
|
|
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
|
|
color: #e5e5e5 !important;
|
|
}
|