/* Cardinal Commerce Integration Guide - Stripe-inspired Styling */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "VisaNext", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #2C2C54;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevent horizontal scroll when side menu opens */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Menu */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 100;
    background: #1A1F71;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.menu-toggle i {
    font-size: 24px;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: #2C2C54;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: white;
    z-index: 1001;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu.visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    overflow-y: auto;
    z-index: 1000; /* Ensure menu is above the overlay */
    transition: transform 0.3s ease;
}

.menu-header {
    background: linear-gradient(135deg, #1A1F71, #2C2C54);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-items li a {
    display: flex;
    padding: 12px 20px;
    color: #2C2C54;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.menu-items li a:hover {
    background: #f8f9fb;
    transform: translateX(4px);
    color: #1A1F71;
}

.menu-items li.active {
    background: rgba(255, 205, 0, 0.15); /* Visa Yellow with transparency */
}

.menu-items li.active a {
    color: #1A1F71;
    font-weight: 500;
    border-left: 3px solid #FFCD00; /* Visa Yellow */
    padding-left: 17px; /* Compensate for border */
}

/* Additional menu styling improvements */
.menu-header {
    background: linear-gradient(135deg, #1A1F71, #2C2C54);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.menu-items li i {
    font-size: 1rem;
    opacity: 0.8;
    width: 20px;
    text-align: center;
}

.menu-items li:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.menu-items li.active i {
    opacity: 1;
    color: #1A1F71;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure overlay is below the menu */
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.visible {
    display: block;
}

/* Animation duration adjustments */
.animate__animated {
    --animate-duration: 0.5s;
}

/* Close button animation */
.close-menu {
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Ensure menu items are visible */
.menu-items {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

/* Menu toggle button enhancements */
.menu-toggle {
    transition: all 0.3s ease;
}

.menu-toggle:hover i {
    transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .side-menu {
        width: 280px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1A1F71;
    margin-bottom: 1rem;
    border-bottom: 3px solid #1A1F71;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1A1F71;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2C2C54;
    margin: 1.5rem 0 0.8rem 0;
}

p {
    margin-bottom: 1rem;
    color: #4a4a68;
}

/* Code Blocks */
.code-block {
    background: #fff;
    border: 1px solid #dde4ed;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 31, 113, 0.08);
}

.code-header {
    background: #f1f3f6;
    border-bottom: 1px solid #dde4ed;
    padding: 12px 16px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.code-title {
    font-weight: 600;
    color: #1A1F71;
    font-size: 0.9rem;
}

.copy-button {
    background: #1A1F71;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
}

.copy-button:hover {
    background: #2C2C54;
}

.copy-button.copied {
    background: #F7B600;
    color: #1A1F71;
}

.code-content {
    padding: 16px;
    background: #fff;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #2C2C54;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* JSON Syntax Highlighting - Visa Blue with Stripe-inspired accents */
.json-key {
    color: #1A1F71;
    font-weight: 500;
}

.json-string {
    color: #00a940;
}

.json-number {
    color: #f5a623;
}

.json-boolean {
    color: #2C2C54;
}

.json-null {
    color: #8898aa;
}

/* Cards and Sections - Stripe-inspired */
.section {
    background: white;
    border-radius: 6px;
    border: 1px solid #e6ebf1;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #32325d;
    font-size: 1.5rem;
    font-weight: 600;
}

.section p {
    color: #525f7f;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Buttons - Stripe-inspired */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 8px 8px 8px 0;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: #1A1F71;
    color: white;
    border-color: #1A1F71;
}

.btn-primary:hover {
    background: #2C2C54;
    border-color: #2C2C54;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 31, 113, 0.3);
}

.btn-secondary {
    background: white;
    color: #1A1F71;
    border-color: #e6ebf1;
}

.btn-secondary:hover {
    background: #f6f9fc;
    border-color: #1A1F71;
    color: #2C2C54;
}

.btn-success {
    background: #00d924;
    color: white;
    border-color: #00d924;
}

.btn-success:hover {
    background: #00c122;
    border-color: #00c122;
}

.btn-warning {
    background: #f5a623;
    color: white;
    border-color: #f5a623;
    font-weight: 600;
}

.btn-warning:hover {
    background: #e1941f;
    border-color: #e1941f;
}

/* Status and Alerts */
.status-box {
    padding: 24px;
    border-radius: 8px;
    margin: 2rem auto;
    border: 1px solid;
    max-width: 400px;
    text-align: center;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.status-icon {
    font-size: 1.5rem;
}

.status-text {
    font-size: 1rem;
    font-weight: 500;
}

.status-success {
    background: #f0f8f0;
    border-color: #28a745;
    color: #1e4620;
}

.status-error {
    background: #fef2f2;
    border-color: #dc3545;
    color: #721c24;
}

.status-info {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.status-warning {
    background: #fff9e6;
    border-color: #F7B600;
    color: #8b6914;
}

/* Action sections */
.action-section {
    margin: 24px 0;
    text-align: center;
}

.reference-info {
    margin-top: 12px;
    color: #525f7f;
    font-size: 0.875rem;
}

.reference-info code {
    background: #f6f9fc;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e6ebf1;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    color: #32325d;
}

/* Compatibility Status */
.compatibility-status {
    margin: 24px auto;
    max-width: 500px;
}

.compatibility-box {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 16px 0;
    border: 2px solid;
    text-align: center;
}

.compatibility-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.compatibility-icon {
    font-size: 2rem;
}

.compatibility-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.compatibility-success {
    background: #f0f8f0;
    border-color: #28a745;
    color: #1e4620;
}

.compatibility-success .compatibility-icon {
    color: #28a745;
}

.compatibility-failed {
    background: #fff9f0;
    border-color: #F7B600;
    color: #8b6914;
}

.compatibility-failed .compatibility-icon {
    color: #dc3545;
}

.spinner {
    border: 3px solid #f1f3f6;
    border-top: 3px solid #1A1F71;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Documentation styles */
.docs-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid #1A1F71;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.parameter-table th,
.parameter-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #dde4ed;
}

.parameter-table th {
    background: #f1f3f6;
    font-weight: 600;
    color: #1A1F71;
}

.parameter-table code {
    background: #f1f3f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.85rem;
    color: #2C2C54;
}

/* Interactive Elements for Enhanced User Experience */
.action-section {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.action-section .btn {
    margin: 1rem 0.5rem 0.5rem 0.5rem;
    min-width: 200px;
}

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

.status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-text {
    flex-grow: 1;
}

.results-container {
    margin: 1.5rem 0;
}

/* Enhanced Code Block Styling - Stripe-inspired */
.code-block-container {
    background: #fafbfc;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.code-block-header {
    background: #f6f9fc;
    border-bottom: 1px solid #e6ebf1;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block-title {
    font-weight: 500;
    color: #32325d;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.copy-btn {
    background: #1A1F71;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: #2C2C54;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 31, 113, 0.3);
}

.copy-btn.copied {
    background: #00d924;
}

.copy-btn.copied .copy-text {
    display: none;
}

.copy-btn .copy-success {
    display: none;
}

.copy-btn.copied .copy-success {
    display: inline;
}

.code-block {
    padding: 20px;
    background: #ffffff;
    overflow-x: auto;
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #32325d;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
}

.code-block.enhanced {
    background: #ffffff;
}

/* Header and Footer */
.header {
    background: linear-gradient(135deg, #2C2C54 0%, #1A1F71 50%, #0f1451 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(247, 182, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header h1 {
    color: white;
    border-bottom: 3px solid #F7B600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.subtitle {
    color: #b8bcc8;
    font-size: 1.1rem;
    margin: 0;
}

.footer {
    background: #f1f3f6;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 8px;
    color: #4a4a68;
}

/* Font Awesome Icon Color Classes and Styling */
.text-primary {
    color: #1A1F71 !important;
}

.text-secondary {
    color: #2C2C54 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #F7B600 !important;
}

.text-info {
    color: #3B82C4 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.text-dark {
    color: #2C2C54 !important;
}

.text-gold {
    color: #F7B600 !important;
}

.text-navy {
    color: #1A1F71 !important;
}

/* Icon spacing and sizing */
.fas, .far, .fab {
    margin-right: 0.5rem;
}

.btn .fas, .btn .far, .btn .fab {
    margin-right: 0.4rem;
}

.status-icon .fas, .status-icon .far, .status-icon .fab {
    margin-right: 0;
    font-size: 1.2em;
}

/* Header icon styling */
.header h1 .fas {
    color: #F7B600;
    margin-right: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle .fas {
    color: #b8bcc8;
    margin-right: 0.6rem;
}

/* Section heading icon styling */
h2 .fas, h2 .far, h2 .fab {
    margin-right: 0.7rem;
    font-size: 0.9em;
}

/* Copy button icon transitions */
.copy-btn .fas {
    transition: all 0.2s ease;
    margin-right: 0.3rem;
}

.copy-btn.copied .fa-copy {
    display: none;
}

.copy-btn:not(.copied) .fa-check {
    display: none;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 2rem 1rem;
    }
    
    .action-section {
        padding: 1.5rem;
    }
    
    .action-section .btn {
        min-width: auto;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .code-block-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .status-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Button disabled state */
.btn:disabled {
    background: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled {
    background: #9ca3af;
}

/* Enhanced status animations */
.status-box {
    transition: all 0.3s ease;
}

.status-info .status-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Code highlighting for inline code */
code {
    background: #f1f3f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.85rem;
    color: #1A1F71;
    font-weight: 500;
}

/* Section spacing */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section + .section {
    margin-top: 3rem;
}

/* Responsive Design - Mobile First Approach */

/* Base styles for mobile (default) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Fluid typography using clamp() for better responsiveness */
h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1A1F71;
    margin-bottom: 1rem;
    border-bottom: 3px solid #1A1F71;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #1A1F71;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: #2C2C54;
    margin: 1.5rem 0 0.8rem 0;
}

/* Responsive grid system */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive code blocks */
.code-content {
    padding: 12px;
    overflow-x: auto;
}

.code-content pre {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    white-space: pre;
    overflow-x: auto;
}

/* Responsive tables */
.parameter-table {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.parameter-table thead,
.parameter-table tbody,
.parameter-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Responsive buttons */
.btn {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    width: 100%;
    text-align: center;
    margin: 4px 0;
}

/* Responsive sections */
.section-header {
    padding: clamp(16px, 3vw, 20px) clamp(18px, 4vw, 24px);
}

.section-content {
    padding: clamp(18px, 4vw, 24px);
}

/* Step navigation responsive */
.step-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 20px;
    }
    
    .btn {
        width: auto;
        display: inline-block;
        margin: 8px 8px 8px 0;
    }
    
    .step-navigation {
        flex-direction: row;
        text-align: left;
    }
    
    .parameter-table {
        display: table;
        white-space: normal;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 24px;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-content {
        padding: 16px;
    }
    
    .code-content pre {
        white-space: pre-wrap;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 32px;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Two-column layout for documentation */
    .docs-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .docs-sidebar {
        background: white;
        border-radius: 8px;
        border: 1px solid #dde4ed;
        padding: 1.5rem;
        height: fit-content;
        position: sticky;
        top: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 40px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .code-content pre {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Hide original pre elements when enhanced */
.enhanced .original-pre {
    display: none;
}

/* Step navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dde4ed;
    box-shadow: 0 2px 8px rgba(26, 31, 113, 0.08);
}

.step-info {
    color: #4a4a68;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hidden {
    display: none;
}

/* Visa-specific enhancements */
.visa-brand-accent {
    background: linear-gradient(135deg, #1A1F71 0%, #3B82C4 100%);
    color: white;
}

.visa-gold-accent {
    background: #F7B600;
    color: #1A1F71;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.copy-button:focus {
    outline: 2px solid #F7B600;
    outline-offset: 2px;
}

/* Visa developer portal inspired header */
.page-header {
    background: linear-gradient(135deg, #1A1F71 0%, #2C2C54 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    border-bottom: 3px solid #F7B600;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #b8bcc8;
    font-size: 1.1rem;
}

/* Menu Styles Update for Animations */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: white;
    z-index: 1001;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu.visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    overflow-y: auto;
    z-index: 1000; /* Ensure menu is above the overlay */
    transition: transform 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure overlay is below the menu */
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.visible {
    display: block;
}

/* Animation duration adjustments */
.animate__animated {
    --animate-duration: 0.5s;
}

/* Close button animation */
.close-menu {
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Ensure menu items are visible */
.menu-items {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

/* Menu toggle button enhancements */
.menu-toggle {
    transition: all 0.3s ease;
}

.menu-toggle:hover i {
    transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .side-menu {
        width: 280px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

iframe#pkey-iframe {
    /* Removed z-index for iframe#pkey-iframe */
}
