:root {
    --primary-color: #8B5FBF;
    --primary-dark: #6A4A9C;
    --primary-light: #9D7BCF;
    --primary-glow: rgba(139, 95, 191, 0.3);
    --dark-bg: #000000;
    --dark-secondary: #1A1A1A;
    --dark-tertiary: #2D2D2D;
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --text-muted: #B0B0B0;
    --border-color: #333333;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.3;
}

.bg-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.bg-particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.bg-particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.bg-particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.bg-particle:nth-child(5) { left: 50%; animation-delay: 8s; }

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Enhanced Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--dark-secondary) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-right: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    width: 280px;
    transform: translateX(-100%);
    backdrop-filter: blur(10px);
}

.sidebar.active {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar .navbar-brand {
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-text {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--primary-color); }
    to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-light); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.sidebar .nav-item {
    margin-bottom: 0.5rem;
    position: relative;
}

.sidebar .nav-link {
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    transition: left 0.5s;
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    left: 100%;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(139, 95, 191, 0.4);
}

.sidebar .dropdown-menu {
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    margin-left: 1rem;
    backdrop-filter: blur(10px);
}

.sidebar .dropdown-item {
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.sidebar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding-left: 2rem;
}

/* Enhanced Content Area */
.content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background-color: transparent;
    width: 100%;
    position: relative;
}

.content.shifted {
    margin-left: 280px;
    width: calc(100% - 280px);
}

/* Enhanced Top Navbar */
.top-navbar {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.page-title {
    color: var(--text-white);
    margin: 0;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0.5rem auto 0;
    border-radius: 2px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { width: 0; opacity: 0; }
    to { width: 50px; opacity: 1; }
}

.sidebar-toggler {
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.toggle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-glow);
    border-radius: 50%;
    transition: all 0.3s;
}

.sidebar-toggler:hover .toggle-circle {
    width: 50px;
    height: 50px;
}

.sidebar-toggler:hover {
    transform: rotate(90deg);
}

/* Enhanced Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--dark-secondary) 0%, rgba(42, 42, 42, 0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 95, 191, 0.1), transparent);
    transition: left 0.6s;
}

.stats-card:hover::before {
    left: 100%;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 95, 191, 0.3);
    border-color: var(--primary-color);
}

.stats-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.stats-icon {
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-glow);
    border-radius: 50%;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { width: 0; height: 0; opacity: 0.8; }
    100% { width: 80px; height: 80px; opacity: 0; }
}

.stats-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--text-white), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-progress {
    width: 100%;
    height: 4px;
    background: var(--dark-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 2s ease-in-out;
    border-radius: 2px;
}

/* Welcome Card Enhancements */
.welcome-card {
    position: relative;
    overflow: hidden;
}

.welcome-header {
    position: relative;
    margin-bottom: 2rem;
}

.welcome-title {
    position: relative;
    z-index: 2;
}

.welcome-orb {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 6s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-glow:hover::before {
    left: 100%;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 95, 191, 0.4);
}

/* Quick Stats */
.quick-stat {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.quick-stat:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.quick-stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-stat-content {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.loading-text span {
    display: inline-block;
    animation: wave 1.5s infinite;
}

.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.footer a:hover::after {
    width: 100%;
}

.footer a:hover {
    color: var(--primary-light);
}

/* Responsive Design */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    .sidebar-toggler {
        display: none;
    }
}

@media (max-width: 991px) {
    .content.shifted {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-card {
        margin-bottom: 1.5rem;
    }
    
    .top-navbar {
        padding: 1rem;
    }
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
}

/* Animation classes */
.animate__animated {
    opacity: 0;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Dark Theme Table Styles */
.api-table {
    color: var(--text-light);
    background-color: var(--dark-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
}

.api-table th {
    background-color: var(--dark-tertiary);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.api-table td {
    background-color: var(--dark-secondary);
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.api-table tbody tr {
    background-color: var(--dark-secondary);
    transition: all 0.3s ease;
}

.api-table tbody tr:hover {
    background-color: rgba(139, 95, 191, 0.1);
    transform: translateX(5px);
}

.api-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ensure table responsive container has dark background */
.table-responsive {
    border-radius: 0.75rem;
    background-color: var(--dark-secondary);
}

/* Specific styles for table elements */
.endpoint-path code {
    background: rgba(139, 95, 191, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--primary-light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 95, 191, 0.3);
}

.example-url a {
    color: var(--info-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.example-url a:hover {
    color: var(--text-white) !important;
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Button styles for dark theme */
.btn-group-sm .btn {
    border-radius: 0.5rem;
    margin: 0 2px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
    transform: translateY(-1px);
}

.btn-outline-info {
    color: var(--info-color);
    border-color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
    transform: translateY(-1px);
}

/* Loading state for table */
.api-table .spinner-border {
    color: var(--primary-color);
}

/* No data and error states */
.api-table tbody tr td.text-center {
    background-color: var(--dark-secondary);
}

.api-table tbody tr td.text-center .text-muted {
    color: var(--text-muted) !important;
}

/* Ensure all text in table has proper contrast */
.api-table strong {
    color: var(--text-white);
}

.api-table .text-muted {
    color: var(--text-muted) !important;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .api-table {
        font-size: 0.9rem;
    }
    
    .api-table th,
    .api-table td {
        padding: 1rem 0.75rem;
    }
    
    .endpoint-path code {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Additional dark theme overrides for Bootstrap */
.table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-striped-color: var(--text-light);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-active-color: var(--text-light);
    --bs-table-hover-bg: rgba(139, 95, 191, 0.1);
    --bs-table-hover-color: var(--text-light);
    color: var(--text-light);
    border-color: var(--border-color);
}

/* Remove any default Bootstrap light styles */
.table-light {
    --bs-table-bg: var(--dark-secondary);
    --bs-table-striped-bg: var(--dark-tertiary);
    --bs-table-striped-color: var(--text-light);
    --bs-table-active-bg: var(--primary-color);
    --bs-table-active-color: var(--text-white);
    --bs-table-hover-bg: rgba(139, 95, 191, 0.1);
    --bs-table-hover-color: var(--text-light);
    color: var(--text-light);
    border-color: var(--border-color);
}

/* Method badges */
.method-badge {
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-get {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.method-post {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.method-put {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.method-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Large button group */
.btn-group-lg .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0 4px;
    min-width: 100px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-group-lg .btn i {
    font-size: 1.1rem;
}

/* Button hover effects */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 95, 191, 0.3);
}

.btn-outline-success {
    border-color: #22c55e;
    color: #22c55e;
    background: transparent;
}

.btn-outline-success:hover {
    background-color: #22c55e;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-outline-info {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: transparent;
}

.btn-outline-info:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Response modal */
.modal-content {
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-tertiary);
}

.modal-title {
    color: var(--text-white);
}

.modal-body {
    color: var(--text-light);
}

.btn-close {
    filter: invert(1);
}

.response-content pre {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--text-light);
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

.response-content code {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

/* Dark table enhancements */
.api-table th {
    background: var(--dark-tertiary);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.2rem 0.75rem;
    font-size: 1.1rem;
}

.api-table td {
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    padding: 1.2rem 0.75rem;
}

.api-table tbody tr:hover {
    background: rgba(139, 95, 191, 0.05);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Title styling */
.api-table td strong {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.api-table td .text-light {
    font-size: 1rem;
    line-height: 1.5;
    color: #b0b0b0 !important;
}

/* Hide labels on desktop */
.api-table td::before {
    display: none;
}

/* Button group container */
.btn-group {
    display: flex;
    gap: 8px;
}

/* Improved responsive design with better spacing */
@media (max-width: 1200px) {
    .api-table th,
    .api-table td {
        padding: 1rem 0.6rem;
    }
    
    .btn-group-lg .btn {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        min-width: 90px;
    }
}

@media (max-width: 992px) {
    .api-table th,
    .api-table td {
        padding: 0.9rem 0.5rem;
    }
    
    .api-table th {
        font-size: 1rem;
    }
    
    .api-table td strong {
        font-size: 1.1rem;
    }
    
    .api-table td .text-light {
        font-size: 0.95rem;
    }
    
    .btn-group-lg .btn {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
        min-width: 85px;
    }
    
    .btn-group-lg .btn i {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
}

@media (max-width: 768px) {
    /* Stack table columns vertically on mobile */
    .api-table thead {
        display: none;
    }
    
    .api-table, 
    .api-table tbody, 
    .api-table tr, 
    .api-table td {
        display: block;
        width: 100%;
    }
    
    .api-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        overflow: hidden;
        background: var(--dark-secondary);
    }
    
    .api-table td {
        padding: 1rem;
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        text-align: left;
    }
    
    .api-table td:last-child {
        border-bottom: none;
    }
    
    /* Only show labels on mobile */
    .api-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .api-table td strong {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .api-table td .text-light {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Stack buttons vertically */
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-lg .btn {
        width: 100%;
        min-width: auto;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        justify-content: center;
        margin: 0;
    }
    
    .method-badge {
        display: inline-block;
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .api-table td {
        padding: 0.8rem;
    }
    
    .api-table td strong {
        font-size: 1rem;
    }
    
    .api-table td .text-light {
        font-size: 0.85rem;
    }
    
    .btn-group-lg .btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .btn-group-lg .btn i {
        font-size: 0.95rem;
        margin-right: 0.3rem;
    }
    
    .method-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .api-table td {
        padding: 0.7rem;
    }
    
    .api-table td strong {
        font-size: 0.95rem;
    }
    
    .api-table td .text-light {
        font-size: 0.8rem;
    }
    
    .btn-group-lg .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-group-lg .btn i {
        font-size: 0.9rem;
        margin-right: 0.2rem;
    }
}

/* Animation for table rows */
.api-table-row {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.api-table-row.show {
    opacity: 1;
    transform: translateY(0);
}