/* CSS Document */
  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Sarabun', Arial, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-color: #f5f5f5;
        }
        a {
             text-decoration: none;
       }
      a:hover {
            text-decoration: none;
      }
        /* Header Section */
        .header {
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            text-align: center;
            padding: 5px 15px;
        }
        .header h1 {
            font-size: 3.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        /* Navigation Button */
        .nav-section {
            background-color: rgba(193, 193, 193, 0.7);
            padding: 10px;
            text-align: center;
        }
        .nav-button {
            background-color: white;
            color: #333;
            padding: 12px 30px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }
        .nav-button:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        /* Main Content */
        .main-content {
            flex: 1;
            padding: 10px 10px;
            /*max-width: 1200px;*/
            margin: 0 auto;
            width: 100%;
        }
        /* Footer */
        .footer {
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            text-align: center;
            padding: 30px 20px;
            margin-top: auto;
        }
        .footer-date {
            font-size: 1.2rem;
            margin-bottom: 8px;
        }
        .footer-time {
            font-size: 1.5rem;
            font-weight: bold;
            letter-spacing: 2px;
        }
        /* Responsive Design */
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2.5rem;
            }
            .header p {
                font-size: 1rem;
            }
            .main-content {
                padding: 20px 15px;
            }
        }
        /* Additional Styling for Content Area */
        .content-placeholder {
            background: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            text-align: center;
            color: #666;
            font-size: 1.2rem;
        }
	.auction-header {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            padding: 20px;
            text-align: center;
            margin-bottom: 30px;
        }
        .status-buttons {
            text-align: center;
            margin-bottom: 30px;
        }
        .status-btn {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border: none;
            padding: 12px 30px;
            margin: 5px;
            border-radius: 25px;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0,123,255,0.3);
            transition: all 0.3s ease;
        }
        .status-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,123,255,0.4);
        }
		.status-buttons.slide-overlay {
				position: relative;
				width: max-content;
				margin: 0 auto 30px;
				display: inline-block;
			}
			/* ปุ่มหลัก */
			.status-buttons .main-btn {
				z-index: 2;
				position: relative;
			}
			/* ปุ่มที่ซ่อน */
			.status-buttons .hidden-btn {
				position: absolute;
				top: 0;
				left: 40%; /* โผล่มาประมาณ 30% */
				background: linear-gradient(135deg, #dc3545, #a71d2a); /* สีแดง */
				z-index: 1;
				transition: left 0.4s ease, z-index 0.4s;
				opacity: 0.95;
			}
			/* เมื่อ hover container ทั้งหมด ให้ปุ่มเลื่อนออกขวา */
			.status-buttons:hover .hidden-btn {
				left: 100%; /* เลื่อนออกไปทางขวาเต็ม */
				z-index: 2;
			}
			/* เอฟเฟกต์ hover เดิม */
			.status-buttons .status-btn {
				color: white;
				border: none;
				padding: 12px 30px;
				margin: 5px;
				border-radius: 25px;
				font-weight: bold;
				box-shadow: 0 4px 8px rgba(0,123,255,0.3);
				transition: all 0.3s ease;
				white-space: nowrap;
			}
			.status-buttons .status-btn:hover {
				transform: translateY(-2px);
				box-shadow: 0 6px 12px rgba(0,123,255,0.4);
			}
			.status-buttons .close-all-btn {
				background: linear-gradient(135deg, #dc3545, #a71d2a); /* สีแดง */
				z-index: 1;
				transition: left 0.4s ease, z-index 0.4s;
				opacity: 0.95;
			}
        .auction-card {
			 position: relative;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            overflow: hidden;
            transition: transform 0.3s ease;
		    border-style: solid;
			border-width: 1px;
        }
        .auction-card:hover {
              position: relative;
    		 overflow: hidden;
        }
        .auction-card:hover .bid-button {
    	display: block; /* แสดงปุ่มเมื่อ hover ที่ card */
		}
		.auction-card:hover .lot-number {
   			  transform: translateY(-3px);
    		box-shadow: 0 6px 12px rgba(0,0,0,0.15);
		}
      /*  .lot-number {
            background: linear-gradient(135deg, #333, #000);
            color: white;
            text-align: center;
            padding: 40px 20px;
            font-size: 3rem;
            font-weight: bold;
            position: relative;
        }
        .lot-label {
            position: absolute;
            top: 10px;
            left: 15px;
            background: rgba(255,255,255,0.2);
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8rem;
        }*/
		.lot-number {
			position: relative;
			height: 250px;
			overflow: hidden;
			display: flex;
			align-items: center;
			justify-content: center;
			background: #000; /* fallback */
		}
		.lot-number img {
		    min-width: 130px;
			min-height: 130px;
			max-width: 200px;
			max-height: 200px;
			width: auto;
			height: auto;
			object-fit: contain;
			display: block;
		}
		.lot-label {
			position: absolute;
			top: 10px;
			left: 15px;
			background: rgba(255, 255, 255, 0.8);
			padding: 5px 10px;
			border-radius: 5px;
			font-size: 0.8rem;
			color: #000;
			z-index: 10;
		}
        .item-details {
            padding: 15px;
        }
        .item-title {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
            text-align: center;
        }
			.price-info {
			background: linear-gradient(135deg, #ff851b, #ffc107); /* ส้มอมทอง */
			color: #fff;
			text-align: center;
			padding: 5px 10px;
			margin: 0 10px 10px 10px;
			border-radius: 5px;
			font-size: 0.9rem;
			font-weight: bold;
		}
		.time-info {
			background: linear-gradient(135deg, #ffe0b2, #ffe9c5); /* ครีมอ่อน */
			color: #6b3e00;
			text-align: center;
			padding: 8px;
			margin: 0 10px 10px 10px;
			border-radius: 5px;
			font-size: 0.9rem;
			font-family: monospace;
		}
		@keyframes urgentFlash {
			0%, 100% { background-color: #ff6b35; }
			50%      { background-color: #f7931e; }
		}
		.time-info.urgent {
			color: #fff;
			background: #ff6b35;
			background-color: #ff6b35;
			animation: urgentFlash 1.5s infinite;
			font-weight: bold;
			box-shadow: 0 0 10px rgba(255, 107, 53, 0.7);
		}
        .bid-button {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
			color: white;
			border: none;
			padding: 8px 20px;
			border-radius: 20px;
			width: 80%;
			margin: 0 auto;
			display: none;
			font-weight: bold;
			transition: all 0.3s ease;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			z-index: 2;
			cursor: pointer;
			box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .bid-button:hover {
              background: linear-gradient(135deg, #ff5722, #ff9800);
    		  box-shadow: 0 4px 10px rgba(255,87,34,0.4);
        }
        .grid-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
		 .grid-container-special {
				display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
			}
        @media (max-width: 1200px) {
            .grid-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        @media (max-width: 992px) {
            .grid-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 576px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 768px) {
			.lot-number {
				height: 150px;
			}
		}
        /* Pagination Styles */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 40px 0;
            gap: 10px;
        }
        .pagination-btn {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            min-width: 45px;
        }
        .pagination-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #0056b3, #004085);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,123,255,0.3);
        }
        .pagination-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
            opacity: 0.6;
        }
        .pagination-btn.active {
            background: linear-gradient(135deg, #28a745, #20c997);
            box-shadow: 0 4px 8px rgba(40,167,69,0.3);
        }
        .pagination-info {
            margin: 0 15px;
            color: #666;
            font-weight: bold;
        }
        #pageNumbers {
            display: flex;
            gap: 5px;
        }
.link-no-underline {
  text-decoration: none;
  color: white;
}
.link-no-underline:hover {
  color: #cccccc; /* เปลี่ยนสีเมื่อนำเมาส์มาวาง */
  /* หรือจะเพิ่มเส้นใต้เมื่อโฮเวอร์: text-decoration: underline; */
}
.userBorder{
	padding: 10px;
	border-style:double;
	border-color:white;
	border-width: 1px;
}
.bgGreen{
	background-color:#6DA367;
	color: white;
    padding: 2px;
}
.pull-right {
    @extend .float-right;
}
.pull-left {
    @extend .float-left;
}
