/* Modern Styles for Sweeppea API Documentation */

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

body {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

.main-content {
    margin-left: 300px;
    margin-right: 40px;
    padding: 10px 40px 40px;
    min-height: 100vh;
    max-width: calc(100% - 340px);
}

@media only screen and (max-width: 992px) {
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 20px 16px;
        max-width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

.sidenav {
    width: 280px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    box-shadow: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .sidenav {
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
}

.sidenav li {
    line-height: normal;
}

.sidenav li > a {
    padding: 10px 24px;
    height: auto;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    color: #4a4a4a;
    font-size: 13px;
}

.dark-mode .sidenav li > a {
    color: #a0a0a0;
}

.sidenav li > a i.material-icons {
    margin-right: 16px;
    font-size: 20px;
    flex-shrink: 0;
}

.dark-mode .sidenav li > a i.material-icons {
    color: #a0a0a0;
}

.sidenav .collapsible-header {
    padding: 6px 24px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #2a2a2a;
    font-size: 13px;
    font-weight: 500;
}

.dark-mode .sidenav .collapsible-header {
    color: #c0c0c0;
}

.sidenav .collapsible-header i.material-icons:first-child {
    margin-right: 16px;
    flex-shrink: 0;
}

.dark-mode .sidenav .collapsible-header i.material-icons {
    color: #c0c0c0;
}

.sidenav .collapsible-header i.material-icons.right {
    margin-left: auto;
    margin-right: 0;
}

.sidenav .collapsible-header:hover {
    background-color: #efefef;
}

.dark-mode .sidenav .collapsible-header:hover {
    background-color: #252525;
}

.sidenav .collapsible-header.active {
    background-color: #e8e8e8;
}

.dark-mode .sidenav .collapsible-header.active {
    background-color: #2a2a2a;
}

.sidenav .collapsible-body {
    background-color: #fafafa;
    border: none;
    padding: 0;
}

.dark-mode .sidenav .collapsible-body {
    background-color: #151515;
}

.sidenav .collapsible-body ul {
    margin: 0;
}

.sidenav .collapsible-body ul li {
    line-height: normal;
}

.sidenav .collapsible-body ul li a {
    padding: 8px 24px 8px 60px;
    font-size: 12px;
    color: #5a5a5a;
    height: auto;
    line-height: 1.4;
    display: block;
    text-align: left;
}

.dark-mode .sidenav .collapsible-body ul li a {
    color: #808080;
}

.sidenav .collapsible-body ul li a:hover {
    background-color: #efefef;
    color: #000000;
}

.dark-mode .sidenav .collapsible-body ul li a:hover {
    background-color: #252525;
    color: #ffffff;
}

.sidenav .user-view {
    padding: 24px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .sidenav .user-view {
    background: #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.sidenav .subheader {
    padding: 16px 24px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #808080;
    text-align: left;
}

.dark-mode .sidenav .subheader {
    color: #606060;
}

.sidenav .divider {
    margin: 8px 0;
    background-color: #e0e0e0;
}

.dark-mode .sidenav .divider {
    background-color: #2a2a2a;
}

.wizard-step {
    margin-top: 24px;
}

.wizard-option {
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none !important;
    background: #fafafa;
}

.dark-mode .wizard-option {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
}

.wizard-option:hover {
    transform: translateY(-2px);
    border-color: #c0c0c0;
    background-color: #f0f0f0;
}

.dark-mode .wizard-option:hover {
    border-color: #404040;
    background-color: #252525;
}

.code-block {
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin: 6px 0;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
    overflow-x: auto;
    border: 1px solid #d0d0d0;
    font-size: 13px;
    line-height: 1.7;
    position: relative;
}

.dark-mode .code-block {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333333;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #e5e5e5;
    border-bottom: 1px solid #d0d0d0;
    border-radius: 8px 8px 0 0;
}

.dark-mode .code-block::before {
    background: #252525;
    border-bottom: 1px solid #333333;
}

.code-block code {
    color: inherit;
    background: none;
}

.endpoint-card {
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none !important;
    background: #fafafa;
}

.dark-mode .endpoint-card {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
}

.method-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 11px;
    margin-right: 12px;
    letter-spacing: 0.5px;
}

.method-get { background: #c0c0c0; }
.method-post { background: #909090; }
.method-put { background: #707070; }
.method-delete { background: #606060; }

.parameter-table {
    margin-top: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.dark-mode .parameter-table {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
}

.parameter-table th {
    background-color: #f0f0f0;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .parameter-table th {
    background-color: #151515;
    border-bottom: 1px solid #2a2a2a;
    color: #c0c0c0;
}

.parameter-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #2a2a2a;
    font-size: 13px;
}

.dark-mode .parameter-table td {
    border-bottom: 1px solid #252525;
    color: #a0a0a0;
}

.parameter-table tbody tr:hover {
    background-color: #f5f5f5;
}

.dark-mode .parameter-table tbody tr:hover {
    background-color: #252525;
}

.response-example {
    background-color: #151515;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #505050;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.tabs {
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 6px;
}

.dark-mode .tabs {
    border-bottom: 1px solid #2a2a2a;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background: #404040;
}

.dark-mode .dark-mode-toggle {
    background: #e0e0e0;
    border: 1px solid #c0c0c0;
    color: #1a1a1a;
}

.dark-mode .dark-mode-toggle:hover {
    background: #d0d0d0;
}

.tabs .tab {
    line-height: 48px;
}

.tabs .tab a {
    color: #666666;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 10px 16px;
}

.dark-mode .tabs .tab a {
    color: #999999;
}

.tabs .tab a:hover {
    color: #000000;
    background-color: transparent;
}

.dark-mode .tabs .tab a:hover {
    color: #ffffff;
    background-color: transparent;
}

.tabs .tab a.active {
    color: #000000;
    font-weight: 600;
}

.dark-mode .tabs .tab a.active {
    color: #ffffff;
    font-weight: 600;
}

.tabs .indicator {
    background-color: #2a2a2a;
    height: 2px;
}

.dark-mode .tabs .indicator {
    background-color: #ffffff;
}

.breadcrumb-nav {
    display: none;
}

.breadcrumb-nav .breadcrumb {
    color: #1967d2;
    font-size: 14px;
}

.breadcrumb-nav .breadcrumb:before {
    color: #80868b;
}

.breadcrumb-nav .breadcrumb:last-child {
    color: #202124;
}

.section-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
    margin-bottom: 8px;
    margin-top: 0;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.dark-mode .section-header {
    border-bottom: 1px solid #2a2a2a;
    color: #ffffff;
}

.api-section {
    margin-bottom: 0;
}

.api-section h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    margin-top: 0;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.dark-mode .api-section h4 {
    color: #e0e0e0;
}

.api-section h5 {
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 16px;
}

.dark-mode .api-section h5 {
    color: #c0c0c0;
}

.highlight {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-left: 3px solid #606060;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.note {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #505050;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.warning {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-left: 3px solid #707070;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #e0e0e0;
    border: 1px solid #c0c0c0;
    color: #4a4a4a;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    z-index: 10;
}

.dark-mode .copy-button {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #a0a0a0;
}

.copy-button:hover {
    background: #d0d0d0;
    border-color: #a0a0a0;
    color: #000000;
    transform: translateY(-1px);
}

.dark-mode .copy-button:hover {
    background: #404040;
    border-color: #606060;
    color: #ffffff;
}

.code-container {
    position: relative;
    margin: 24px 0;
}

.code-block code {
    display: block;
    padding-top: 32px;
    white-space: pre;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.section {
    margin-bottom: 12px;
}

.section:first-child {
    margin-top: 0;
}

.section:last-child {
    margin-bottom: 0;
}

.row {
    margin-bottom: 16px;
}

.collapsible {
    border: none;
    box-shadow: none;
}

.collapsible-header {
    border: none;
}

.collapsible-body {
    border: none;
}

.status-code {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.status-200, .status-201 {
    background-color: #2a2a2a;
    color: #a0a0a0;
    border-color: #404040;
}
.status-400, .status-401, .status-404, .status-429, .status-500 {
    background-color: #2a2a2a;
    color: #909090;
    border-color: #404040;
}

.sidenav li > a.active {
    background-color: #e8e8e8;
    color: #000000;
    font-weight: 500;
}

.dark-mode .sidenav li > a.active {
    background-color: #2a2a2a;
    color: #ffffff;
}

.brand-logo {
    font-weight: 500;
    font-size: 20px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none !important;
    margin-bottom: 0;
    background: #fafafa;
}

.dark-mode .card {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
}

.card-title {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
}

.dark-mode .card-title {
    color: #e0e0e0 !important;
}

.card-title i {
    vertical-align: middle;
}

.card-content {
    padding: 24px !important;
}

.card-action {
    padding: 16px 24px !important;
    border-top: 1px solid #2a2a2a;
}

.collection {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: none !important;
    background: #1a1a1a;
}

.collection .collection-item {
    border-bottom: 1px solid #252525;
    padding: 16px 20px;
    background: transparent;
    color: #a0a0a0;
}

.collection .collection-item:last-child {
    border-bottom: none;
}

.collection .collection-item.avatar .title {
    font-weight: 500;
}

nav {
    box-shadow: none !important;
    background: #1a1a1a !important;
    border-bottom: 1px solid #2a2a2a;
}

.btn {
    border-radius: 6px;
    text-transform: none;
    font-weight: 500;
    box-shadow: none;
    border: 1px solid transparent;
}

.btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-flat {
    border-radius: 6px;
    text-transform: none;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.flow-text {
    color: #5a5a5a;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.dark-mode .flow-text {
    color: #909090;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1a1a;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #e0e0e0;
}

p {
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 0;
}

.dark-mode p {
    color: #a0a0a0;
}

@media only screen and (max-width: 600px) {
    .main-content {
        padding: 80px 12px 20px 12px;
        margin: 0;
    }

    .section-header {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .code-block {
        font-size: 11px;
        padding: 12px;
        margin: 12px 0;
        overflow-x: auto;
    }

    .code-block code {
        white-space: pre;
        word-wrap: break-word;
    }

    .copy-button {
        top: 6px;
        right: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .endpoint-card .card-content {
        padding: 16px !important;
    }

    .method-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .tabs .tab a {
        font-size: 12px;
        padding: 8px 12px;
    }

    .status-code {
        font-size: 11px;
        padding: 3px 8px;
    }

    .api-section h4 {
        font-size: 18px;
    }

    .api-section h5 {
        font-size: 14px;
    }

    .flow-text {
        font-size: 14px;
    }

    p {
        font-size: 13px;
    }
}

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

.modal {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.modal .modal-content {
    padding: 24px;
}

.modal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
}

input[type=text]:focus:not([readonly]),
input[type=password]:focus:not([readonly]),
textarea:focus:not([readonly]) {
    border-bottom: 2px solid #1967d2 !important;
    box-shadow: 0 1px 0 0 #1967d2 !important;
}

.input-field label {
    color: #5f6368;
}

.input-field label.active {
    color: #1967d2;
}

/* Unified Sidebar Styles */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	height: 100vh;
	background: #f8f8f8;
	border-right: 1px solid #e0e0e0;
	overflow-y: auto;
	z-index: 999;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .sidebar {
	background: #1a1a1a;
	border-right: 1px solid #2a2a2a;
}

.sidebar-header {
	padding: 24px 20px;
	background: #2a2a2a;
	border-bottom: 1px solid #e0e0e0;
	color: white;
}

.dark-mode .sidebar-header {
	background: #2a2a2a;
	border-bottom: 1px solid #2a2a2a;
}

.sidebar-header h5 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: white;
}

.sidebar-header p {
	margin: 4px 0 0 0;
	font-size: 12px;
	color: #ccc;
}

.collection {
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.collection .collection-item {
	padding: 12px 20px;
	border-bottom: 1px solid #e8e8e8;
	background: transparent;
	color: #4a4a4a;
	font-size: 13px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	text-decoration: none;
}

.dark-mode .collection .collection-item {
	border-bottom: 1px solid #252525;
	color: #a0a0a0;
}

.collection .collection-item:hover {
	background-color: #efefef;
	color: #000;
}

.dark-mode .collection .collection-item:hover {
	background-color: #252525;
	color: #fff;
}

.collection .collection-item.active {
	background-color: #424242;
	color: white;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
	padding: 8px 20px;
}

.new.badge {
	background-color: #f44336;
	color: white;
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: auto;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.collection .collection-item.disabled {
	color: #999 !important;
	cursor: not-allowed !important;
	pointer-events: none;
	opacity: 0.6;
}

.dark-mode .collection .collection-item.disabled {
	color: #555 !important;
}



/* Mobile Menu Button */
.mobile-menu-btn {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1001;
	background: #2a2a2a;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-menu-btn a {
	color: white !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.mobile-menu-btn .material-icons {
	font-size: 24px;
}

.dark-mode .mobile-menu-btn {
	background: #424242;
}
