:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    --success: #10b981;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
}

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    padding: 1.5rem 2rem;
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.content-area {
    padding: 2rem;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 50%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.report-actions {
    display: flex !important;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.report-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

@media print {
    .report-actions {
        display: none !important;
    }
}

.checkout-container {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.order-summary {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.total-row {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* QuickGrid Pagination Styling */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.pagination-nav {
    display: flex;
    gap: 0.5rem;
}

.pagination button {
    background-color: #e2e8f0;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
}

.pagination button:hover:not(:disabled) {
    background-color: #cbd5e1;
    border-color: #94a3b8;
    transform: scale(1.05);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button svg,
.pagination button i {
    fill: currentColor;
    color: #0f172a;
}

/* Make arrow buttons more prominent */
.pagination button[aria-label*="previous"],
.pagination button[aria-label*="next"],
.pagination button[aria-label*="Previous"],
.pagination button[aria-label*="Next"],
.pagination button[aria-label*="First"],
.pagination button[aria-label*="Last"] {
    background-color: #cbd5e1;
    border: 1px solid #94a3b8;
    padding: 0.5rem 0.9rem;
    min-width: 42px;
    font-weight: 600;
}

.pagination button[aria-label*="previous"]:hover,
.pagination button[aria-label*="next"]:hover,
.pagination button[aria-label*="Previous"]:hover,
.pagination button[aria-label*="Next"]:hover,
.pagination button[aria-label*="First"]:hover,
.pagination button[aria-label*="Last"]:hover {
    background-color: #94a3b8;
    border-color: #64748b;
}

/* Compact Table Styling */
.compact-table {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.compact-table thead th {
    background-color: #f8f9fa;
    color: #0f172a;
    font-weight: 600;
    padding: 0.75rem;
    border-color: #dee2e6;
    white-space: nowrap;
}

.compact-table tbody td {
    padding: 0.5rem 0.75rem;
    border-color: #dee2e6;
    color: #0f172a;
    background-color: #ffffff;
}

.compact-table tbody tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

/* Remove striping but keep hover */
.compact-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.compact-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}