/* =====================================================
   SKT e-LELANG KOPDOSKAR UNISBA
   File : lelang.css
   Version : 1.0
===================================================== */


/* =====================================================
   1. ROOT VARIABLES
===================================================== */

:root{

    --sidebar:#021B4E;
    --sidebar-hover:#0A2A73;

    --primary:#0D6EFD;
    --primary-hover:#0B5ED7;

    --success:#198754;
    --warning:#FFC107;
    --danger:#DC3545;

    --bg:#F8F9FA;
    --white:#FFFFFF;

    --border:#E5E7EB;

    --text:#1F2937;
    --text-muted:#6B7280;

    --radius-sm:8px;
    --radius-md:12px;
    --radius-lg:16px;

    --shadow-sm:
        0 2px 8px rgba(0,0,0,.05);

    --shadow:
        0 4px 12px rgba(0,0,0,.06);

    --shadow-lg:
        0 10px 25px rgba(0,0,0,.08);

}


/* =====================================================
   2. RESET & BASE STYLES
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    background:var(--bg);

    color:var(--text);

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    font-size:15px;

    line-height:1.6;

}

a{

    text-decoration:none;

    color:inherit;

}

img{

    max-width:100%;

    display:block;

}

ul,
ol{

    list-style:none;

}

button{

    font-family:inherit;

}

input,
select,
textarea{

    font-family:inherit;

    outline:none;

}


/* =====================================================
   3. UTILITY CLASSES
===================================================== */

.text-primary{

    color:var(--primary);

}

.text-success{

    color:var(--success);

}

.text-danger{

    color:var(--danger);

}

.text-muted{

    color:var(--text-muted);

}

.fw-bold{

    font-weight:700;

}

.fw-semibold{

    font-weight:600;

}

.text-center{

    text-align:center;

}

.text-right{

    text-align:right;

}

.mt-1{

    margin-top:10px;

}

.mt-2{

    margin-top:20px;

}

.mt-3{

    margin-top:30px;

}

.mb-1{

    margin-bottom:10px;

}

.mb-2{

    margin-bottom:20px;

}

.mb-3{

    margin-bottom:30px;

}

.p-1{

    padding:10px;

}

.p-2{

    padding:20px;

}

.p-3{

    padding:30px;

}

.w-100{

    width:100%;

}

.d-flex{

    display:flex;

}

.align-center{

    align-items:center;

}

.justify-between{

    justify-content:space-between;

}

.gap-1{

    gap:10px;

}

.gap-2{

    gap:20px;

}

.gap-3{

    gap:30px;

}


/* =====================================================
   4. MAIN LAYOUT
===================================================== */

.lelang-wrapper{

    display:flex;

    min-height:100vh;

}

.lelang-content{

    flex:1;

    padding:24px;

    overflow-x:hidden;

}

.page-title{

    font-size:26px;

    font-weight:700;

    margin-bottom:6px;

}

.page-subtitle{

    color:var(--text-muted);

    margin-bottom:24px;

}


/* =====================================================
   5. SIDEBAR
===================================================== */

.lelang-sidebar{

    width:280px;

    background:var(--sidebar);

    color:#fff;

    min-height:100vh;

    position:sticky;

    top:0;

    padding:24px;

}

.sidebar-logo{

    margin-bottom:30px;

}

.sidebar-logo h2{

    font-size:24px;

    font-weight:700;

}

.sidebar-logo p{

    font-size:13px;

    opacity:.8;

}

.sidebar-menu{

    margin-top:20px;

}

.sidebar-menu li{

    margin-bottom:8px;

}

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 16px;

    border-radius:10px;

    color:#fff;

    transition:.3s;

}

.sidebar-menu a:hover{

    background:rgba(255,255,255,.10);

}

.sidebar-menu a.active{

    background:rgba(255,255,255,.18);

}

.sidebar-menu i{

    font-size:18px;

    width:20px;

}


/* =====================================================
   6. TOPBAR
===================================================== */

.topbar{

    background:#fff;

    border-radius:14px;

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

    padding:16px 24px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:24px;

}

.topbar-left{

    display:flex;

    align-items:center;

    gap:15px;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:15px;

}

.user-avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

}

.user-name{

    font-weight:600;

}


/* =====================================================
   7. BREADCRUMB
===================================================== */

.breadcrumb{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:24px;

    color:var(--text-muted);

    font-size:14px;

}

.breadcrumb a{

    color:var(--primary);

}

.breadcrumb span{

    color:var(--text-muted);

}


/* =====================================================
   8. COMMON CARD
===================================================== */

.card-box{

    background:#fff;

    border:1px solid var(--border);

    border-radius:14px;

    box-shadow:var(--shadow-sm);

}

.card-header{

    padding:18px 22px;

    border-bottom:1px solid var(--border);

}

.card-title{

    font-size:18px;

    font-weight:700;

}

.card-body{

    padding:22px;

}

.card-footer{

    padding:18px 22px;

    border-top:1px solid var(--border);

}

.hover-shadow{

    transition:.3s;

}

.hover-shadow:hover{

    box-shadow:var(--shadow-lg);

}



/* =====================================================
   9. AUCTION CARD
===================================================== */

.auction-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:24px;

}

.auction-sidebar{

    position:sticky;

    top:20px;

    align-self:start;

}

.auction-top{
    display:grid;
    grid-template-columns: 40% 40% 20%;
    gap:20px;
}

.card-lelang{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:.3s;

}

.card-lelang:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow-lg);

}

.card-lelang img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.card-body-lelang{

    padding:20px;

}

.lelang-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:12px;

    line-height:1.4;

}

.lelang-price{

    margin-top:15px;

}

.lelang-price-label{

    font-size:13px;

    color:var(--text-muted);

}

.harga-tertinggi{

    font-size:24px;

    font-weight:700;

    color:var(--primary);

}

.lelang-meta{

    display:flex;

    justify-content:space-between;

    margin-top:15px;

    padding-top:15px;

    border-top:1px solid var(--border);

}

.lelang-meta-item{

    text-align:center;

}

.lelang-meta-value{

    font-weight:700;

}

.lelang-meta-label{

    font-size:12px;

    color:var(--text-muted);

}


/* =====================================================
   10. DETAIL PAGE LAYOUT
===================================================== */

.detail-grid{

    display:grid;

    grid-template-columns:
        2fr
        2fr
        1fr;

    gap:24px;

}

.detail-main{

    display:flex;

    flex-direction:column;

    gap:24px;

}

.detail-bottom{

    display:grid;

    grid-template-columns:
        2fr
        1fr;

    gap:24px;

}


/* =====================================================
   11. GALLERY
===================================================== */

.gallery-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:20px;

}

.main-photo{

    width:100%;

    height:280px;

    object-fit: cover;

    border-radius:12px;

}

.thumb-list{

    display:flex;

    gap:12px;

    margin-top:16px;

}

.thumb-list img{

    width:90px;

    height:90px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    border:2px solid transparent;

    transition:.3s;

}

.thumb-list img:hover{

    border-color:var(--primary);

}

.thumb-list img.active{

    border-color:var(--primary);

}


/* =====================================================
   12. ITEM INFORMATION
===================================================== */

.item-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;

}

.item-title{

    font-size:28px;

    font-weight:700;

    margin-bottom:10px;

}

.item-subtitle{

    color:var(--text-muted);

    margin-bottom:20px;

}

.item-description{

    line-height:1.8;

    margin-top:20px;

}

.item-meta{

    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:16px;

    margin-top:25px;

}

.meta-box{

    background:#F9FAFB;

    border:1px solid var(--border);

    border-radius:12px;

    padding:14px;

}

.meta-label{

    font-size:13px;

    color:var(--text-muted);

    margin-bottom:4px;

}

.meta-value{

    font-weight:700;

}


/* =====================================================
   13. STATUS PANEL
===================================================== */

.status-panel{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:15px;

    box-shadow:var(--shadow-sm);

    position:sticky;

    top:20px;

    align-self:start;

}

.status-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:20px;

}

.badge-aktif{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 16px;

    border-radius:999px;

    background:#DCFCE7;

    color:#166534;

    font-weight:700;

    font-size:13px;

}

.badge-selesai{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 16px;

    border-radius:999px;

    background:#E5E7EB;

    color:#374151;

    font-weight:700;

    font-size:13px;

}


/* =====================================================
   14. COUNTDOWN
===================================================== */

.countdown{

    margin-top:25px;

}

.countdown-title{

    font-size:14px;

    color:var(--text-muted);

    margin-bottom:10px;

}

.countdown-box{

    text-align:center;

    padding:20px;

    background:#F8FAFC;

    border-radius:12px;

    border:1px solid var(--border);

}

.countdown-value{

    font-size:36px;

    font-weight:700;

    color:var(--primary);

}

.countdown-label{

    color:var(--text-muted);

    font-size:13px;

}


/* =====================================================
   15. BID FORM
===================================================== */

.bid-card{

        background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;

}

.bid-title{

    font-size:20px;

    font-weight:700;

    margin-bottom:20px;

}

.bid-info{

    background:#F9FAFB;

    border:1px solid var(--border);

    border-radius:12px;

    padding:16px;

    margin-bottom:20px;

}

.bid-info-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

}

.bid-info-row:last-child{

    margin-bottom:0;

}

.bid-input{

    width:100%;

    height:58px;

    border:1px solid var(--border);

    border-radius:12px;

    padding:0 18px;

    font-size:18px;

    font-weight:600;

}

.bid-input:focus{

    border-color:var(--primary);

}


/* =====================================================
   16. QUICK BID BUTTONS
===================================================== */

.quick-bid{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:15px;

    margin-bottom:20px;

}

.quick-bid button{

    border:none;

    background:#EEF2FF;

    color:var(--primary);

    padding:10px 16px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.quick-bid button:hover{

    background:var(--primary);

    color:#fff;

}


/* =====================================================
   17. BID HISTORY
===================================================== */

.bid-history{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);
    
    max-height: 220px;
    overflow-y: auto;

}

.bid-history-header{

    padding:18px 20px;

    border-bottom:1px solid var(--border);

    font-weight:700;

    font-size:18px;

}

.bid-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 20px;

    border-bottom:1px solid var(--border);

}

.bid-item:last-child{

    border-bottom:none;

}

.bid-user{

    display:flex;

    align-items:center;

    gap:12px;

}

.bid-user-info{

    display:flex;

    flex-direction:column;

}

.bid-user-name{

    font-weight:600;

}

.bid-time{

    font-size:12px;

    color:var(--text-muted);

}

.bid-amount{

    font-weight:700;

    color:var(--primary);

    font-size:16px;

}


/* =====================================================
   18. PARTICIPANTS
===================================================== */

.participant-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;

}

.participant-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:18px;

}

.participant-list{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #fff;

    box-shadow:var(--shadow-sm);

}

.avatar-name{

    width:48px;

    height:48px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:14px;

    font-weight:700;

}


/* =====================================================
   19. BUTTONS
===================================================== */

.btn{

    border:none;

    cursor:pointer;

    border-radius:12px;

    transition:.3s;

    font-weight:600;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-hover);

}

.btn-success{

    background:var(--success);

    color:#fff;

}

.btn-danger{

    background:var(--danger);

    color:#fff;

}

.btn-outline{

    background:#fff;

    border:1px solid var(--border);

}

.btn-sm{

    padding:10px 16px;

}

.btn-md{

    padding:12px 22px;

}

.btn-lg{

    padding:14px 28px;

}

.btn-bid{

    width:100%;

    height:58px;

    font-size:17px;

}


/* =====================================================
   20. TABLES
===================================================== */

.table-wrapper{

    background:#fff;

    border-radius:16px;

    border:1px solid var(--border);

    overflow:hidden;

}

.table-lelang{

    width:100%;

    border-collapse:collapse;

}

.table-lelang thead{

    background:#F9FAFB;

}

.table-lelang th{

    text-align:left;

    padding:16px;

    font-weight:700;

}

.table-lelang td{

    padding:16px;

    border-top:1px solid var(--border);

}

.table-lelang tr:hover{

    background:#FAFAFA;

}


/* =====================================================
   21. PAGINATION
===================================================== */

.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:25px;

}

.page-content{
    max-width: 1400px;
    padding: 30px;
    
}

.page-link{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:10px;

    border:1px solid var(--border);

    background:#fff;

}

.page-link.active{

    background:var(--primary);

    color:#fff;

}


/* =====================================================
   22. MODAL
===================================================== */

.modal-header{

    padding:18px 24px;

    border-bottom:1px solid var(--border);

}

.modal-title{

    font-size:20px;

    font-weight:700;

}

.modal-body{

    padding:24px;

}

.modal-footer{

    padding:18px 24px;

    border-top:1px solid var(--border);

    display:flex;

    justify-content:flex-end;

    gap:10px;

}


/* =====================================================
   23. ALERTS
===================================================== */

.alert{

    padding:16px 18px;

    border-radius:12px;

    margin-bottom:20px;

}

.alert-success{

    background:#DCFCE7;

    color:#166534;

}

.alert-danger{

    background:#FEE2E2;

    color:#991B1B;

}

.alert-warning{

    background:#FEF3C7;

    color:#92400E;

}

.alert-info{

    background:#DBEAFE;

    color:#1E40AF;

}


/* =====================================================
   24. STATISTICS CARDS
===================================================== */

.stats-grid{

    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:20px;

}

.stats-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;

}

.stats-label{

    color:var(--text-muted);

    margin-bottom:8px;

}

.stats-value{

    font-size:30px;

    font-weight:700;

}

.stats-icon{

    font-size:28px;

}


/* =====================================================
   25. DASHBOARD WIDGETS
===================================================== */

.widget{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;

}

.widget-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:16px;

}


/* =====================================================
   26. RESPONSIVE TABLET
===================================================== */

@media(max-width:1200px){

    .detail-grid{

        grid-template-columns:
            1fr
            1fr;

    }

    .status-panel{

        grid-column:span 2;

    }

    .stats-grid{

        grid-template-columns:
            repeat(2,1fr);

    }

}


/* =====================================================
   27. RESPONSIVE MOBILE
===================================================== */

@media(max-width:992px){

    .lelang-wrapper{

        flex-direction:column;

    }

    .lelang-sidebar{

        display:none;

    }

    .detail-grid{

        grid-template-columns:1fr;

    }

    .detail-bottom{

        grid-template-columns:1fr;

    }

    .status-panel{

        grid-column:auto;

    }

    .item-meta{

        grid-template-columns:1fr;

    }

    .auction-grid{

        grid-template-columns:1fr;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    .topbar{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

}

@media(max-width:576px){

    .main-photo{

        height:250px;

    }

    .thumb-list img{

        width:60px;

        height:60px;

    }

    .item-title{

        font-size:22px;

    }

    .countdown-value{

        font-size:26px;

    }

    .harga-tertinggi{

        font-size:20px;

    }

}


/* ==========================================
   BARIS BID + PESERTA + RIWAYAT
========================================== */

.bid-row{

    display:flex;

    gap:20px;

    margin-top:20px;

}

/* Ajukan Penawaran */

.bid-column{

    width:650px;

    flex-shrink:0;

}

/* Peserta */

.participant-column{

    width:180px;

    flex-shrink:0;

}

/* Riwayat */

.history-column{

    width:320px;

    flex-shrink:0;

}

.bid-column .bid-card,
.participant-column .participant-card,
.history-column .bid-history{

    height:260px;

}

.bid-column,
.participant-column,
.history-column{

    border:1px solid #E5E7EB;

    border-radius:16px;

    background:#FFFFFF;

}


/* ==========================================
   AUCTION LIST
========================================== */

.auction-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:25px;

}

.auction-card{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:16px;

    overflow:hidden;

    box-shadow:
        0 2px 8px rgba(0,0,0,.05);

}

.auction-card:hover{

    transform:translateY(-3px);

    transition:.3s;

}

/* ==========================================
   AUCTION LIST
========================================== */

.auction-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:25px;

}

.auction-card{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:16px;

    overflow:hidden;

    box-shadow:
        0 2px 8px rgba(0,0,0,.05);

}

.auction-card:hover{

    transform:translateY(-3px);

    transition:.3s;

}

.auction-body{

    padding:20px;

}

.btn-detail{

    display:block;

    width:100%;

    text-align:center;

    background:#6d28d9;

    color:#fff;

    padding:12px;

    border-radius:10px;

    text-decoration:none;

}

.hero{

    background:#4f46e5;

    color:white;

    padding:40px;

    border-radius:20px;

    margin-bottom:30px;

}