/* Admin Auctions Page Styles */

.admin-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.admin-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-page-title .page-icon {
    color: #fe2c55;
    font-size: 1.75rem;
}

.admin-page-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Auctions Table Styles */

.auctions-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-table.auctions-table {
    margin-bottom: 0;
}

.modern-table.auctions-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 1rem 0.75rem;
    border: none;
    font-size: 0.9375rem;
}

.modern-table.auctions-table thead th .table-icon {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.modern-table.auctions-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.modern-table.auctions-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-table.auctions-table tbody tr.deleting-row {
    opacity: 0.6;
    pointer-events: none;
}

.modern-table.auctions-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    text-align: center;
}

/* Auction ID Column */
.auction-id {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
}

/* User Info Cell */
.user-info-cell {
    text-align: right;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9375rem;
}

.user-contact {
    font-size: 0.875rem;
    color: #6c757d;
    direction: ltr;
    text-align: right;
}

/* Auction Date Cell */
.auction-date-cell {
    min-width: 200px;
}

.auction-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.875rem;
}

.auction-date .date-icon {
    color: #fe2c55;
    font-size: 1rem;
}

/* Property Type */
.property-type {
    text-align: center;
}

.type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Price Cell */
.price-cell {
    text-align: center;
}

.price-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.125rem;
    display: block;
}

.currency {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

/* Participants Count */
.participants-count {
    text-align: center;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.count-badge.has-participants {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

/* Actions Cell */
.actions-cell {
    text-align: center;
}

.btn-delete-auction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.btn-delete-auction:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

.btn-delete-auction:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-delete-auction svg {
    font-size: 1rem;
}

.btn-delete-auction .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modern-table.auctions-table thead th {
        font-size: 0.875rem;
        padding: 0.875rem 0.5rem;
    }

    .modern-table.auctions-table tbody td {
        padding: 0.875rem 0.5rem;
        font-size: 0.875rem;
    }

    .admin-page-title {
        font-size: 1.625rem;
    }
}

@media (max-width: 992px) {
    .auctions-content {
        padding: 1rem;
    }

    .admin-page-title {
        font-size: 1.5rem;
    }

    .admin-page-subtitle {
        font-size: 0.9375rem;
    }

    .auction-date {
        flex-direction: column;
        font-size: 0.8125rem;
    }

    .type-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .price-amount {
        font-size: 1rem;
    }

    .btn-delete-auction {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modern-table.auctions-table {
        min-width: 800px;
    }

    .modern-table.auctions-table thead th {
        font-size: 0.8125rem;
        padding: 0.75rem 0.375rem;
    }

    .modern-table.auctions-table tbody td {
        padding: 0.75rem 0.375rem;
        font-size: 0.8125rem;
    }

    .admin-page-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .admin-page-title {
        font-size: 1.375rem;
        gap: 0.5rem;
    }

    .admin-page-title .page-icon {
        font-size: 1.5rem;
    }

    .count-badge {
        min-width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .auctions-content {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .admin-page-title {
        font-size: 1.25rem;
    }

    .admin-page-subtitle {
        font-size: 0.875rem;
    }

    .modern-table.auctions-table {
        min-width: 700px;
    }

    .user-name {
        font-size: 0.875rem;
    }

    .user-contact {
        font-size: 0.8125rem;
    }

    .btn-delete-auction {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .btn-delete-auction svg {
        font-size: 0.875rem;
    }
}
