/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bottom overlay toast (non-reflowing) */
.toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}

.toast {
	pointer-events: auto;
	background: rgba(33, 37, 41, 0.95);
	color: #fff;
	padding: 12px 16px;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	min-width: 260px;
	max-width: 90vw;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	animation: toastSlideUp 250ms ease-out;
}

.toast--success { background: rgba(25, 135, 84, 0.95); }
.toast--error { background: rgba(220, 53, 69, 0.95); }
.toast--warning { background: rgba(255, 193, 7, 0.95); color: #1f2d3d; }

@keyframes toastSlideUp {
	from { transform: translateY(12px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem;
}

/* Content wrapper improvements */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    align-items: stretch;
}

/* Ensure proper vertical stacking and separation */
.content-wrapper > * {
    flex-shrink: 0;
    min-width: 0;
    margin-bottom: 1rem;
}

.content-wrapper > *:last-child {
    margin-bottom: 0;
}

/* Additional spacing for dynamically inserted elements */
#databaseStats,
#databaseAuctionsDisplay {
    clear: both;
    display: block;
    width: 100%;
}

/* Date and time section */
.date-time {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.date-time span {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    justify-self: start;
}

.token-button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.token-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.token-button:active {
    transform: translateY(0);
}

.token-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Map container */
.map-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#map {
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

/* Filters row below the map: left filters, right empty space */
.filters-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr; /* Filtruj 1/3, Załaduj dane 1/3, spacer 1/3 */
	gap: 16px;
	align-items: stretch;
	margin: 1rem 0;
}

.filters-row .auction-filters { margin: 0; height: 100%; }
.filters-row__spacer { min-height: 100%; }

@media (max-width: 1024px) {
	.filters-row { grid-template-columns: 1fr; }
}

/* Loading indicator */
.loading-indicator {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    animation: pulse 2s infinite;
}

.loading-indicator span {
    display: inline-block;
    animation: bounce 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Status indicator */
.status-indicator {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-indicator span {
    opacity: 0.9;
}

/* Auction section */
.auction-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
}

/* Search bar layout */
.search-bar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px; /* match filters */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* match filters */
    backdrop-filter: blur(10px);
    padding: 12px; /* match filters */
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px; /* match filters spacing */
    align-items: end; /* align like filters */
}

.search-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.search-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

/* Province selector */
.province-selector {
    margin-bottom: 1rem;
    text-align: center;
}

.province-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.province-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    min-width: 220px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.province-dropdown:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.province-dropdown:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.province-dropdown.has-selection {
    border-color: rgba(40, 167, 69, 0.6);
    background: rgba(255, 255, 255, 0.98);
}

.province-dropdown option {
    background: white;
    color: #333;
    padding: 0.5rem;
}

.auction-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 300px;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
}

.auction-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auction-button:active {
    transform: translateY(0);
}

.auction-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.search-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}
/* Responsive updates for search bar */
@media (max-width: 1024px) {
    .search-bar {
        grid-template-columns: 1fr 1fr;
    }
    .search-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    #searchAuctionsBtn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-bar {
        grid-template-columns: 1fr;
    }
}

.search-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .date-time span {
        font-size: 1.5rem;
    }
    
    #map {
        height: 50vh;
        min-height: 400px;
    }
    
    .auction-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
        max-width: 250px;
        width: auto;
    }
    
    .auction-section {
        padding: 0.5rem;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .province-dropdown {
        min-width: 200px;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .province-label {
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .content-wrapper {
        gap: 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .date-time span {
        font-size: 1.3rem;
    }
    
    .auction-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: 160px;
        max-width: 220px;
        width: auto;
    }
    
    .auction-section {
        padding: 0.3rem;
        justify-content: center;
    }
    /* Center the search button on small screens */
    .search-actions { justify-content: center; }
    #searchAuctionsBtn { width: auto; }
}

/* Table responsive improvements */
@media (max-width: 1024px) {
    #databaseAuctionsDisplay {
        padding: 15px;
    }
    
    #databaseAuctionsDisplay table {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    #databaseAuctionsDisplay {
        padding: 10px;
    }
    
    #databaseAuctionsDisplay table {
        min-width: 500px;
    }
    
    #databaseAuctionsDisplay th,
    #databaseAuctionsDisplay td {
        padding: 8px 6px;
        font-size: 14px;
    }
}

/* Database stats styling */
#databaseStats {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#databaseStats p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#databaseStats button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Database auctions display styling */
#databaseAuctionsDisplay {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    flex-shrink: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* External auction filters bar */
.auction-filters {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(10px);
	padding: 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: end;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.auction-filters__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.auction-filters__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #495057;
}

.auction-filters__input {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #dee2e6;
	background: #ffffff;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 40px;
}

/* Ensure selects inherit input styling */
.auction-filters__input select,
select.auction-filters__input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #999 50%),
		linear-gradient(135deg, #999 50%, transparent 50%),
		linear-gradient(to right, #ccc, #ccc);
	background-position: calc(100% - 20px) calc(1em + 2px),
		calc(100% - 15px) calc(1em + 2px),
		calc(100% - 2.5em) 0.5em;
	background-size: 5px 5px, 5px 5px, 1px 1.5em;
	background-repeat: no-repeat;
}

.auction-filters__input:focus {
	outline: none;
	border-color: rgba(102, 126, 234, 0.8);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.auction-filters__range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* Within the combined row, normalize spacing for both left and right panels */
.filters-row .auction-filters { margin: 0; }

/* Make the moved search bar visually match the filters when placed on the right */
/* Ensure the right-side search panel exactly mirrors filters styling */
.filters-row .auction-section.search-bar.auction-filters {
	margin: 0;
	padding: 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: end;
	text-align: left; /* match filters title alignment */
}

.filters-row .auction-section.search-bar.auction-filters .auction-filters__group { gap: 6px; }
.filters-row .auction-section.search-bar.auction-filters .auction-filters__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #495057;
}
.filters-row .auction-section.search-bar.auction-filters .auction-filters__input {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #dee2e6;
	background: #ffffff;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 40px;
	min-width: 0;
}
.filters-row .auction-section.search-bar.auction-filters .auction-filters__input:focus {
	outline: none;
	border-color: rgba(102, 126, 234, 0.8);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Ensure actions/button aligns like left panel content (left-aligned) */
.filters-row .auction-section.search-bar.auction-filters .search-actions {
	justify-content: flex-start;
}

@media (max-width: 1024px) {
	.auction-filters {
		grid-template-columns: 1fr;
	}
}

/* On tablets/phones, stack vertically with a constrained width */
@media (max-width: 768px) {
	.auction-filters {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 12px;
		max-width: 520px;
		width: 100%;
		margin: 0 auto;
	}
	.auction-filters__group { width: 100%; }
	.auction-filters__label { font-size: 0.95rem; display: block; }
	.auction-filters__input { font-size: 1rem; width: 100%; }
}

@media (max-width: 480px) {
	.auction-filters {
		gap: 10px;
		padding: 10px;
		max-width: 360px;
	}
	.auction-filters__label { display: block; font-size: 0.9rem; }
	.auction-filters__group { width: 100%; }
	.auction-filters__input { font-size: 0.95rem; min-height: 40px; width: 100%; }
	.auction-filters__range { gap: 6px; grid-template-columns: 1fr 1fr; }
}

#databaseAuctionsDisplay table {
    min-width: 800px;
    width: 100%;
    table-layout: fixed;
}

#databaseAuctionsDisplay th,
#databaseAuctionsDisplay td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 0;
}

#databaseAuctionsDisplay td:last-child {
    white-space: nowrap;
    width: auto;
}

#databaseAuctionsDisplay button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Auction table header, filters, and pagination */
#databaseAuctionsDisplay .auction-table {
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#databaseAuctionsDisplay thead th {
    background: #f8fafc;
    color: #495057;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

#databaseAuctionsDisplay tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f5;
}

#databaseAuctionsDisplay thead .sortable {
    cursor: pointer;
}

#databaseAuctionsDisplay .auction-table__filter-row th {
    background: #f8fafc;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}

#databaseAuctionsDisplay .auction-table__filter-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#databaseAuctionsDisplay .auction-table__filter-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#databaseAuctionsDisplay .auction-table__filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

#databaseAuctionsDisplay .pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

#databaseAuctionsDisplay .pagination-controls__left,
#databaseAuctionsDisplay .pagination-controls__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#databaseAuctionsDisplay .rows-per-page-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
}

#databaseAuctionsDisplay .pagination-info {
    color: #6c757d;
    font-weight: 500;
}

/* Mobile pagination layout: split into two rows */
@media (max-width: 480px) {
    #databaseAuctionsDisplay .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px 8px;
    }
    #databaseAuctionsDisplay .pagination-controls__left,
    #databaseAuctionsDisplay .pagination-controls__right {
        justify-content: center;
        width: 100%;
    }
}

/* Map tooltip styling */
.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: none;
    z-index: 1000;
    max-width: 280px;
    white-space: normal;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    line-height: 1.4;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    transform: translateY(-5px);
}

.map-tooltip strong {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
}

.map-tooltip br {
    margin-bottom: 2px;
}

/* Tooltip arrow */
.map-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.9);
    transition: all 0.2s ease-in-out;
}



/* Responsive tooltip */
@media (max-width: 768px) {
    .map-tooltip {
        max-width: 250px;
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .map-tooltip {
        max-width: 220px;
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

#auctionModalContent {
    padding: 30px;
}

.auction-details-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.auction-details-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.auction-details-header .auction-id {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.auction-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.auction-detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.auction-detail-item h3 {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auction-detail-item p {
    color: #333;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.auction-details-full-width {
    grid-column: 1 / -1;
}

.auction-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auction-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auction-action-btn.primary {
    background: #007bff;
    color: white;
}

.auction-action-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.auction-action-btn.secondary {
    background: #6c757d;
    color: white;
}

.auction-action-btn.secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.auction-action-btn.danger {
    background: #dc3545;
    color: white;
}

.auction-action-btn.danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #auctionModalContent {
        padding: 20px;
    }
    
    .auction-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .auction-details-header h2 {
        font-size: 1.5rem;
    }
    
    .auction-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .auction-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        width: 98%;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #auctionModalContent {
        padding: 15px;
    }
    
    .auction-details-header h2 {
        font-size: 1.3rem;
    }
    
    .auction-detail-item {
        padding: 12px;
    }
}
