/* Entry Requests Page Styles */

/* Modern Page Header */
.page-header-modern {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

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

.page-title-modern .title-icon {
    color: #667eea;
    font-size: 1.75rem;
}

.page-subtitle-modern {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

/* Modern Table Container */
.modern-table-container {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Entry Requests Table */
.modern-table.entry-requests-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modern-table.entry-requests-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-table.entry-requests-table thead th {
    padding: 1rem;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    white-space: nowrap;
    border: none;
}

.modern-table.entry-requests-table thead th .table-icon {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

.modern-table.entry-requests-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.modern-table.entry-requests-table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.005);
}

.modern-table.entry-requests-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table.entry-requests-table tbody td {
    padding: 1rem;
    text-align: right;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: middle;
}

/* User ID Badge */
.user-id-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* User Name Cell */
.user-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name-cell .inline-icon {
    color: #667eea;
    font-size: 0.875rem;
}

.user-name-cell .font-semibold {
    font-weight: 600;
    color: #1f2937;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

.contact-item .contact-icon {
    color: #667eea;
    font-size: 0.75rem;
}

/* Time Ago Badge */
.time-ago-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #fbbf24;
}

.time-ago-badge .inline-icon {
    font-size: 0.75rem;
}

/* Auction Date Cell */
.auction-date-cell {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Price Cell */
.price-cell {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.price-cell .inline-icon {
    font-size: 1rem;
}

.price-cell .price-amount,
.price-cell .insurance-amount {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #059669;
}

.price-cell .currency-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.insurance-cell {
    flex-direction: column;
    align-items: flex-start;
}

.insurance-cell .insurance-percentage {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.125rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.status-badge .status-icon {
    font-size: 0.875rem;
}

.status-approved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Actions Cell */
.actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-accept-request,
.btn-delete-request {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-accept-request {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-accept-request:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-delete-request {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete-request:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-accept-request:disabled,
.btn-delete-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-accept-request .spinner,
.btn-delete-request .spinner {
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.admin-empty img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.admin-empty p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .modern-table.entry-requests-table thead th,
    .modern-table.entry-requests-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.8125rem;
    }

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

    .btn-accept-request,
    .btn-delete-request {
        padding: 0.4375rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .modern-table.entry-requests-table thead th,
    .modern-table.entry-requests-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .page-header-modern {
        margin-bottom: 1.5rem;
    }

    .page-title-modern {
        font-size: 1.375rem;
    }

    .actions-cell {
        flex-direction: column;
        gap: 0.375rem;
    }

    .btn-accept-request,
    .btn-delete-request {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .page-header-modern {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .page-title-modern {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

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

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

    .modern-table.entry-requests-table {
        font-size: 0.75rem;
    }

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

    .modern-table.entry-requests-table thead th .table-icon {
        display: none;
    }

    .modern-table.entry-requests-table tbody td {
        padding: 0.75rem 0.375rem;
    }

    .user-id-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .contact-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .time-ago-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .price-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }

    .status-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .btn-accept-request,
    .btn-delete-request {
        padding: 0.4375rem 0.625rem;
        font-size: 0.6875rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .modern-table.entry-requests-table thead th,
    .modern-table.entry-requests-table tbody td {
        padding: 0.625rem 0.25rem;
        font-size: 0.6875rem;
    }

    .page-title-modern {
        font-size: 1.125rem;
    }

    .user-name-cell .inline-icon {
        display: none;
    }

    .auction-date-cell {
        font-size: 0.75rem;
    }

    .status-badge {
        padding: 0.3125rem 0.5rem;
        font-size: 0.6875rem;
    }

    .status-badge .status-icon {
        font-size: 0.75rem;
    }

    .actions-cell {
        gap: 0.25rem;
    }

    .btn-accept-request,
    .btn-delete-request {
        padding: 0.375rem 0.5rem;
        font-size: 0.625rem;
        gap: 0.25rem;
    }

    .admin-empty img {
        max-width: 150px;
    }

    .admin-empty p {
        font-size: 1rem;
    }
}
