/* Common styles for admin auction views */

.detail-page {
    background: #f5f7fa;
    min-height: calc(100vh - 60px);
    padding: 25px 35px;
}

.breadcrumb-nav {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.breadcrumb-nav a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #007bff;
}

.breadcrumb-nav .separator {
    color: #999;
    font-weight: 300;
}

.breadcrumb-nav .active {
    color: #202124;
    font-weight: 500;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

.main-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    background: #fafafa;
    padding: 0 30px;
}

.tab-item {
    padding: 16px 24px;
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    bottom: -1px;
}

.tab-item.active {
    color: #0891b2;
    background: white;
    border-bottom-color: #0891b2;
}

.tab-item:hover:not(.active) {
    color: #202124;
    background: #f5f5f5;
}

.tab-content {
    padding: 0;
}

.detail-page .tab-content {
    padding: 35px 40px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.section-header p {
    color: #5f6368;
    font-size: 0.9rem;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin-top: 30px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
}

.info-label {
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-value {
    color: #202124;
    font-size: 0.9rem;
    font-weight: 400;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.status-badge {
    display: inline-block;
    /* padding: 5px 14px; */
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-live {
    background: #d1fae5;
    color: #065f46;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-ended {
    background: #f3f4f6;
    color: #4b5563;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

.sidebar-item {
    margin-bottom: 18px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    color: #5f6368;
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar-value {
    color: #202124;
    font-size: 0.95rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8eaed;
}

.btn-edit {
    background: #6c757d;
    color: white;
    border: none;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-edit:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-back:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.divider {
    margin: 30px 0;
    border-top: 1px solid #e8eaed;
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Form grid layout for edit pages */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* Action icons professional style */
.action-icon {
    color: #6c757d;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
}

.action-icon:hover {
    background: #f8f9fa;
    color: #495057;
    transform: translateY(-2px);
}

.action-icon.view-icon:hover {
    color: #17a2b8;
    background: #e7f6f8;
}

.action-icon.edit-icon:hover {
    color: #0056b3;
    background: #e7f1ff;
}

.action-icon.delete-icon:hover {
    color: #dc3545;
    background: #ffe7e9;
}

/* ===== Admin Login Styles ===== */
.login-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Auction Show Page Styles ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes highlight {
    0% { background-color: #A4C639; }
    100% { background-color: transparent; }
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid;
    height: 160px;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stats-card.stats-primary {
    border-left-color: #0d6efd;
}

.stats-card.stats-success {
    border-left-color: #198754;
}

.stats-card.stats-info {
    border-left-color: #0dcaf0;
}

.stats-card.stats-warning {
    border-left-color: #ffc107;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stats-primary .stats-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-success .stats-icon {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0f5132;
}

.stats-info .stats-icon {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #055160;
}

.stats-warning .stats-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #664d03;
}

.stats-content {
    flex: 1;
}

.stats-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stats-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Live Stream Card */
.live-stream-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.live-stream-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    color: white;
}

.live-stream-header h5 {
    color: white;
    font-weight: 600;
}

.live-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pulse-dot {
    animation: pulse 1.5s infinite;
}

.live-stream-body {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.bid-stream-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    animation: slideInDown 0.5s ease;
}

.bid-stream-item:hover {
    background: #f8f9fa;
}

.bid-stream-item.bid-winning {
    background: linear-gradient(90deg, rgba(164,198,57,0.1) 0%, rgba(164,198,57,0.05) 100%);
    border-left: 4px solid #A4C639;
}

.bid-stream-item.new-bid {
    animation: slideInDown 0.5s ease, highlight 2s ease;
}

.bid-stream-avatar {
    margin-right: 16px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.avatar-circle.avatar-winner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(245,87,108,0.4);
}

.bid-stream-info {
    flex: 1;
}

.bid-stream-name {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    margin-bottom: 4px;
}

.bid-stream-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.bid-stream-amount {
    text-align: right;
    margin-right: 16px;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

.amount-winning .amount-value {
    color: #A4C639;
    font-size: 1.5rem;
}

.amount-badge {
    background: linear-gradient(135deg, #A4C639 0%, #8ab82e 100%);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.bid-stream-status {
    font-size: 1.5rem;
}

.status-winning {
    color: #198754;
}

.status-outbid {
    color: #dc3545;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #A4C639;
}

.nav-tabs .nav-link.active {
    color: #A4C639;
    border-bottom: 3px solid #A4C639;
    background: transparent;
}

.table-hover tbody tr:hover {
    background-color: rgba(164, 198, 57, 0.1);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.bid-update {
    animation: highlight 0.5s;
}

/* QR Code Print Styles */
.qr-print-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.qr-print-page body {
    font-family: Arial, sans-serif;
    background: white;
}

.qr-grid {
    display: flex;
    flex-direction: column;
    gap: 2mm;
    padding: 5mm;
}

.qr-item {
    width: 76mm;
    height: 50mm;
    border: 1px solid #000;
    padding: 3mm;
    text-align: center;
    page-break-inside: avoid;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 1mm;
}

.qr-item .machine-name {
    font-size: 7pt;
    font-weight: bold;
    color: #000;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 1mm;
}

.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1mm 0;
}

.qr-code svg {
    display: block;
    margin: 0 auto;
    width: 32mm !important;
    height: 32mm !important;
}

.qr-item .reference-no {
    font-size: 8pt;
    font-weight: bold;
    color: #000;
    font-family: 'Courier New', monospace;
    margin-top: 1mm;
}

.qr-print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #A4C639;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
}

.qr-print-button:hover {
    background: #8AB12C;
}

@media print {
    @page {
        size: A4;
        margin: 5mm;
    }

    .qr-print-page body {
        margin: 0;
        padding: 0;
    }

    .qr-grid {
        padding: 0;
        gap: 2mm;
    }

    .qr-item {
        page-break-inside: avoid;
        width: 76mm;
        height: 50mm;
    }

    .no-print {
        display: none;
    }
}

/* User Profile Dropdown Styles */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #9dc33b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(157, 195, 59, 0.3);
}

.user-avatar-circle-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #9dc33b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    border: 3px solid rgba(157, 195, 59, 0.3);
    box-shadow: 0 4px 12px rgba(157, 195, 59, 0.4);
}

.user-profile-link {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-profile-link:hover {
    background: rgba(157, 195, 59, 0.15);
    transform: translateY(-1px);
}

.user-name {
    color: #9dc33b;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.user-company {
    color: #ccc;
    font-size: 12px;
    line-height: 1.2;
}

.user-dropdown-menu { 
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(157, 195, 59, 0.3);
    background: #1f1f1f;
    padding: 0;
    margin-top: 12px;
    overflow: hidden;
}

.user-dropdown-menu .dropdown-header {
    background: #2a2a2a;
    padding: 30px 25px;
    border-radius: 0;
    color: #fff;
    border-bottom: 2px solid #9dc33b;
    position: relative;
}

.user-dropdown-menu .dropdown-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9dc33b, transparent);
}

.user-dropdown-menu .dropdown-item-text {
    padding: 14px 25px;
    color: #d4d4d4;
    font-size: 13px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown-menu .dropdown-item-text i {
    color: #9dc33b;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-dropdown-menu .dropdown-item {
    padding: 14px 25px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-dropdown-menu .dropdown-item.text-danger {
    color: #fff !important;
    margin: 8px 15px 12px;
    border-radius: 10px;
    background: transparent;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(157, 195, 59, 0.15);
    transform: translateX(3px);
}

.user-dropdown-menu .dropdown-item:hover {
    background: rgba(157, 195, 59, 0.15);
}

.user-dropdown-menu .dropdown-divider {
    border-color: rgba(157, 195, 59, 0.2);
    margin: 0;
}

.user-dropdown-menu h6 {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.user-dropdown-menu .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px;
    font-weight: 500;
}

.user-dropdown-menu .dropdown-header .text-center {
    position: relative;
}

/* Pagination Styles */
.pagination-wrapper {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
     gap: 20px; */
    margin-top: 40px;
    margin-bottom: 40px;
   
}

.pagination-wrapper nav {
    display: flex;
    justify-content: center;
    order: 1;
}

.pagination-wrapper p {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    order: 2;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 0 20px;
}

.pagination-wrapper .page-item {
    list-style: none;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #8ab42d;
    background-color: #fff;
    border: 2px solid #8ab42d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background-color: #8ab42d;
    color: #fff;
    border-color: #8ab42d;
}

.pagination-wrapper .page-item.active .page-link {
    background-color: #8ab42d;
    color: #fff;
    border-color: #8ab42d;
}

.pagination-wrapper .page-item.disabled .page-link {
color: #ccc;
    background-color: #111111;
    border: 1px solid #cccc; 
    font-size: 26px;
    border-radius: 4px;
    min-width: 36px;
    margin-left: 20px;
}

 

.pagination-wrapper .page-item.disabled .page-link:hover {
    background-color: #fff;
    color: #ccc;
}

/* Previous/Next text styling */
.pagination-wrapper .page-link[rel="prev"],
.pagination-wrapper .page-link[rel="next"] {
    background-color: #111111;
    border: 1px solid #8ab42d !important;
    font-size: 26px;
    border-radius: 4px !important;
    min-width: 36px !important;
       padding: 0 10px;
}

.pagination-wrapper .page-link[rel="prev"]:hover,
.pagination-wrapper .page-link[rel="next"]:hover {
    color: #8ab42d;
    background-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-wrapper .pagination {
        gap: 8px;
    }
    
    .pagination-wrapper .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}


@media (max-width: 992px) 
{
    .user-avatar-circle { 
        height: auto; 
}
 

}

@media (max-width: 767px) 
{
 

.pagination-wrapper .page-link[rel="prev"], .pagination-wrapper .page-link[rel="next"] { 
    font-size: 12px; 
}


}