/* Modern API Documentation CSS
   Featuring:
   - Enhanced responsiveness
   - Visual improvements
   - Better mobile support
   - Modern CSS features
*/

:root {
    /* Colors */
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc; /* Light gray for section backgrounds */
    --sidebar-bg: #2d3748; /* Darker charcoal for sidebar for contrast */
    --sidebar-text-color: #e2e8f0; /* Light gray text for sidebar */
    
    /* ZenoPay Brand Colors */
    --zenopay-red: #dc3546; /* ZenoPay primary red */
    --zenopay-dark-red: #a82b3a; /* Darker red for hover states, accents */
    
    /* Derived from ZenoPay Red */
    --sidebar-link-hover-bg: #5f3e41; /* Darker, slightly reddish tint for sidebar link hover */
    --sidebar-link-active-bg: var(--zenopay-red); /* Active link highlight */
    --sidebar-header-color: var(--zenopay-red); /* ZenoPay Red for sidebar header text */
    --text-color: #2d3748; /* Dark charcoal text for main content */
    --heading-color: #1a202c; /* Even darker heading text */
    --link-color: var(--zenopay-red); /* ZenoPay Red for general links */
    --link-hover-color: var(--zenopay-dark-red);
    --border-color: #e2e8f0; /* Light border */
    --code-bg: #2d3748; /* Dark background for inline code */
    --code-block-bg: #1f2937; /* Dark background for code blocks (slightly lighter than sidebar for distinction) */
    
    /* HTTP Method Badges */
    --badge-post-bg: var(--zenopay-red); /* ZenoPay Red for POST */
    --badge-get-bg: #3182ce; /* Standard blue for GET for contrast */
    --badge-put-bg: #d69e2e;
    --badge-delete-bg: #e53e3e;
    --badge-patch-bg: #805ad5;

    /* Alert Colors (based on ZenoPay Red) */
    --alert-info-bg: #fdf3f3; /* Very light pink background */
    --alert-info-border: #f8d7da; /* Light pink border */
    --alert-info-text: #721c24; /* Dark red text */

    --alert-warning-bg: #fffaf0;
    --alert-warning-border: #feebc8;
    --alert-warning-text: #744210; /* Keep yellow-orange for warnings */

    --copy-button-bg: #4a5568; /* Grey for copy button */
    --copy-button-hover-bg: #718096;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --base-font-size: 16px;
    --line-height: 1.7;
    
    /* Layout */
    --sidebar-width: 250px;
    --header-height-mobile: 66px;
    --container-max-width: 1200px;
    --content-width: calc(100% - var(--sidebar-width));
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin: 0; /* Ensure no default margins */
}

/* Main Layout Container */
.container {
    display: flex;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform var(--transition-speed) ease-in-out;
    overscroll-behavior: contain; /* Prevents scroll chaining */
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-header h2 {
    color: var(--sidebar-header-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0 !important;
}

.sidebar-header h2::after {
    content: none;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.sidebar-nav {
    list-style-type: none;
    padding: 1rem 0;
}

.sidebar-nav li a {
    display: block;
    color: var(--sidebar-text-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
}

.sidebar-nav li a:hover {
    background-color: var(--sidebar-link-hover-bg);
    color: #fff;
    border-left-color: var(--zenopay-red);
}

.sidebar-nav li a.active {
    background-color: rgba(var(--zenopay-red), 0.15); /* Light red tint for active */
    color: #fff;
    font-weight: 500;
    border-left-color: var(--zenopay-red);
}

.sidebar-nav .nav-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    opacity: 0.8;
}

.category-title {
    color: #9da7b3; /* Slightly lighter gray for categories in dark sidebar */
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 1.5rem 0 0.5rem 1.5rem;
    letter-spacing: 0.5px;
}

/* Content Area */
.content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--primary-bg);
    transition: margin-left var(--transition-speed) ease-in-out;
    min-width: 0;
    width: var(--content-width);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem 1.5rem;
    padding-bottom: 2rem;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sticky header and properly fixed sidebar */
.content-header {
    display: none; /* Hidden by default, shown on mobile */
    background-color: var(--sidebar-bg); /* Match sidebar background */
    color: white;
    padding: 0 1.25rem;
    height: var(--header-height-mobile);
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.content-header h1 {
    margin: 0 auto 0 0.625rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sidebar-header-color); /* ZenoPay Red */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0 !important;
}

.content-header h1::after {
    content: none;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--zenopay-red); /* ZenoPay Red for menu toggle icon */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.925rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-toggle-text {
    display: none;
}

/* Content Sections & Typography */
section {
    padding: 2rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    margin-top: 1rem;
    padding-bottom: 0.75rem;
    position: relative;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: var(--link-color); /* ZenoPay Red */
    border-radius: 2px;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 60px; /* Aligned slightly right for better flow with badge */
    width: 120px;
    height: 3px;
    background: var(--link-color); /* ZenoPay Red */
    opacity: 0.6;
    border-radius: 1.5px;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    color: var(--link-color);
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--link-hover-color);
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code Blocks and Syntax Highlighting */
.code-block-container {
    position: relative;
    margin: 1.5rem -0.25rem 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

pre {
    background-color: var(--code-block-bg) !important;
    border-radius: 0.5rem;
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

pre code, code.path {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

code {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--link-color);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

code.path {
    background-color: #edf2f7;
    color: #2d3748;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Copy Button for Code Blocks */
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--copy-button-bg);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.code-block-container:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background-color: var(--copy-button-hover-bg);
    transform: translateY(-1px);
}

.copy-button.copied {
    background-color: var(--badge-post-bg); /* Use primary red for 'Copied!' status */
}

.copy-button::before {
    content: "Copy";
}

.copy-button.copied::before {
    content: "Copied!";
}

/* Badges (HTTP Methods) */
.badge {
    color: white;
    padding: 0.25em 0.75em;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    height: 1.5rem;
    text-transform: uppercase;
}

.badge.post {
    background-color: var(--badge-post-bg);
}

.badge.get {
    background-color: var(--badge-get-bg);
}

.badge.put {
    background-color: var(--badge-put-bg);
}

.badge.delete {
    background-color: var(--badge-delete-bg);
}

.badge.patch {
    background-color: var(--badge-patch-bg);
}

/* Endpoint header styling */
.endpoint-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    background-color: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: white;
}

th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: var(--secondary-bg);
    font-weight: 600;
    color: var(--heading-color);
    position: sticky;
    top: 0;
    box-shadow: 0 1px 0 var(--border-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

td code {
    background-color: #eef2ff;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.required {
    color: var(--zenopay-red); /* Use ZenoPay Red for required indicators */
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid transparent;
    border-radius: 0.25rem;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.alert-info {
    color: var(--alert-info-text);
    background-color: var(--alert-info-bg);
    border-color: var(--alert-info-border);
}

.alert-warning {
    color: var(--alert-warning-text);
    background-color: var(--alert-warning-bg);
    border-color: var(--alert-warning-border);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #64748b;
    box-sizing: border-box;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--link-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    :root {
        --container-max-width: 100%;
    }
    .content-inner {
        max-width: 100%;
    }
}

/* Animation for menu toggle */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sidebar.active {
    animation: fadeIn 0.3s ease-out;
}

/* Fix for mobile navigation */
@media (max-width: 768px) {
    :root {
        --base-font-size: 15px;
    }
    
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 1rem 1rem;
        padding-top: var(--header-height-mobile);
    }
    
    .content-header {
        display: flex; /* Show the header on mobile */
        padding: 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .endpoint-url {
        margin-left: 0;
        width: 100%;
    }
    
    .table-container,
    .code-block-container {
        margin: 1.5rem 0;
        width: 100%;
    }
    
    /* Prevent body scrolling when sidebar is open */
    body.sidebar-active {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    :root {
        --base-font-size: 14px;
    }
    
    .content-inner {
        padding: 0 1.5rem;
    }
    
    .content {
        padding: 1.5rem 1.25rem;
        padding-top: calc(var(--header-height-mobile) + 0.5rem);
    }
    
    section {
        padding: 1.25rem 0;
    }
    
    pre {
        padding: 1rem;
    }
    
    .table-container {
        margin: 1.25rem -1.5rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
    
    table {
        border-radius: 0;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
h2 {
        font-size: 1.35rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #111827;
        --secondary-bg: #1f2937;
        --text-color: #e5e7eb;
        --heading-color: #f3f4f6;
        --border-color: #374151;
        --link-color: var(--zenopay-red);
        --link-hover-color: var(--zenopay-dark-red);
        --copy-button-bg: #4b5563;
        --copy-button-hover-bg: #6b7280;

        --sidebar-bg: #1e2531; /* Slightly different dark background for sidebar */
        --sidebar-link-hover-bg: #2d3e42; /* Darker green-blue for contrast */
        --sidebar-link-active-bg: var(--zenopay-red); /* Keep red for active in dark mode */
        --sidebar-header-color: var(--zenopay-red); /* Keep red for header */
        
        --code-block-bg: #1b212c;
        
        /* Dark mode alerts, adjusted for red theme */
        --alert-info-bg: #280b0e;
        --alert-info-border: #6c0c17;
        --alert-info-text: #f5c6cb;
    }
    
    code {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--link-color);
    }
    
    code.path {
        background-color: rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }
    
    .endpoint-url {
        background-color: #374151;
    }
    
    td code {
        background-color: #2d3748;
    }
    
    .alert {
        background-color: var(--secondary-bg);
    }
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Accessibility: Focus Visible */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

.copy-button:focus-visible {
    outline: 2px solid var(--copy-button-hover-bg);
    opacity: 1;
}

/************************/
/************************/

.author-note {
    padding: 0.5rem;
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--zenopay-red);
    /* Prevent right-click */
pointer-events: none;
}

.author-title {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.author-note ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.author-note li {
    margin-bottom: 0.3rem;
}

/* Payment Form Styles */
.payment-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-form {
    padding: 2rem;
}

.payment-header {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-bottom: 2px solid var(--border-color);
    border-radius: 4px;
}

.zeno-logo {
    max-width: 45px;
    margin-bottom: -2rem;
    /* Prevent right-click */
    pointer-events: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.payment-methods {
    margin: 1.5rem 0;
    text-align: center;
}

.payment-methods img {
    max-width: 45%;
    height: auto;
    /* Prevent right-click */
    pointer-events: none;
}

.pay-now-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--zenopay-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pay-now-btn:hover {
    background-color: var(--zenopay-dark-red);
}

.btn-text {
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.clear-form-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: transparent;
    color: var(--zenopay-red);
    border: 1px solid var(--zenopay-red);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-form-btn:hover {
    background-color: rgba(220, 53, 70, 0.1);
}

/* Dark mode adjustment */
@media (prefers-color-scheme: dark) {
    .clear-form-btn {
        color: var(--zenopay-red);
        border-color: var(--zenopay-red);
    }
    
    .clear-form-btn:hover {
        background-color: rgba(220, 53, 70, 0.2);
    }
}

.hidden {
    display: none !important;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.simulated-ussd {
    text-align: center;
}

.ussd-message {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.timer {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--zenopay-red);
}

#ussd-pin {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.2em;
}

#submit-pin, #cancel-payment {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#submit-pin {
    background-color: var(--zenopay-red);
    color: white;
}

#submit-pin:hover {
    background-color: var(--zenopay-dark-red);
}

.cancel-btn {
    background-color: transparent;
    color: var(--zenopay-red);
    border: 1px solid var(--zenopay-red) !important;
}

/* Payment Status Styles */
.payment-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.status-icon.success {
    background-color: #d4edda;
    color: #155724;
}

.status-icon.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.status-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.status-actions button:first-child {
    background-color: var(--zenopay-red);
    color: white;
}

.status-actions button:last-child {
    background-color: #f1f5f9;
}

/* Webhook Simulation */
.webhook-simulation {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
}

.webhook-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--zenopay-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--zenopay-dark-red);
}

.webhook-data {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
}

.webhook-data pre {
    background-color: #f8f9fa !important;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .payment-form-container,
    .modal-content,
    .payment-status,
    .webhook-data {
        background-color: var(--secondary-bg);
    }
    
    .form-group input,
    #ussd-pin {
        background-color: #1f2937;
        border-color: #374151;
        color: white;
    }
    
    .webhook-data pre {
        background-color: #1f2937 !important;
    }
}
