/**
 * Default Theme for TN Valley Auctions
 * Color scheme adapted from Silver Admin Styles
 */

body {
    background-color: #E8ECEF; /* Light gray from Silver Admin */
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Adjusted for steampunk shadow */
    background-color: #D3D3D3; /* Medium gray from Silver Admin */
    border-bottom: 2px solid #C0C0C0; /* Silver border */
}

.sidebar {
    background-color: #D3D3D3; /* Medium gray from Silver Admin */
    border-radius: 5px; /* Slightly adjusted for steampunk */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Steampunk shadow */
    padding: 10px;
    margin-bottom: 20px;
    border-right: 3px solid #C0C0C0; /* Silver border */
}

.sidebar h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333333; /* Dark gray from Silver Admin */
    font-weight: 700; /* Bolder for steampunk */
}

.sidebar .form-control {
    border-radius: 5px;
    background-color: #E8ECEF; /* Light gray input background */
    border: 1px solid #C0C0C0; /* Silver border */
    color: #333333; /* Dark gray text */
}

.sidebar .form-control:focus {
    border-color: #4682B4; /* Steel blue accent */
    box-shadow: 0 0 5px rgba(70, 130, 180, 0.5); /* Steampunk focus shadow */
}

.auction-card {
    background-color: #E8ECEF; /* Light gray from Silver Admin */
    border-radius: 5px; /* Adjusted for steampunk */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Steampunk shadow */
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    overflow: hidden;
    max-width: 220px; /* Retained for layout */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    height: 350px; /* Fixed height */
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    border: 2px solid #C0C0C0; /* Silver border */
}

/* Scheduled auction styling */
.auction-card.scheduled-auction {
    background-color: #f5e6d3; /* Parchment-like background for scheduled auctions */
    height: 350px;
    padding-top: 0;
    padding-bottom: 0;
    border: 2px solid #C0C0C0; /* Silver border */
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Steampunk hover shadow */
    border-color: #4682B4; /* Steel blue accent */
}

.position-relative {
    position: relative;
    background-color: #E8ECEF; /* Light gray */
    height: 160px;
    width: 100%;
    overflow: visible;
    margin-top: 0;
}

/* Consistent positioning for all auction types */
.auction-card .position-relative,
.auction-card.scheduled-auction .position-relative {
    padding-top: 0;
    margin-top: 0;
}

.auction-image {
    height: 100px;
    width: 100px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    position: relative;
    top: 0;
}

/* Force all images to have the same size and position */
.auction-card .auction-image,
.auction-card.scheduled-auction .auction-image {
    height: 100px;
    width: 100px;
    margin: 0 auto;
    position: absolute;
    z-index: 5;
    top: 57px; /* Moved up by 8px from original 65px */
    left: 0;
    right: 0;
}

.auction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: #C0C0C0; /* Silver background */
    color: #333333; /* Dark gray text */
    border: 1px solid #A9A9A9; /* Darker silver border */
    border-radius: 3px;
}

.auction-info {
    padding: 15px;
    height: auto;
    min-height: 120px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: rgba(232, 232, 232, 0.9); /* Semi-transparent light gray */
}

.auction-title {
    font-size: 16px;
    font-weight: 700; /* Bolder for steampunk */
    margin-bottom: 10px;
    color: #333333; /* Dark gray */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style for description text - limit to 2 lines with ellipsis */
.auction-info p {
    font-size: 14px;
    color: #4A4A4A; /* Slightly lighter gray for secondary text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.auction-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
}

.auction-price {
    font-weight: 600;
    color: #28a745; /* Retained success green for consistency */
    margin-bottom: 0;
    line-height: 1.1;
}

/* Bid amount styling */
.current-bid {
    color: #333333; /* Dark gray for non-logged in users in silver theme */
    font-size: 16px;
    transition: color 0.3s ease;
}

.current-bid.outbid {
    color: #A32929 !important; /* Red color for outbid in silver theme */
    font-weight: bold;
    animation: pulse-red 2s infinite;
}

.current-bid.winning {
    color: #28a745 !important; /* Green color for winning */
    font-weight: bold;
}

@keyframes pulse-red {
    0% {
        color: #A32929;
    }
    50% {
        color: #C14242;
    }
    100% {
        color: #A32929;
    }
}

/* Custom burnt orange text color for maximum bid reached message */
.text-burnt-orange {
    color: #B45F06 !important; /* Burnt orange color for silver theme */
    font-weight: 500; /* Slightly bolder for better readability */
}

/* Lot price styling for auction lots page */
.lot-price {
    color: #333333; /* Default dark gray for non-logged in users in silver theme */
}

.lot-price.winning {
    color: #28a745 !important; /* Green color for winning bids */
    font-weight: bold;
}

.lot-price.outbid {
    color: #A32929 !important; /* Red color for outbid in silver theme */
    font-weight: bold;
}

/* Custom tooltip styling */
.tooltip .tooltip-inner {
    background-color: #4682B4 !important; /* Steel blue background for silver theme */
    color: white !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    max-width: 200px !important;
    border: 1px solid #C0C0C0;
}

/* Override Bootstrap's tooltip arrow color */
.tooltip .tooltip-arrow::before,
.tooltip .arrow::before {
    border-top-color: #4682B4 !important;
    border-bottom-color: #4682B4 !important;
}

/* Reserve Icon Styles */
.reserve-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E8ECEF;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: 5px;
    border: 1px solid #C0C0C0;
}

.reserve-met {
    color: #28a745;
}

.reserve-not-met {
    color: #A32929;
}

/* Highlight animation for bid updates */
.highlight-update {
    background-color: #ffffcc !important;
    border: 1px solid #C0C0C0 !important;
    transition: background-color 1.5s ease, border 1.5s ease;
}

/* Auction Card Icons */
.watchlist-btn {
    position: absolute;
    top: 48px; /* Countdown height (45px) + 3px spacing */
    left: 10px;
    z-index: 2;
    background: none;
    border: none;
    color: #A32929;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(232, 232, 232, 0.8);
    border-radius: 50%;
    border: 1px solid #C0C0C0;
}

.watchlist-btn:hover {
    background-color: rgba(232, 232, 232, 1);
    border-color: #4682B4;
}

/* Reserve Icon Styles */
.reserve-icon {
    position: absolute;
    top: 48px; /* Countdown height (45px) + 3px spacing */
    right: 10px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E8ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #C0C0C0;
}

.auction-time {
    color: #4A4A4A; /* Secondary text color */
    font-size: 12px;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.1;
}

.countdown-timer {
    margin: 0 auto 0 auto;
    text-align: center;
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    color: #4682B4; /* Steel blue for emphasis */
}

.btn-bid {
    background-color: #C0C0C0; /* Silver button */
    color: #333333; /* Dark gray text */
    border: 2px solid #A9A9A9; /* Darker silver border */
    border-radius: 5px;
    padding: 6px 15px;
    font-weight: 500;
    display: block;
    text-decoration: none;
    width: 100px;
    text-align: center;
    margin: 0 auto;
    z-index: 5;
    transition: all 0.3s ease; /* Steampunk transition */
}

.btn-bid:hover {
    background-color: #A9A9A9; /* Darker silver on hover */
    color: #333333;
    border-color: #4682B4; /* Steel blue border */
    text-decoration: none;
}

.btn-bid:active {
    background-color: #A9A9A9;
    border: 2px inset #4682B4; /* Inset steel blue for active state */
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.4); /* Steampunk active shadow */
}

.footer {
    background-color: #C0C0C0; /* Silver footer */
    color: #333333; /* Dark gray text */
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 2px solid #A9A9A9; /* Darker silver border */
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333; /* Dark gray */
}

.footer a {
    color: #4A4A4A; /* Secondary text color */
    text-decoration: none;
}

.footer a:hover {
    color: #4682B4; /* Steel blue on hover */
}

.category-checkbox {
    margin-bottom: 10px;
    color: #333333; /* Dark gray */
}

.category-checkbox input:checked + label {
    color: #4682B4; /* Steel blue for checked state */
}

.auction-dropdown {
    margin-bottom: 20px;
}

.auction-dropdown .form-select {
    border-radius: 5px;
    background-color: #E8ECEF; /* Light gray */
    border: 1px solid #C0C0C0; /* Silver border */
    color: #333333; /* Dark gray text */
}

.auction-dropdown .form-select:focus {
    border-color: #4682B4; /* Steel blue */
    box-shadow: 0 0 5px rgba(70, 130, 180, 0.5); /* Steampunk focus shadow */
}

.lot-number {
    font-size: 14px;
    color: #4A4A4A; /* Secondary text color */
    margin-bottom: 5px;
}

.watchlist-btn {
    position: absolute;
    top: 65px;
    left: 10px;
    z-index: 10;
    background-color: rgba(232, 232, 232, 0.8); /* Semi-transparent light gray */
    border: 1px solid #C0C0C0; /* Silver border */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-btn:hover {
    background-color: rgba(232, 232, 232, 1); /* Opaque light gray */
    border-color: #4682B4; /* Steel blue */
}

.watchlist-btn i {
    color: #A32929; /* Red for watchlist icon, aligned with Silver Admin error color */
}

/* Lot view styles */
.lot-header {
    background-color: #E8ECEF; /* Light gray */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Steampunk shadow */
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #C0C0C0; /* Silver border */
}

.lot-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333333; /* Dark gray */
}

.lot-meta {
    color: #4A4A4A; /* Secondary text color */
    margin-bottom: 15px;
}

.lot-description {
    background-color: #E8ECEF; /* Light gray */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Steampunk shadow */
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #C0C0C0; /* Silver border */
}

.lot-images {
    background-color: #E8ECEF; /* Light gray */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Steampunk shadow */
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #C0C0C0; /* Silver border */
}

.lot-sidebar {
    background-color: #E8ECEF; /* Light gray */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Steampunk shadow */
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #C0C0C0; /* Silver border */
}

.lot-image-main {
    width: 100%;
    height: 400px;
    object-fit: contain;
    margin-bottom: 15px;
    background-color: #E8ECEF; /* Light gray */
    border-radius: 4px;
    border: 1px solid #C0C0C0; /* Silver border */
}

.lot-image-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #C0C0C0; /* Silver border */
    transition: all 0.3s ease; /* Steampunk transition */
    margin-top: 8px;
}

/* Specific styling for the countdown timer on lot detail page */
.lot-detail-timer {
    padding-top: 25px;
    margin-top: 30px !important;
}

.lot-image-thumbnail:hover {
    opacity: 0.8;
    border-color: #4682B4; /* Steel blue */
}

.lot-image-thumbnail.active {
    border: 2px solid #4682B4; /* Steel blue */
}

.bid-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #C0C0C0; /* Silver border */
}

.lot-details-table {
    margin-bottom: 0;
    background-color: #E8ECEF; /* Light gray */
    border: 1px solid #C0C0C0; /* Silver border */
}

.lot-details-table td {
    padding: 8px 0;
    color: #333333; /* Dark gray */
}

.lot-details-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: #4682B4; /* Steel blue for emphasis */
}