/* New Gift Card Management System Styles */

.new-gift-card-management {
    padding: 2rem;
    background: var(--gray-50);
    min-height: 100vh;
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .new-gift-card-management {
        padding: 1rem;
    }
}

/* Header Section */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Header Responsiveness */
@media (max-width: 768px) {
    .management-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

.header-left {
    flex: 1;
}

.management-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.management-title i {
    color: var(--primary-color);
}

.management-subtitle {
    color: var(--gray-600);
    margin: 0;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Mobile Stats Grid - Force 2 Column Layout for 6 Cards */
@media (max-width: 768px) {
    .stats-grid,
    .overview-grid,
    #giftCardStats .stats-grid,
    #giftCardStats .stats-overview .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 0.75rem !important;
        min-height: 90px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .stat-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .stat-title {
        font-size: 0.75rem !important;
        font-weight: 600;
        color: var(--gray-700);
    }
    
    .stat-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.875rem !important;
    }
    
    .stat-value {
        font-size: 1.25rem !important;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 0.25rem;
    }
    
    .stat-change {
        font-size: 0.65rem !important;
        color: var(--gray-500);
    }
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.action-btn.edit {
    background: var(--blue-100);
    color: var(--blue-600);
}

.action-btn.edit:hover {
    background: var(--blue-200);
    color: var(--blue-700);
}

.action-btn.view {
    background: var(--gray-100);
    color: var(--gray-600);
}

.action-btn.view:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.action-btn.status {
    background: var(--green-100);
    color: var(--green-600);
}

.action-btn.status:hover {
    background: var(--green-200);
    color: var(--green-700);
}

:root {
    --orange-100: #fed7aa;
    --orange-200: #fbbf24;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
}

.action-btn.revoke {
    background: var(--orange-100);
    color: var(--orange-600);
}

.action-btn.revoke:hover {
    background: var(--orange-200);
    color: var(--orange-700);
}

.action-btn.delete {
    background: var(--red-100);
    color: var(--red-600);
}

.action-btn.delete:hover {
    background: var(--red-200);
    color: var(--red-700);
}

/* Mobile Table Styles */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gift-cards-table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .gift-cards-table th,
    .gift-cards-table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .action-buttons {
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Mobile Filters */
@media (max-width: 768px) {
    .filters-section {
        padding: 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Mobile Card Layout Styles */
.mobile-cards-view {
    display: none;
}

.desktop-view {
    display: block;
}

@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }
    
    .mobile-cards-view {
        display: block;
        gap: 1rem;
    }
}

.mobile-gift-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.mobile-gift-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
    word-break: break-all;
}

.mobile-copy-btn {
    background: var(--gray-100);
    border: none;
    border-radius: 4px;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-copy-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.mobile-card-body {
    margin-bottom: 1rem;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-card-row:last-child {
    border-bottom: none;
}

.mobile-label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.mobile-value {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.mobile-value.amount {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.mobile-action-btn {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-700);
}

.mobile-action-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.mobile-action-btn i {
    font-size: 1rem;
}

.mobile-action-btn.view {
    color: var(--gray-600);
}

.mobile-action-btn.edit {
    color: var(--blue-600);
}

.mobile-action-btn.status {
    color: var(--green-600);
}

.mobile-action-btn.revoke {
    color: var(--orange-600);
}

.mobile-action-btn.delete {
    color: var(--red-600);
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .mobile-action-btn {
        padding: 0.75rem 0.5rem;
        min-height: 50px;
    }
    
    .mobile-card-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

/* Gift Card Details Modal Styles */
.gift-card-details-modal {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.gift-card-details-modal .modal-body {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 140px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--gray-900);
    word-break: break-word;
    flex: 1;
}

.detail-value-with-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.detail-value.code-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.detail-value.amount-value {
    font-weight: 600;
    color: var(--primary-color);
}

.detail-value.wallet-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    max-width: 300px;
}

.detail-value.transaction-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    max-width: 250px;
}

.copy-detail-btn {
    background: var(--gray-200);
    border: none;
    border-radius: 4px;
    padding: 0.375rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-detail-btn:hover {
    background: var(--primary-color);
    color: white;
}

.bsc-link {
    background: var(--blue-600);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.bsc-link:hover {
    background: var(--blue-700);
    color: white;
}

.status-value .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.status-badge.redeemed {
    background: var(--secondary-color);
    color: white;
}

.status-badge.expired {
    background: var(--warning-color);
    color: white;
}

.status-badge.revoked {
    background: var(--danger-color);
    color: white;
}

/* Mobile responsive for details modal */
@media (max-width: 768px) {
    .gift-card-details-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .detail-value-with-copy {
        width: 100%;
    }
    
    .detail-value.wallet-value,
    .detail-value.transaction-value {
        max-width: 100%;
        font-size: 0.75rem;
    }
}
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stat-card:nth-child(5) .stat-icon { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); }
.stat-card:nth-child(6) .stat-icon { background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.warning {
    color: #f59e0b;
}

.stat-change.neutral {
    color: var(--gray-600);
}

.stats-error {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
}

.stats-error i {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

/* Controls Section */
.controls-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    background-color: white;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-container {
    min-height: 400px;
    position: relative;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--gray-600);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-wrapper {
    overflow-x: auto;
}

.gift-cards-table {
    width: 100%;
    border-collapse: collapse;
}

.gift-cards-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gift-cards-table th:hover {
    background: var(--gray-100);
}

.gift-cards-table th i {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.gift-cards-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.gift-card-row:hover {
    background: var(--gray-50);
}

/* Table Cell Styles */
.code-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-card-code {
    font-family: 'Monaco', 'Menlo', monospace;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

.amount {
    font-weight: 600;
    color: var(--gray-900);
}

.currency-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.currency-usdt {
    background: #e8f5e8;
    color: #2d5a2d;
}

.currency-btc {
    background: #fff3cd;
    color: #856404;
}

.currency-eth {
    background: #e7f3ff;
    color: #0c4a6e;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-used {
    background: #e0e7ff;
    color: #3730a3;
}

.status-expired {
    background: #fef3c7;
    color: #92400e;
}

.status-revoked {
    background: #fee2e2;
    color: #991b1b;
}

.date-info, .expiry-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date {
    font-weight: 500;
    color: var(--gray-900);
}

.time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.countdown {
    font-size: 0.75rem;
    font-weight: 500;
}

.expiring-soon .countdown {
    color: var(--warning-color);
}

.expired .countdown {
    color: var(--error-color);
}

.expiring-normal .countdown {
    color: var(--success-color);
}

/* Action Buttons */
.actions-cell {
    position: relative;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: white;
    border: 1px solid var(--gray-300);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-item.danger {
    color: var(--error-color);
}

.dropdown-item.danger:hover {
    background: var(--error-50);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--gray-700);
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: var(--gray-500);
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.pagination-info {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pagination-current {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.expiration-quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.revoke-options {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.current-status-display {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.current-status-display h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.status-label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.bulk-preview {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.bulk-preview h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.preview-label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    z-index: 10001;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.25rem;
}

.notification-success .notification-content i {
    color: var(--success-color);
}

.notification-error .notification-content i {
    color: var(--error-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .new-gift-card-management {
        padding: 1rem;
    }
    
    .management-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .filters-container {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .table-wrapper {
        font-size: 0.875rem;
    }
    
    .gift-cards-table th,
    .gift-cards-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        flex: 1;
        text-align: center;
    }
    
    .expiration-quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
}