/* Voucher Activity Right Panel */
.voucher-activity-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #e5e7eb;
}

.voucher-activity-panel.show {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.panel-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.panel-close:hover {
    background: #e5e7eb;
}

.panel-close i {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.panel-body {
    padding: 20px;
}

/* Voucher Activity Card in Panel */
.voucher-activity-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.voucher-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.voucher-amount {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.lushways-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fbbf24;
    letter-spacing: 2px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.voucher-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.voucher-code-display .code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn i {
    width: 16px;
    height: 16px;
    color: white;
}

.progress-bar-container {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.voucher-amounts-bar {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.amount-section {
    text-align: center;
    flex: 1;
}

.amount-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.voucher-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.status-item i {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Activity Section in Panel */
.activity-section {
    margin-top: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.activity-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.activity-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.activity-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.activity-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-count {
    font-size: 13px;
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

/* Activity List in Panel */
.activity-list {
    space-y: 12px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.activity-info {
    flex: 1;
}

.activity-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.activity-date {
    font-size: 14px;
    color: #6b7280;
}

.view-sale-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-sale-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.view-sale-btn i {
    width: 14px;
    height: 14px;
}

.export-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.export-pdf-btn:hover {
    background: #2563eb;
}

.export-pdf-btn i {
    width: 16px;
    height: 16px;
}

.export-pdf-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .voucher-activity-panel {
        width: 100vw;
        right: -100vw;
    }
    
    .voucher-activity-panel.show {
        right: 0;
    }
}