:root {
    /* Modern Dark Theme Colors */
    --primary-blue: #1976d2;
    --primary-blue-hover: #1565c0;
    --success-green: #4caf50;
    --error-red: #f44336;
    --warning-orange: #ff9800;
    
    /* Dark Theme */
    --background-dark: #0d1117;
    --surface-dark: #161b22;
    --surface-elevated: #21262d;
    --border-dark: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    
    /* Light Theme */
    --background-light: #ffffff;
    --surface-light: #ffffff;
    --surface-elevated-light: #f8f8f8;
    --border-light: #e63946; /* Red accent for borders */
    --text-primary-light: #1a202c;
    --text-secondary-light: #4a5568;
    --text-muted-light: #718096;
    --accent-red: #e63946; /* Red accent for decorative elements */
    --accent-red-hover: #d00000; /* Slightly darker red for hover states */
    
    /* Code Colors */
    --code-bg: #0d1117;
    --code-border: #21262d;
    --json-string: #a5d6ff;
    --json-number: #79c0ff;
    --json-boolean: #ff7b72;
    --json-null: #ff7b72;
    --json-key: #ffa657;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    
    /* Layout */
    --side-nav-width: 250px;
    --side-nav-collapsed: 70px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

body.light-mode {
    background-color: var(--background-light);
    color: var(--text-primary-light);
}

body.no-scroll {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--text-primary-light);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-red);
}

body.light-mode .btn:focus {
    box-shadow: 0 0 0 2px var(--accent-red);
}

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

body.light-mode .btn-primary {
    background: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    color: white;
}

body.light-mode .btn-primary:hover {
    background: var(--accent-red-hover);
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

body.light-mode .btn-outline-primary {
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

body.light-mode .btn-outline-primary:hover {
    background: var(--accent-red);
    color: white;
}

/* Badge */
.badge-pill {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 100px;
    font-weight: 600;
    white-space: nowrap;
}

body.light-mode .badge-pill {
    background: var(--accent-red);
    color: white;
}

/* Layout Structure */
.main-wrapper {
    min-height: 100vh;
    margin-left: var(--side-nav-width);
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.main-wrapper.nav-collapsed {
    margin-left: var(--side-nav-collapsed);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--side-nav-width);
    background-color: var(--surface-dark);
    border-right: 1px solid var(--border-dark);
    z-index: 1000;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    overflow-x: hidden;
}

body.light-mode .side-nav {
    background-color: var(--surface-light);
    border-right: 1px solid var(--border-light);
}

.side-nav.collapsed {
    width: var(--side-nav-collapsed);
}

.side-nav-logo {
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 40px;
    gap: 10px;
}

.side-nav-logo #sideNavName {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    transition: opacity 0.3s ease;
}

body.light-mode .side-nav-logo #sideNavName {
    color: var(--accent-red);
}

.side-nav.collapsed .side-nav-logo {
    justify-content: center;
    padding: 0;
}

.side-nav.collapsed .side-nav-logo #sideNavName {
    display: none;
}

.side-nav.collapsed #versionHeader {
    display: none;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.side-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 2px 0;
    border-left: 3px solid transparent;
    gap: 12px;
}

body.light-mode .side-nav-link {
    color: var(--text-secondary-light);
}

.side-nav-link i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.side-nav-link:hover, .side-nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(25, 118, 210, 0.1);
    border-left-color: var(--primary-blue);
}

body.light-mode .side-nav-link:hover,
body.light-mode .side-nav-link.active {
    color: var(--accent-red);
    background-color: rgba(230, 57, 70, 0.1);
    border-left-color: var(--accent-red);
}

.side-nav.collapsed .side-nav-link {
    justify-content: center;
    padding: 12px 0;
}

.side-nav.collapsed .side-nav-link span {
    display: none;
}

.nav-collapse-btn {
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
    z-index: 10;
}

body.light-mode .nav-collapse-btn {
    background-color: var(--accent-red);
}

.nav-collapse-btn:hover {
    transform: scale(1.1);
}

.side-nav.collapsed .nav-collapse-btn i {
    transform: rotate(180deg);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background-color: var(--surface-dark);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
}

body.light-mode .main-header {
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--border-light);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    margin-right: 16px;
}

body.light-mode .menu-toggle {
    color: var(--text-primary-light);
}

.search-container {
    max-width: 500px;
    width: 100%;
    margin: 0 24px;
}

.input-group {
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease;
}

body.light-mode .input-group {
    background-color: var(--surface-elevated-light);
    border: 1px solid var(--border-light);
}

.input-group:focus-within {
    border-color: var(--accent-red);
}

body.light-mode .input-group:focus-within {
    border-color: var(--accent-red);
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding-left: 20px;
}

body.light-mode .input-group-text {
    color: var(--accent-red);
}

#searchInput {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background-color: transparent;
    color: var(--text-primary);
    flex: 1;
}

body.light-mode #searchInput {
    color: var(--text-primary-light);
}

#searchInput:focus {
    box-shadow: none;
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

body.light-mode #searchInput::placeholder {
    color: var(--text-muted-light);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

body.light-mode .clear-search {
    color: var(--text-muted-light);
}

.clear-search:hover {
    color: var(--accent-red);
    background-color: rgba(230, 57, 70, 0.1);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

body.light-mode .notification-bell {
    color: var(--text-secondary-light);
}

.notification-bell:hover {
    color: var(--primary-blue);
    background-color: rgba(25, 118, 210, 0.1);
}

body.light-mode .notification-bell:hover {
    color: var(--accent-red);
    background-color: rgba(230, 57, 70, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background-color: var(--error-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--background-dark);
}

body.light-mode .hero-section {
    background-color: var(--background-light);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 5;
}

.hero-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

#name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode #name {
    background: linear-gradient(135deg, var(--accent-red), #ff7580);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

body.light-mode .hero-description {
    color: var(--text-secondary-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--primary-blue);
    transition: all 0.2s ease;
    overflow: hidden;
}

body.light-mode .hero-actions a {
    background: var(--accent-red);
}

.hero-actions a:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

body.light-mode .hero-actions a:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    z-index: 2;
}

.banner-container {
    width: 80%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    transform: rotate(3deg);
    position: relative;
    z-index: 3;
}

.banner-container:hover {
    transform: rotate(0deg) translateY(-10px);
}

#dynamicImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-container:hover #dynamicImage {
    transform: scale(1.05);
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #64b5f6);
    opacity: 0.1;
    animation: float 10s infinite alternate;
}

body.light-mode .shape {
    background: linear-gradient(135deg, var(--accent-red), #ff7580);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: 80px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 0;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

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

/* API Section */
.api-section {
    padding: 80px 40px;
    background-color: var(--background-dark);
}

body.light-mode .api-section {
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

body.light-mode .section-title {
    color: var(--text-primary-light);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 4px;
}

body.light-mode .section-title::after {
    background: var(--accent-red);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
}

body.light-mode .section-description {
    color: var(--text-secondary-light);
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-blue);
}

body.light-mode .category-header {
    color: var(--text-primary-light);
    border-left: 4px solid var(--accent-red);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

/* API Cards */
.api-item {
    margin-bottom: 24px;
    padding: 0 12px;
    transition: all 0.3s ease;
}

.hero-section {
    padding: 24px;
    background-color: var(--surface-dark);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-dark);
    position: relative;
    transition: all 0.2s ease;
}

body.light-mode .hero-section {
    background-color: var(--surface-light);
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
}

.hero-section:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.light-mode .hero-section:hover {
    border-color: var(--accent-red);
}

.hero-section > div {
    width: 65%;
}

.hero-section h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

body.light-mode .hero-section h5 {
    color: var(--text-primary-light);
}

.hero-section .text-muted {
    color: var(--text-secondary) !important;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

body.light-mode .hero-section .text-muted {
    color: var(--text-secondary-light) !important;
}

.api-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.get-api-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
}

body.light-mode .get-api-btn {
    background: var(--accent-red);
}

.get-api-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

body.light-mode .get-api-btn:hover {
    background: var(--accent-red-hover);
}

.api-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.status-ready {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-green);
}

.status-error {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--error-red);
}

.status-update {
    background-color: rgba(255, 152, 0, 0.15);
    color: var(--warning-orange);
}

/* Modern Modal Styles */
.modal-content.modern-modal {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.light-mode .modal-content.modern-modal {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

.api-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-dark);
    background-color: var(--surface-elevated);
}

body.light-mode .api-header {
    border-bottom: 1px solid var(--border-light);
    background-color: var(--surface-elevated-light);
}

.api-method-url {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-method {
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

body.light-mode .api-method {
    background: var(--accent-red);
}

.api-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--text-secondary);
    font-size: 16px;
}

body.light-mode .api-path {
    color: var(--text-secondary-light);
}

.api-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-icon {
    color: var(--text-secondary-light);
}

.btn-icon:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--text-primary-light);
}

body.light-mode .btn-icon:hover {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--text-primary-light);
}

.btn-close-modern {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-close-modern {
    color: var(--text-secondary-light);
}

.btn-close-modern:hover {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-red);
}

.modern-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.api-description {
    margin-bottom: 32px;
}

.api-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

body.light-mode .api-description p {
    color: var(--text-secondary-light);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

body.light-mode .section-header h3 {
    color: var(--text-primary-light);
}

.btn-try-out {
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-try-out {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-try-out:hover {
    background: var(--primary-blue);
    color: white;
}

body.light-mode .btn-try-out:hover {
    background: var(--accent-red);
    color: white;
}

.parameters-table {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

body.light-mode .parameters-table {
    border: 1px solid var(--border-light);
}

.table-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    background-color: var(--surface-elevated);
    border-bottom: 1px solid var(--border-dark);
}

body.light-mode .table-header {
    background-color: var(--surface-elevated-light);
    border-bottom: 1px solid var(--border-light);
}

.table-header > div {
    padding: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-right: 1px solid var(--border-dark);
}

body.light-mode .table-header > div {
    color: var(--text-primary-light);
    border-right: 1px solid var(--border-light);
}

.table-header > div:last-child {
    border-right: none;
}

.col-name {
    border-right: 1px solid var(--border-dark);
}

body.light-mode .col-name {
    border-right: 1px solid var(--border-light);
}

.table-body {
    background-color: var(--surface-dark);
}

body.light-mode .table-body {
    background-color: var(--surface-light);
}

.parameter-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-dark);
}

body.light-mode .parameter-row {
    border-bottom: 1px solid var(--border-light);
}

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

.parameter-name {
    padding: 16px;
    border-right: 1px solid var(--border-dark);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--text-primary);
}

body.light-mode .parameter-name {
    border-right: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

.parameter-description {
    padding: 16px;
    color: var(--text-secondary);
}

body.light-mode .parameter-description {
    color: var(--text-secondary-light);
}

.parameter-required {
    color: var(--error-red);
    font-size: 12px;
    margin-left: 4px;
}

.parameter-type {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

body.light-mode .parameter-type {
    color: var(--text-muted-light);
}

.parameter-input {
    width: 100%;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

body.light-mode .parameter-input {
    background-color: var(--surface-elevated-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

.parameter-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

body.light-mode .parameter-input:focus {
    border-color: var(--accent-red);
}

.execute-section {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-dark);
}

body.light-mode .execute-section {
    border-top: 1px solid var(--border-light);
}

.execute-buttons {
    display: flex;
    gap: 12px;
}

.btn-execute {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-execute {
    background: var(--accent-red);
}

.btn-execute:hover {
    background: var(--primary-blue-hover);
}

body.light-mode .btn-execute:hover {
    background: var(--accent-red-hover);
}

.btn-clear {
    background: none;
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-clear {
    border: 1px solid var(--border-light);
    color: var(--text-secondary-light);
}

.btn-clear:hover {
    border-color: var(--text-secondary-light);
    color: var(--text-primary-light);
}

.btn-cancel {
    background: none;
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--error-red);
    color: white;
}

.responses-section {
    margin-top: 32px;
}

.responses-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

body.light-mode .responses-section h3 {
    color: var(--text-primary-light);
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-label span {
    color: var(--text-primary);
    font-weight: 500;
}

body.light-mode .section-label span {
    color: var(--text-primary-light);
}

.copy-btn, .download-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

body.light-mode .copy-btn,
body.light-mode .download-btn {
    color: var(--text-secondary-light);
}

.copy-btn:hover, .download-btn:hover {
    color: var(--accent-red);
    background-color: rgba(230, 57, 70, 0.1);
}

.code-block {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    margin-bottom: 16px;
    color: var(--text-primary);
}

body.light-mode .code-block {
    background-color: var(--surface-elevated-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

.curl-section, .request-url-section, .server-response-section {
    margin-bottom: 24px;
}

.response-header h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

body.light-mode .response-header h4 {
    color: var(--text-primary-light);
}

.response-table .table-header {
    grid-template-columns: 100px 1fr;
}

.response-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--border-dark);
}

body.light-mode .response-row {
    border-bottom: 1px solid var(--border-light);
}

.response-code {
    padding: 16px;
    border-right: 1px solid var(--border-dark);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
}

body.light-mode .response-code {
    border-right: 1px solid var(--border-light);
}

.response-code.success {
    color: var(--success-green);
}

.response-code.error {
    color: var(--error-red);
}

.response-details-content {
    padding: 16px;
}

.response-body-section, .response-headers-section {
    margin-bottom: 20px;
}

.response-body-section:last-child, .response-headers-section:last-child {
    margin-bottom: 0;
}

.default-responses .response-row {
    grid-template-columns: 100px 1fr 100px;
}

.response-description, .response-links {
    padding: 16px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-dark);
}

body.light-mode .response-description,
body.light-mode .response-links {
    color: var(--text-secondary-light);
    border-right: 1px solid var(--border-light);
}

.response-links {
    border-right: none;
    color: var(--text-muted);
}

body.light-mode .response-links {
    color: var(--text-muted-light);
}

.loading-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

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

.loading-spinner p {
    color: var(--text-secondary);
    margin-top: 16px;
}

body.light-mode .loading-spinner p {
    color: var(--text-secondary-light);
}

/* JSON Syntax Highlighting */
.json-string { color: var(--json-string); }
.json-number { color: var(--json-number); }
.json-boolean { color: var(--json-boolean); }
.json-null { color: var(--json-null); }
.json-key { color: var(--json-key); }

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

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

@keyframes rotate-spinner {
    100% {
        transform: rotate(360deg);
    }
}

.spinner-logo {
    animation: rotate-spinner 2s linear infinite;
}

.spinner-path {
    stroke: var(--surface-elevated);
}

body.light-mode .spinner-path {
    stroke: var(--surface-elevated-light);
}

.spinner-animation {
    stroke: var(--primary-blue);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

body.light-mode .spinner-animation {
    stroke: var(--accent-red);
}

/* Loading Screen */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body.light-mode #loadingScreen {
    background-color: var(--background-light);
}

.spinner-wrapper {
    text-align: center;
}

.spinner-wrapper p {
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

body.light-mode .spinner-wrapper p {
    color: var(--text-primary-light);
}

.loading-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: 30px 40px;
    background-color: var(--surface-dark);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-dark);
}

body.light-mode .main-footer {
    background-color: var(--surface-light);
    color: var(--text-secondary-light);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
}

.footer-middle {
    display: flex;
    align-items: center;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

body.light-mode .theme-switcher {
    color: var(--text-secondary-light);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-dark);
    transition: .4s;
}

body.light-mode .slider {
    background-color: var(--border-light);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background: var(--accent-red);
}

body.light-mode input:checked + .slider {
    background: var(--accent-red);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-red);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

body.light-mode .footer-link {
    color: var(--text-secondary-light);
}

.footer-link:hover {
    color: var(--primary-blue);
    background-color: rgba(25, 118, 210, 0.1);
}

body.light-mode .footer-link:hover {
    color: var(--accent-red);
    background-color: rgba(230, 57, 70, 0.1);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
}

.toast {
    background-color: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-left: 4px solid var(--primary-blue);
    min-width: 300px;
}

body.light-mode .toast {
    background-color: var(--surface-light);
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-red);
}

.toast-header {
    background-color: var(--surface-dark);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px 15px;
}

body.light-mode .toast-header {
    background-color: var(--surface-light);
    color: var(--text-primary-light);
    border-bottom: 1px solid var(--border-light);
}

.toast-icon {
    color: var(--primary-blue);
}

body.light-mode .toast-icon {
    color: var(--accent-red);
}

.toast-title {
    font-weight: 600;
}

.toast-body {
    padding: 15px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        padding: 60px 30px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    #name {
        font-size: 3rem;
    }
    
    .hero-visual {
        width: 100%;
    }
    
    .banner-container {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .side-nav {
        transform: translateX(-100%);
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-container {
        max-width: 300px;
    }
    
    .api-section, .hero-section {
        padding: 40px 20px;
    }
    
    .modal-dialog {
        margin: 10px;
        max-width: 95%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .table-header {
        grid-template-columns: 150px 1fr;
    }
    
    .parameter-row {
        grid-template-columns: 150px 1fr;
    }
    
    .response-row {
        grid-template-columns: 80px 1fr;
    }
    
    .default-responses .response-row {
        grid-template-columns: 80px 1fr 80px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 20px;
    }
    
    #name {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-actions a {
        width: 100%;
    }
    
    .search-container {
        max-width: none;
        margin: 0 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header {
        font-size: 24px;
    }
    
    .api-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .api-actions {
        align-self: flex-end;
    }
    
    .table-header {
        grid-template-columns: 1fr;
    }
    
    .table-header > div:first-child {
        border-bottom: 1px solid var(--border-dark);
        border-right: none;
    }
    
    body.light-mode .table-header > div:first-child {
        border-bottom: 1px solid var(--border-light);
    }
    
    .parameter-row {
        grid-template-columns: 1fr;
    }
    
    .parameter-name {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    
    body.light-mode .parameter-name {
        border-bottom: 1px solid var(--border-light);
    }
    
    .response-row {
        grid-template-columns: 1fr;
    }
    
    .response-code {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    
    body.light-mode .response-code {
        border-bottom: 1px solid var(--border-light);
    }
    
    .default-responses .response-row {
        grid-template-columns: 1fr;
    }
    
    .response-description, .response-links {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    
    body.light-mode .response-description,
    body.light-mode .response-links {
        border-bottom: 1px solid var(--border-light);
    }
    
    .response-links {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 0 15px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .api-section, .hero-section {
        padding: 30px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .get-api-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .hero-section > div {
        width: 100%;
    }
    
    .api-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 15px;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: unset;
        width: calc(100% - 40px);
    }
    
    .modern-body {
        padding: 16px;
    }
    
    .api-header {
        padding: 16px;
    }
    
    .execute-buttons {
        flex-direction: column;
    }
    
    .execute-buttons button {
        width: 100%;
    }
}
