/* Simple & Elegant CSS Reset & Variables */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
/* Simple Color Palette */
--primary: #3b82f6;
--primary-dark: #2563eb;
--primary-light: #60a5fa;

--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
--info: #06b6d4;

--gray-50: #f9fafb;
--gray-100: #f3f4f6;
--gray-200: #e5e7eb;
--gray-300: #d1d5db;
--gray-400: #9ca3af;
--gray-500: #6b7280;
--gray-600: #4b5563;
--gray-700: #374151;
--gray-800: #1f2937;
--gray-900: #111827;

/* Simple Shadows */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

/* Border Radius */
--radius-sm: 0.375rem;
--radius: 0.5rem;
--radius-md: 0.75rem;
--radius-lg: 1rem;
--radius-xl: 1.5rem;

/* Spacing */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
}

/* Base Styles */
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: var(--gray-900);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Simple Background */
.simple-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
z-index: -1;
}

/* App Container */
.app-container {
max-width: 500px;
margin: 0 auto;
padding: var(--space-4);
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Simple Header */
.simple-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-8);
padding: var(--space-6);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
display: flex;
align-items: center;
gap: var(--space-4);
}

.brand-icon {
width: 50px;
height: 50px;
background: var(--primary);
border-radius: var(--radius-lg);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
box-shadow: var(--shadow);
}

.brand-text h1 {
font-size: 1.5rem;
font-weight: 700;
color: var(--gray-900);
margin-bottom: 0.125rem;
}

.brand-text p {
font-size: 0.875rem;
color: var(--gray-600);
font-weight: 500;
}

.header-actions {
display: flex;
gap: var(--space-3);
}

.nav-btn {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-4);
background: var(--primary);
color: white;
text-decoration: none;
border-radius: var(--radius);
font-weight: 500;
font-size: 0.875rem;
transition: all 0.2s ease;
box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow);
}

/* Main Content */
.app-main {
flex: 1;
}

/* Card */
.card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: var(--radius-xl);
padding: var(--space-8);
margin-bottom: var(--space-6);
box-shadow: var(--shadow-lg);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}

.card:hover {
transform: translateY(-2px);
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Card Header */
.card-header {
display: flex;
align-items: center;
gap: var(--space-4);
margin-bottom: var(--space-8);
}

.card-icon {
width: 60px;
height: 60px;
background: var(--primary);
border-radius: var(--radius-lg);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
box-shadow: var(--shadow);
}

.card-title h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--gray-900);
margin-bottom: 0.25rem;
}

.card-title p {
color: var(--gray-600);
font-size: 0.875rem;
}

/* Form */
.form {
display: flex;
flex-direction: column;
gap: var(--space-8);
}

.form-group {
display: flex;
flex-direction: column;
gap: var(--space-3);
}

.form-label {
display: flex;
align-items: center;
gap: var(--space-2);
font-weight: 600;
color: var(--gray-700);
font-size: 0.875rem;
}

.input-wrapper {
position: relative;
display: flex;
align-items: center;
}

.input-prefix {
position: absolute;
left: var(--space-4);
color: var(--gray-500);
font-weight: 600;
font-size: 1.125rem;
z-index: 1;
}

.form-input {
width: 100%;
padding: var(--space-4) var(--space-4) var(--space-4) 3.5rem;
border: 2px solid var(--gray-200);
border-radius: var(--radius-lg);
font-size: 1.125rem;
font-weight: 600;
transition: all 0.2s ease;
background: var(--gray-50);
}

.form-input:focus {
outline: none;
border-color: var(--primary);
background: white;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
display: flex;
align-items: center;
gap: var(--space-2);
color: var(--gray-500);
font-size: 0.75rem;
}

/* Button */
.btn {
position: relative;
padding: var(--space-4) var(--space-6);
border: none;
border-radius: var(--radius-lg);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: 56px;
}

.btn-primary {
background: var(--primary);
color: white;
box-shadow: var(--shadow);
}

.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.btn-secondary {
background: var(--gray-100);
color: var(--gray-700);
border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
background: var(--gray-200);
border-color: var(--gray-400);
}

.btn-loading {
display: none;
}

.btn.loading .btn-text {
display: none;
}

.btn.loading .btn-loading {
display: flex;
align-items: center;
gap: var(--space-2);
}

/* Status Section */
.status-header {
margin-bottom: var(--space-6);
}

.status-title {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-4);
}

.status-title h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--gray-900);
}

.status-badge {
padding: var(--space-2) var(--space-3);
border-radius: var(--radius);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}

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

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

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

.status-cancelled {
background: var(--gray-500);
color: white;
}

.transaction-info {
background: var(--gray-50);
padding: var(--space-4);
border-radius: var(--radius-lg);
border: 1px solid var(--gray-200);
}

.transaction-label {
font-size: 0.75rem;
color: var(--gray-500);
margin-bottom: var(--space-2);
}

.transaction-id {
display: flex;
align-items: center;
gap: var(--space-2);
}

.transaction-id code {
font-family: "Monaco", "Menlo", monospace;
font-weight: 600;
color: var(--primary);
font-size: 0.875rem;
background: rgba(59, 130, 246, 0.1);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
}

.copy-btn {
background: none;
border: none;
color: var(--gray-400);
cursor: pointer;
padding: var(--space-1);
border-radius: var(--radius-sm);
transition: color 0.2s ease;
}

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

/* Payment Info */
.payment-info {
display: flex;
flex-direction: column;
gap: var(--space-4);
margin-bottom: var(--space-6);
}

.info-item {
display: flex;
align-items: center;
gap: var(--space-4);
padding: var(--space-4);
background: var(--gray-50);
border-radius: var(--radius-lg);
border: 1px solid var(--gray-200);
}

.info-icon {
width: 40px;
height: 40px;
background: var(--primary);
border-radius: var(--radius);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
}

.info-content {
display: flex;
flex-direction: column;
}

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

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

.adjustment-info {
background: rgba(59, 130, 246, 0.05);
border-color: rgba(59, 130, 246, 0.2);
}

.adjustment-info .info-icon {
background: var(--info);
}

/* Countdown Section */
.countdown-section {
background: rgba(245, 158, 11, 0.05);
padding: var(--space-6);
border-radius: var(--radius-xl);
border: 1px solid rgba(245, 158, 11, 0.2);
margin-bottom: var(--space-6);
text-align: center;
}

.countdown-header {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
color: var(--warning);
font-weight: 600;
margin-bottom: var(--space-4);
}

.countdown-display {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-4);
margin-bottom: var(--space-4);
}

.time-unit {
background: white;
padding: var(--space-4);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
border: 1px solid var(--gray-200);
min-width: 80px;
}

.time-value {
display: block;
font-size: 2rem;
font-weight: 800;
color: var(--warning);
font-family: "Monaco", "Menlo", monospace;
line-height: 1;
}

.time-label {
font-size: 0.75rem;
color: var(--gray-600);
font-weight: 500;
margin-top: var(--space-1);
}

.time-separator {
font-size: 2rem;
font-weight: 800;
color: var(--warning);
}

.countdown-progress {
height: 6px;
background: rgba(245, 158, 11, 0.2);
border-radius: var(--radius);
overflow: hidden;
}

.progress-fill {
height: 100%;
background: var(--warning);
border-radius: var(--radius);
transition: width 1s linear;
width: 100%;
}

/* QRIS Section */
.qris-section {
background: rgba(59, 130, 246, 0.05);
padding: var(--space-6);
border-radius: var(--radius-xl);
border: 1px solid rgba(59, 130, 246, 0.2);
margin-bottom: var(--space-6);
text-align: center;
}

.qris-header h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary);
margin-bottom: var(--space-2);
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
}

.qris-header p {
color: var(--gray-600);
font-size: 0.875rem;
margin-bottom: var(--space-6);
}

.qris-container {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-6);
}

.qris-frame {
position: relative;
width: 280px;
height: 280px;
background: white;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
border: 2px solid var(--primary);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.qris-loading {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
color: var(--gray-500);
}

.qr-skeleton {
width: 240px;
height: 240px;
background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
background-size: 200% 100%;
border-radius: var(--radius-lg);
animation: shimmer 2s infinite;
}

.qris-image {
width: 260px;
height: 260px;
border-radius: var(--radius-lg);
object-fit: contain;
}

.supported-apps {
display: flex;
flex-direction: column;
gap: var(--space-3);
}

.apps-title {
font-size: 0.875rem;
color: var(--gray-600);
font-weight: 600;
}

.apps-list {
display: flex;
gap: var(--space-3);
flex-wrap: wrap;
justify-content: center;
}

.app-item {
background: white;
padding: var(--space-2) var(--space-3);
border-radius: var(--radius);
font-size: 0.75rem;
font-weight: 500;
color: var(--gray-700);
border: 1px solid var(--gray-200);
box-shadow: var(--shadow-sm);
}

/* Success Section */
.success-section {
background: rgba(16, 185, 129, 0.05);
padding: var(--space-8);
border-radius: var(--radius-xl);
border: 1px solid rgba(16, 185, 129, 0.2);
margin-bottom: var(--space-6);
text-align: center;
}

.success-icon {
width: 80px;
height: 80px;
background: var(--success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto var(--space-6);
color: white;
font-size: 2.5rem;
}

.success-content h3 {
font-size: 1.5rem;
font-weight: 700;
color: var(--success);
margin-bottom: var(--space-2);
}

.success-content p {
color: var(--gray-600);
margin-bottom: var(--space-6);
}

.invoice-details {
background: white;
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--gray-200);
box-shadow: var(--shadow-sm);
}

.invoice-header {
background: var(--gray-50);
padding: var(--space-4);
border-bottom: 1px solid var(--gray-200);
}

.invoice-header h4 {
color: var(--gray-900);
font-weight: 600;
display: flex;
align-items: center;
gap: var(--space-2);
}

.invoice-body {
padding: var(--space-4);
}

.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-2) 0;
border-bottom: 1px solid var(--gray-100);
font-size: 0.875rem;
}

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

.detail-label {
color: var(--gray-600);
}

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

.success-status {
color: var(--success);
display: flex;
align-items: center;
gap: var(--space-1);
}

/* Message Section */
.message-section {
background: rgba(239, 68, 68, 0.05);
border: 1px solid rgba(239, 68, 68, 0.2);
padding: var(--space-6);
border-radius: var(--radius-xl);
margin-bottom: var(--space-6);
display: flex;
align-items: center;
gap: var(--space-4);
}

.message-icon {
width: 50px;
height: 50px;
background: var(--error);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.25rem;
flex-shrink: 0;
}

.message-content h4 {
font-size: 1rem;
font-weight: 600;
color: var(--error);
margin-bottom: 0.25rem;
}

.message-content p {
color: var(--gray-600);
font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
display: flex;
gap: var(--space-4);
}

.action-buttons .btn {
flex: 1;
}

/* Loading Card */
.loading-card {
text-align: center;
padding: var(--space-12);
}

.loading-content {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-4);
}

.loading-spinner {
font-size: 2rem;
color: var(--primary);
}

.loading-content h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--gray-900);
}

.loading-content p {
color: var(--gray-600);
}

/* Error Card */
.error-card {
text-align: center;
padding: var(--space-12);
}

.error-content {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-4);
}

.error-icon {
width: 80px;
height: 80px;
background: var(--error);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2.5rem;
}

.error-content h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--gray-900);
}

.error-content p {
color: var(--gray-600);
margin-bottom: var(--space-4);
}

/* Simple Footer */
.simple-footer {
margin-top: auto;
padding-top: var(--space-8);
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-6);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand {
color: var(--gray-600);
font-size: 0.75rem;
}

.footer-brand a {
color: var(--gray-900);
text-decoration: none;
font-weight: 600;
}

.footer-link {
display: flex;
align-items: center;
gap: var(--space-2);
color: var(--gray-600);
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: color 0.2s ease;
}

.footer-link:hover {
color: var(--gray-900);
}

/* Toast Container */
.toast-container {
position: fixed;
top: var(--space-4);
right: var(--space-4);
z-index: 1000;
display: flex;
flex-direction: column;
gap: var(--space-2);
}

.toast {
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
border: 1px solid var(--gray-200);
padding: var(--space-4);
display: flex;
align-items: center;
gap: var(--space-3);
min-width: 300px;
transform: translateX(100%);
transition: transform 0.3s ease;
}

.toast.show {
transform: translateX(0);
}

.toast-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
flex-shrink: 0;
}

.toast-success .toast-icon {
background: var(--success);
}

.toast-error .toast-icon {
background: var(--error);
}

.toast-warning .toast-icon {
background: var(--warning);
}

.toast-info .toast-icon {
background: var(--info);
}

.toast-close {
background: none;
border: none;
color: var(--gray-400);
cursor: pointer;
padding: var(--space-1);
border-radius: var(--radius-sm);
transition: color 0.2s ease;
}

.toast-close:hover {
color: var(--gray-600);
}

/* Animations */
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}

/* Utility Classes */
.hidden {
display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
.app-container {
padding: var(--space-3);
}

.card {
padding: var(--space-6);
}

.simple-header {
flex-direction: column;
gap: var(--space-4);
text-align: center;
}

.footer-content {
flex-direction: column;
gap: var(--space-3);
text-align: center;
}

.action-buttons {
flex-direction: column;
}

.toast-container {
top: var(--space-3);
right: var(--space-3);
left: var(--space-3);
}

.toast {
min-width: auto;
}

.qris-frame {
width: 260px;
height: 260px;
}

.qris-image {
width: 240px;
height: 240px;
}

.qr-skeleton {
width: 220px;
height: 220px;
}

.countdown-display {
gap: var(--space-2);
}

.time-unit {
min-width: 60px;
padding: var(--space-3);
}

.time-value {
font-size: 1.5rem;
}

.apps-list {
flex-direction: column;
align-items: center;
}
}

/* Docs Specific Styles */
.docs-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--gray-200);
padding: var(--space-4) 0;
}

.docs-nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--space-4);
display: flex;
justify-content: space-between;
align-items: center;
}

.docs-brand {
display: flex;
align-items: center;
gap: var(--space-3);
font-size: 1.25rem;
font-weight: 700;
color: var(--gray-900);
text-decoration: none;
}

.docs-brand i {
width: 40px;
height: 40px;
background: var(--primary);
border-radius: var(--radius);
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.docs-nav-links {
display: flex;
gap: var(--space-4);
}

.docs-container {
max-width: 1200px;
margin: 0 auto;
padding: 100px var(--space-4) var(--space-8);
}

.docs-hero {
text-align: center;
margin-bottom: var(--space-12);
}

.docs-hero-icon {
width: 100px;
height: 100px;
background: var(--primary);
border-radius: var(--radius-xl);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto var(--space-6);
font-size: 2.5rem;
color: white;
box-shadow: var(--shadow-lg);
}

.docs-hero h1 {
font-size: 3rem;
font-weight: 800;
color: var(--gray-900);
margin-bottom: var(--space-4);
}

.docs-hero p {
font-size: 1.25rem;
color: var(--gray-600);
margin-bottom: var(--space-8);
}

.docs-badges {
display: flex;
justify-content: center;
gap: var(--space-4);
flex-wrap: wrap;
}

.docs-badge {
background: white;
padding: var(--space-2) var(--space-4);
border-radius: var(--radius);
font-weight: 600;
font-size: 0.875rem;
display: flex;
align-items: center;
gap: var(--space-2);
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
}

.badge-rest {
color: var(--primary);
}
.badge-realtime {
color: var(--success);
}
.badge-secure {
color: var(--warning);
}

.docs-grid {
display: grid;
gap: var(--space-8);
}

.endpoint-card {
background: white;
border-radius: var(--radius-xl);
padding: var(--space-8);
box-shadow: var(--shadow-lg);
border: 1px solid var(--gray-200);
transition: all 0.3s ease;
}

.endpoint-card:hover {
transform: translateY(-2px);
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.endpoint-header {
display: flex;
align-items: center;
gap: var(--space-4);
margin-bottom: var(--space-6);
padding-bottom: var(--space-4);
border-bottom: 1px solid var(--gray-200);
}

.method-badge {
padding: var(--space-2) var(--space-4);
border-radius: var(--radius);
font-weight: 700;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.method-post {
background: var(--success);
color: white;
}

.method-get {
background: var(--primary);
color: white;
}

.endpoint-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--gray-900);
}

.endpoint-url {
font-family: "Monaco", "Menlo", monospace;
background: var(--gray-50);
padding: var(--space-4);
border-radius: var(--radius);
margin-bottom: var(--space-6);
font-weight: 600;
color: var(--primary);
border-left: 4px solid var(--primary);
border: 1px solid var(--gray-200);
}

.section {
margin-bottom: var(--space-6);
}

.section-title {
font-size: 1.125rem;
font-weight: 700;
color: var(--gray-900);
margin-bottom: var(--space-4);
display: flex;
align-items: center;
gap: var(--space-2);
}

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

.code-block {
background: var(--gray-900);
color: var(--gray-100);
padding: var(--space-4);
border-radius: var(--radius);
overflow-x: auto;
font-family: "Monaco", "Menlo", monospace;
font-size: 0.875rem;
line-height: 1.6;
margin-bottom: var(--space-4);
position: relative;
}

.copy-code-btn {
position: absolute;
top: var(--space-3);
right: var(--space-3);
background: var(--gray-700);
border: none;
color: var(--gray-300);
padding: var(--space-2);
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 0.75rem;
transition: all 0.2s ease;
}

.copy-code-btn:hover {
background: var(--gray-600);
color: white;
}

.param-table {
width: 100%;
border-collapse: collapse;
margin-bottom: var(--space-4);
background: white;
border-radius: var(--radius);
overflow: hidden;
border: 1px solid var(--gray-200);
}

.param-table th,
.param-table td {
padding: var(--space-3) var(--space-4);
text-align: left;
border-bottom: 1px solid var(--gray-200);
}

.param-table th {
background: var(--gray-50);
font-weight: 700;
color: var(--gray-900);
font-size: 0.875rem;
}

.param-table td {
color: var(--gray-700);
}

.param-table code {
background: rgba(59, 130, 246, 0.1);
color: var(--primary);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
font-family: "Monaco", "Menlo", monospace;
font-size: 0.8rem;
}

.param-required {
color: var(--error);
font-weight: 600;
}

.param-optional {
color: var(--success);
font-weight: 600;
}

.response-status {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius);
font-weight: 600;
font-size: 0.875rem;
margin-bottom: var(--space-4);
}

.status-200 {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-400 {
background: rgba(239, 68, 68, 0.1);
color: var(--error);
border: 1px solid rgba(239, 68, 68, 0.2);
}

.docs-footer {
margin-top: var(--space-12);
padding: var(--space-8);
text-align: center;
background: white;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
border: 1px solid var(--gray-200);
}

.docs-footer-content {
color: var(--gray-600);
font-size: 0.875rem;
}

.docs-footer-content a {
color: var(--gray-900);
text-decoration: none;
font-weight: 600;
}

.docs-footer-links {
display: flex;
justify-content: center;
gap: var(--space-6);
margin-top: var(--space-4);
}

.docs-footer-link {
color: var(--gray-600);
text-decoration: none;
display: flex;
align-items: center;
gap: var(--space-2);
transition: color 0.2s ease;
}

.docs-footer-link:hover {
color: var(--gray-900);
}

@media (max-width: 768px) {
.docs-container {
padding: 80px var(--space-3) var(--space-6);
}

.docs-hero h1 {
font-size: 2rem;
}

.docs-hero p {
font-size: 1rem;
}

.docs-nav-container {
padding: 0 var(--space-3);
}

.docs-nav-links {
gap: var(--space-2);
}

.nav-btn {
padding: var(--space-2) var(--space-3);
font-size: 0.875rem;
}

.endpoint-card {
padding: var(--space-6);
}

.endpoint-header {
flex-direction: column;
align-items: flex-start;
gap: var(--space-3);
}

.docs-badges {
flex-direction: column;
align-items: center;
}

.param-table {
font-size: 0.8rem;
}

.param-table th,
.param-table td {
padding: var(--space-2) var(--space-3);
}
}

/* Dark Mode Variables */
[data-theme="dark"] {
--primary: #60a5fa;
--primary-dark: #3b82f6;
--primary-light: #93c5fd;

--gray-50: #1f2937;
--gray-100: #111827;
--gray-200: #374151;
--gray-300: #4b5563;
--gray-400: #6b7280;
--gray-500: #9ca3af;
--gray-600: #d1d5db;
--gray-700: #e5e7eb;
--gray-800: #f3f4f6;
--gray-900: #f9fafb;
}

/* Theme Toggle Button */
.theme-toggle {
background: var(--gray-200);
border: none;
border-radius: var(--radius);
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}

.theme-toggle i {
position: absolute;
transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
opacity: 0;
transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
opacity: 0;
transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
opacity: 1;
transform: rotate(0);
}

/* Smooth transitions for theme change */
body, .card, .simple-header, .simple-footer {
transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 640px) {
.theme-toggle {
margin-right: auto;
margin-left: auto;
}
}
