/* Custom Styles */
body {
    background-color: #f8f9fa;
}

.auction-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-lang {
	padding-right: 15px;
	flex-direction: column-reverse;
}

.topparent {
  transition: all 0.5s ease;
  transform-origin: center;
}

.navbar-brand {
    font-weight: 600;
}

.bid-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Countdown timer */
.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Bid animations */
.bid-highlight {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
	
	.nav-lang {
		padding-left: 15px;
		flex-direction: column-reverse;
	}
}

.badge-sm {
    font-size: 0.6em;
}

.bg-primary {
    background-color: rgb(148 164 249) !important;
}
/* Image Styles */
.auction-image-container {
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
}

.carousel-item img {
    border-radius: 0.375rem;
}

.img-thumbnail {
    transition: all 0.2s ease-in-out;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    border-color: #0d6efd;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Preview card styling */
#imagePreview .card {
    transition: transform 0.2s ease-in-out;
}

#imagePreview .card:hover {
    transform: translateY(-2px);
}

/* Admin specific styles */
.admin-badge {
    font-size: 0.7em;
    vertical-align: super;
}

.dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white !important;
}

/* Edit form styles */
.set-primary-btn {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
}

.badge-sm {
    font-size: 0.6em;
}

/* Image management */
.position-relative .form-check {
    position: absolute;
    top: 5px;
    left: 5px;
}

.card.position-relative {
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.card.position-relative:hover {
    border-color: #0d6efd;
}

/* Countdown Styles */
.countdown-timer {
    font-family: 'Courier New', monospace;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    min-width: 120px;
    text-align: center;
}

.countdown-quick {
    font-family: 'Courier New', monospace;
    color: #d63031;
    font-weight: bold;
}

.countdown-badge {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    animation: pulse 2s infinite;
}

.countdown-ended {
    background: #6c757d !important;
    color: white !important;
    animation: none !important;
}

/* Progress bar */
.countdown-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    transition: width 1s linear;
    border-radius: 3px;
}

.bidcount {
	color: #ff5e00;
}

/* Urgent styles */
.countdown-urgent {
    animation: blink 1s infinite;
}

.btn-cap {
    --bs-btn-bg: #0dcaf0;
	min-width: 42px;
    border: 1px solid #fcfdff;
}

.r-cap {
	border-top-left-radius: 0px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 18px;
}

.l-cap {
	border-top-left-radius: 0;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.7;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Pulse animation - runs 3 times */
@keyframes pulse-3x {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.pulse-3x {
  overflow: visible ;
  z-Index: 99;
  animation: pulse-3x 0.3s ease-in-out 3; /* run 3 times */
}

.animated-border-box, .animated-border-box-glow{
  max-height: 200px;
  max-width: 250px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden; 
  z-index: 0;
  /* Border Radius */
	border-radius: 10px;
}
 
.animated-border-box-glow{
  overflow: hidden;
  /* Glow Blur */
  filter: blur(20px);
}
 
.animated-border-box:before, .animated-border-box-glow:before {
  content: '';
  z-index: -2;
  text-align: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(0deg);
  position: absolute;
	width: 99999px;
	height: 99999px;
	background-repeat: no-repeat;
	background-position: 0 0;
  /*border color, change middle color*/
	background-image: conic-gradient(rgba(0,0,0,0), #1976ed, rgba(0,0,0,0) 25%);
  /* change speed here */
	animation: rotate 4s linear infinite;
}
 
.animated-border-box:after {
	content: '';
	position: absolute;
	z-index: -1;
  /* border width */
	left: 5px;
	top: 5px;
  /* double the px from the border width left */
	width: calc(100% - 10px);
	height: calc(100% - 10px);
  /*bg color*/
	background: #292a2e;
  /*box border radius*/
	border-radius: 7px;
}
 
@keyframes rotate {
	100% {
		transform: translate(-50%, -50%) rotate(1turn);
	}
}
