/* ============================================
   ADMIN PANEL CSS - Quản Lý Items, Codes, Users, Orders, Topup
   ============================================ */

/* Reset và Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container chính */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

/* Header Section */
.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.admin-header p {
    font-size: 0.875rem;
    color: #a0a0a0;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.2);
}

.btn-cyan {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-cyan:hover {
    background: rgba(0, 217, 255, 0.3);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease-out;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.alert-icon {
    font-size: 1.3rem;
}

.alert-message {
    font-weight: 500;
    line-height: 1.5;
}

.alert-close {
    background: transparent;
    border: none;
    color: currentColor;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 217, 108, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 80, 30, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: #ff6b35;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-select {
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-card.primary { border-color: rgba(255, 107, 53, 0.2); }
.stat-card.primary .stat-value { color: #ff6b35; }

.stat-card.cyan { border-color: rgba(0, 217, 255, 0.2); }
.stat-card.cyan .stat-value { color: #00d9ff; }

.stat-card.yellow { border-color: rgba(255, 193, 7, 0.2); }
.stat-card.yellow .stat-value { color: #ffc107; }

.stat-card.green { border-color: rgba(0, 255, 136, 0.2); }
.stat-card.green .stat-value { color: #00ff88; }

.stat-card.gray { border-color: rgba(160, 160, 160, 0.2); }
.stat-card.gray .stat-value { color: #a0a0a0; }

.stat-card.red { border-color: rgba(255, 68, 68, 0.2); }
.stat-card.red .stat-value { color: #ff4444; }

/* Table - Styling cho tất cả các table trong admin */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

/* Table Container */
table,
.table-container,
div[class*="bg-\[rgba"]:has(table) {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

/* Table Header */
thead,
table thead {
    background: rgba(255, 107, 53, 0.05);
}

thead tr,
table thead tr {
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

th,
table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

th.text-center,
table th.text-center {
    text-align: center;
}

/* Table Body */
tbody,
table tbody {
    background: transparent;
}

tbody tr,
table tbody tr {
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.2s ease;
}

tbody tr:first-child,
table tbody tr:first-child {
    border-top: none;
}

tbody tr:hover,
table tbody tr:hover {
    background: rgba(255, 107, 53, 0.03);
    transform: scale(1.001);
}

/* Table Cells */
td,
table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #e8e8e8;
    vertical-align: middle;
}

td.text-center,
table td.text-center {
    text-align: center;
}

td.text-gray,
table td.text-gray,
td.text-sm.text-gray-400,
table td.text-sm.text-gray-400 {
    color: #a0a0a0;
}

td.text-white,
table td.text-white,
td .text-white {
    color: #fff;
    font-weight: 500;
}

td.text-green,
table td.text-green,
td .text-green-400 {
    color: #00ff88;
    font-weight: 600;
}

td.text-orange,
table td.text-orange,
td .text-\[#f7931e\] {
    color: #f7931e;
    font-weight: 600;
}

/* Table Images */
td img,
table td img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(15, 15, 30, 0.5);
    padding: 4px;
}

/* Table Code Display */
td code,
table td code {
    display: inline-block;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Code Display Colors */
td code[class*="text-\[#00d9ff\]"],
td code.text-cyan {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

td code[class*="text-white"],
td code.text-white {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
}

/* Table Status Badges trong td */
td .status-badge,
td span[class*="px-2.5"],
td span[class*="px-2"] {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Table Action Buttons */
td .flex,
td .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

td a,
td button,
td .action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

/* Button Colors trong Table */
td a[class*="bg-blue"],
td button[class*="bg-blue"] {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

td a[class*="bg-blue"]:hover,
td button[class*="bg-blue"]:hover {
    background: rgba(0, 123, 255, 0.3);
}

td a[class*="bg-cyan"],
td button[class*="bg-cyan"] {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

td a[class*="bg-cyan"]:hover,
td button[class*="bg-cyan"]:hover {
    background: rgba(0, 217, 255, 0.3);
}

td a[class*="bg-red"],
td button[class*="bg-red"] {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

td a[class*="bg-red"]:hover,
td button[class*="bg-red"]:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Table Stats Badges */
td .flex.gap-1\.5,
td .stats-badges {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    flex-wrap: wrap;
}

td .flex.gap-1\.5 span,
td .stats-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Badge Colors trong Table */
td span[class*="bg-green"],
td .stats-badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

td span[class*="bg-blue"],
td .stats-badge.blue {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

td span[class*="bg-yellow"],
td .stats-badge.yellow {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

td span[class*="bg-orange"],
td .stats-badge.orange {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

td span[class*="bg-red"],
td .stats-badge.red {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

td span[class*="bg-gray"],
td .stats-badge.gray {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

td span[class*="bg-purple"],
td .stats-badge.purple {
    background: rgba(128, 0, 128, 0.2);
    color: #800080;
}

/* Empty State trong Table */
tbody tr:only-child td[colspan],
table tbody tr:only-child td[colspan] {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #a0a0a0;
}

/* Pagination Container */
.pagination-container,
div[class*="border-t"]:has(.pagination),
div[class*="px-6"]:has(.pagination) {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    background: rgba(26, 26, 46, 0.4);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.status-badge.blue {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.status-badge.yellow {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-badge.orange {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.status-badge.red {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-badge.gray {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.status-badge.purple {
    background: rgba(128, 0, 128, 0.2);
    color: #800080;
}

.status-badge.yellow {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Inline form */
form.inline {
    display: inline;
}

/* Text colors */
.text-gray {
    color: #a0a0a0;
}

.text-white {
    color: #fff;
}

.text-green {
    color: #00ff88;
}

.text-orange {
    color: #f7931e;
}

/* Code Display */
.code-display {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00d9ff;
}

.code-display.white {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
}

/* Image Thumbnail */
.img-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(15, 15, 30, 0.5);
    padding: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

/* Stats Badges */
.stats-badges {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.stats-badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.stats-badge.blue {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.stats-badge.yellow {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.stats-badge.orange {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

/* Form Container */
.form-container {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 30, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e8e8e8;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group .required {
    color: #ff6b35;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
}

/* ============================================
   PAGINATION - Pure CSS Design
   Override ALL default styles
   ============================================ */

/* Force override ALL default pagination styles */
.pagination-container *,
.pagination-container *::before,
.pagination-container *::after {
    box-sizing: border-box;
}

.pagination-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
}

/* NUCLEAR OPTION - Remove ALL borders from pagination */
.pagination-container nav,
.pagination-container nav *,
.pagination-container nav a,
.pagination-container nav span,
.pagination-container nav div,
.pagination-container nav div *,
.pagination-container nav div a,
.pagination-container nav div span {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove border from container span */
.pagination-container nav > div:last-child > div:last-child > span {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Navigation container */
.pagination-container nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

/* Mobile pagination - hide on desktop */
.pagination-container nav > div:first-child {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .pagination-container nav > div:first-child {
        display: none;
    }
}

/* Desktop pagination */
.pagination-container nav > div:last-child {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pagination-container nav > div:last-child {
        display: flex;
    }
}

/* Pagination info text */
.pagination-container p {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin: 0;
    font-weight: 400;
}

.pagination-container p span {
    font-weight: 600;
    color: #fff;
    margin: 0 0.25rem;
}

.pagination-container p span:last-child {
    color: #ff6b35;
    font-weight: 700;
}

/* Pagination buttons container - No border */
.pagination-container nav > div:last-child > div:last-child > span {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 12px;
    border: none !important;
    background: transparent !important;
    padding: 4px;
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Mobile buttons */
.pagination-container nav > div:first-child > a,
.pagination-container nav > div:first-child > span {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border: none !important;
}

/* Mobile active buttons */
.pagination-container nav > div:first-child > a {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    border: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.pagination-container nav > div:first-child > a:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.3));
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Mobile disabled buttons */
.pagination-container nav > div:first-child > span {
    color: #6c757d;
    background: rgba(26, 26, 46, 0.3);
    border: none !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Desktop pagination buttons */
.pagination-container nav > div:last-child > div:last-child > span > a,
.pagination-container nav > div:last-child > div:last-child > span > span {
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: none !important;
}

/* Desktop page number links */
.pagination-container nav > div:last-child > div:last-child > span > a {
    color: #e8e8e8;
    background: transparent;
    border: none !important;
}

.pagination-container nav > div:last-child > div:last-child > span > a:hover {
    background: rgba(255, 107, 53, 0.15);
    border: none !important;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* Active page - Same style as hover */
.pagination-container nav span.pagination-active,
.pagination-container nav .pagination-active,
.pagination-container .pagination-active,
.pagination-container nav span[class*="bg-\[#ff6b35\]"],
.pagination-container nav span[class*="cursor-default"][class*="font-semibold"][class*="text-white"] {
    background: rgba(255, 107, 53, 0.15) !important;
    border: none !important;
    color: #ff6b35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2) !important;
    font-weight: 600 !important;
}

/* Ellipsis (dots) */
.pagination-container nav > div:last-child > div:last-child > span > span:not([class*="bg"]):not([class*="font"]):not(.pagination-active) {
    color: #a0a0a0;
    padding: 10px 8px;
    cursor: default;
    border: none !important;
}

/* Previous/Next buttons in desktop */
.pagination-container nav > div:last-child > div:last-child > span > a:first-child,
.pagination-container nav > div:last-child > div:last-child > span > span:first-child {
    border-radius: 8px 0 0 8px;
    margin-right: 4px;
    border: none !important;
}

.pagination-container nav > div:last-child > div:last-child > span > a:last-child,
.pagination-container nav > div:last-child > div:last-child > span > span:last-child {
    border-radius: 0 8px 8px 0;
    margin-left: 4px;
    border: none !important;
}

/* Previous/Next buttons hover */
.pagination-container nav > div:last-child > div:last-child > span > a:first-child:hover,
.pagination-container nav > div:last-child > div:last-child > span > a:last-child:hover {
    background: rgba(255, 107, 53, 0.2) !important;
    border: none !important;
    color: #ff6b35 !important;
}

/* Disabled previous/next */
.pagination-container nav > div:last-child > div:last-child > span > span:first-child,
.pagination-container nav > div:last-child > div:last-child > span > span:last-child {
    color: #6c757d;
    background: rgba(26, 26, 46, 0.3);
    border: none !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* SVG icons */
.pagination-container nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.pagination-container nav a:hover svg {
    transform: scale(1.1);
}

/* Override ALL Tailwind classes - Force no borders - MAXIMUM SPECIFICITY */
.pagination-container nav *,
.pagination-container nav a *,
.pagination-container nav span *,
.pagination-container nav div *,
.pagination-container nav div a *,
.pagination-container nav div span * {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
}

/* Override inline styles and Tailwind arbitrary values */
.pagination-container nav [style*="border"],
.pagination-container nav [class*="border"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

/* Remove any box-shadow that might look like border */
.pagination-container nav [class*="border"] {
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 640px) {
    .pagination-container {
        padding: 1rem;
    }

    .pagination-container nav > div:first-child > a,
    .pagination-container nav > div:first-child > span {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Navigation container */
.pagination-container nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

/* Mobile pagination - hide on desktop */
.pagination-container nav > div:first-child {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .pagination-container nav > div:first-child {
        display: none;
    }
}

/* Desktop pagination */
.pagination-container nav > div:last-child {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pagination-container nav > div:last-child {
        display: flex;
    }
}

/* Pagination info text - Beautiful styling */
.pagination-container p {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin: 0;
    font-weight: 400;
}

.pagination-container p span {
    font-weight: 600;
    color: #fff;
    margin: 0 0.25rem;
}

.pagination-container p span:last-child {
    color: #ff6b35;
    font-weight: 700;
}

/* Pagination buttons container - Modern card design */
.pagination-container nav > div:last-child > div:last-child > span {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 12px;
    border: none !important;
    background: transparent !important;
    padding: 4px;
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Override all border classes in pagination container span */
.pagination-container nav > div:last-child > div:last-child > span[class*="border"],
.pagination-container nav > div:last-child > div:last-child > span.border {
    border: none !important;
}

/* Mobile buttons - Modern design */
.pagination-container nav > div:first-child > a,
.pagination-container nav > div:first-child > span {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
}

/* Mobile active buttons */
.pagination-container nav > div:first-child > a {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.pagination-container nav > div:first-child > a:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.3));
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Mobile disabled buttons */
.pagination-container nav > div:first-child > span {
    color: #6c757d;
    background: rgba(26, 26, 46, 0.3);
    border: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Desktop pagination buttons */
.pagination-container nav > div:last-child > div:last-child > span > a,
.pagination-container nav > div:last-child > div:last-child > span > span {
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
}

/* Desktop page number links */
.pagination-container nav > div:last-child > div:last-child > span > a {
    color: #e8e8e8;
    background: transparent;
    border: none !important;
}

/* Override Tailwind border on all pagination links and spans */
.pagination-container nav a[class*="border"],
.pagination-container nav span[class*="border"],
.pagination-container nav a.border,
.pagination-container nav span.border {
    border: none !important;
}

.pagination-container nav > div:last-child > div:last-child > span > a:hover {
    background: rgba(255, 107, 53, 0.15);
    border: none;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* Active page - Same style as hover - Using class pagination-active */
.pagination-container nav span.pagination-active,
.pagination-container nav .pagination-active,
.pagination-container .pagination-active,
.pagination-container nav span[class*="bg-\[#ff6b35\]"] {
    background: rgba(255, 107, 53, 0.15) !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    color: #ff6b35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2) !important;
    font-weight: 600 !important;
}

/* Fallback selectors */
.pagination-container nav span[class*="bg-\[#ff6b35\]"],
.pagination-container nav span.cursor-default[class*="text-white"][class*="font-semibold"],
.pagination-container nav > div:last-child > div:last-child > span > span[class*="bg"],
.pagination-container nav > div:last-child > div:last-child > span > span.cursor-default {
    background: rgba(255, 107, 53, 0.15) !important;
    border: none !important;
    color: #ff6b35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2) !important;
    font-weight: 600 !important;
}

/* Ellipsis (dots) */
.pagination-container nav > div:last-child > div:last-child > span > span:not([class*="bg"]):not([class*="font"]) {
    color: #a0a0a0;
    padding: 10px 8px;
    cursor: default;
}

/* Previous/Next buttons in desktop */
.pagination-container nav > div:last-child > div:last-child > span > a:first-child,
.pagination-container nav > div:last-child > div:last-child > span > span:first-child {
    border-radius: 8px 0 0 8px;
    margin-right: 4px;
}

.pagination-container nav > div:last-child > div:last-child > span > a:last-child,
.pagination-container nav > div:last-child > div:last-child > span > span:last-child {
    border-radius: 0 8px 8px 0;
    margin-left: 4px;
}

/* Previous/Next buttons hover */
.pagination-container nav > div:last-child > div:last-child > span > a:first-child:hover,
.pagination-container nav > div:last-child > div:last-child > span > a:last-child:hover {
    background: rgba(255, 107, 53, 0.2) !important;
    border: none !important;
    color: #ff6b35 !important;
}

/* Disabled previous/next */
.pagination-container nav > div:last-child > div:last-child > span > span:first-child,
.pagination-container nav > div:last-child > div:last-child > span > span:last-child {
    color: #6c757d;
    background: rgba(26, 26, 46, 0.3);
    border: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* SVG icons - Better styling */
.pagination-container nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.pagination-container nav a:hover svg {
    transform: scale(1.1);
}

/* Override Tailwind */
.pagination-container nav[class*="flex"] {
    display: flex !important;
}

.pagination-container nav[class*="items-center"] {
    align-items: center !important;
}

.pagination-container nav[class*="justify-between"] {
    justify-content: space-between !important;
}

/* Ensure visibility */
.pagination-container {
    display: block;
    width: 100%;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .pagination-container {
        padding: 1rem;
    }

    .pagination-container nav > div:first-child > a,
    .pagination-container nav > div:first-child > span {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Empty State */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #a0a0a0;
}

.empty-state .empty-message {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.empty-state a {
    color: #00d9ff;
    text-decoration: none;
    font-size: 0.875rem;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        padding-top: calc(1rem + 60px);
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Table Responsive */
    table,
    .table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table thead,
    .table thead {
        display: none;
    }

    table tbody,
    .table tbody {
        display: block;
    }

    table tbody tr,
    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 107, 53, 0.2);
        border-radius: 8px;
        padding: 1rem;
        background: rgba(26, 26, 46, 0.6);
    }

    table tbody tr td,
    .table tbody tr td {
        display: block;
        padding: 0.5rem 0;
        text-align: left !important;
        border: none;
    }

    table tbody tr td:before,
    .table tbody tr td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #ff6b35;
        display: inline-block;
        min-width: 100px;
    }

    table th,
    .table th,
    table td,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    /* Action Buttons Responsive */
    .action-buttons,
    td .flex {
        flex-direction: column;
        width: 100%;
    }

    .action-btn,
    td a,
    td button {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Stats Badges Responsive */
    .stats-badges,
    td .flex.gap-1\.5 {
        justify-content: flex-start;
    }

    /* Table Images Responsive */
    td img,
    table td img {
        width: 48px;
        height: 48px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ============================================
   PAGINATION OVERRIDE - MAXIMUM PRIORITY
   Override ALL default CSS including Tailwind
   ============================================ */

/* Remove ALL borders from pagination - Highest specificity */
.pagination-container nav[role="navigation"] *,
.pagination-container nav[role="navigation"] a,
.pagination-container nav[role="navigation"] span,
.pagination-container nav[role="navigation"] div,
.pagination-container nav[role="navigation"] div *,
.pagination-container nav[role="navigation"] div a,
.pagination-container nav[role="navigation"] div span,
.pagination-container nav[role="navigation"] div div,
.pagination-container nav[role="navigation"] div div *,
.pagination-container nav[role="navigation"] div div a,
.pagination-container nav[role="navigation"] div div span {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
}

/* Override inline styles */
.pagination-container nav[role="navigation"] [style*="border"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
}

/* Override all Tailwind border classes */
.pagination-container nav[role="navigation"] [class*="border"],
.pagination-container nav[role="navigation"] .border,
.pagination-container nav[role="navigation"] [class*="border-"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

/* Remove box-shadow that might look like border */
.pagination-container nav[role="navigation"] [class*="border"] {
    box-shadow: none !important;
}

/* Override container span border */
.pagination-container nav[role="navigation"] > div:last-child > div:last-child > span[class*="border"],
.pagination-container nav[role="navigation"] > div:last-child > div:last-child > span.border {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
}

