/* ==========================================================================
   REVAUCTION - ENTERPRISE E-PROCUREMENT & REVERSE AUCTION STYLESHEET
   ========================================================================== */

:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --success-accent: #10b981;
    --warning-accent: #f59e0b;
    --danger-accent: #ef4444;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}
.sidebar .brand {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 3px 12px;
    transition: all 0.2s ease;
}
.sidebar .nav-link i {
    font-size: 1.15rem;
    margin-right: 12px;
}
.sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.sidebar .nav-link.active {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Layout Wrapper */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Card Styling */
.card-custom {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-custom:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* KPI Stat Cards */
.kpi-card {
    border-radius: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Live Auction Pulse Animation */
@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
.pulse-badge {
    animation: livePulse 2s infinite;
}

/* Live Bidding Arena / Room */
.live-arena {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.live-timer-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #38bdf8;
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}
.timer-digits {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 2px;
}
.current-lowest-box {
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.price-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
}

/* Leaderboard Ranking Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}
.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
}
.rank-3 {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #ffffff;
}
.rank-other {
    background: #e2e8f0;
    color: #475569;
}

/* Quick Decrement Buttons */
.btn-quick-bid {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.btn-quick-bid:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Print Friendly Styles for SPK / Contract */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .no-print, .sidebar, .top-navbar, footer, .btn {
        display: none !important;
    }
    .main-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}
