/* GSTYE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f5f4;
    --bg-secondary-rgb: 246, 245, 244;
    --bg-inset: #f0efee;
    --fg-primary: #2e3436;
    --fg-secondary: #5e6c70;
    --fg-muted: #9ba0a4;
    --border-color: #d5d3cf;
    --accent-bg: #3584e4;
    --accent-fg: #ffffff;
    --accent-secondary: #99c1f1;
    --success: #2ec27e;
    --warning: #e5a50a;
    --error: #e01b24;
    --code-bg: #2e3436;
    --code-fg: #f6f5f4;
    --link-color: #3584e4;
    --link-hover: #1c5fb0;
    --table-header-bg: #f0efee;
    --table-stripe: #faf9f8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    --bg-primary: #242424;
    --bg-secondary: #2e2e2e;
    --bg-inset: #3a3a3a;
    --fg-primary: #ffffff;
    --fg-secondary: #c0c0c0;
    --fg-muted: #9a9a9a;
    --border-color: #4a4a4a;
    --accent-bg: #3584e4;
    --accent-fg: #ffffff;
    --accent-secondary: #1e5a96;
    --success: #2ec27e;
    --warning: #e5a50a;
    --error: #e01b24;
    --code-bg: #1a1a1a;
    --code-fg: #e6e6e6;
    --link-color: #78aeed;
    --link-hover: #99c1f1;
    --table-header-bg: #3a3a3a;
    --table-stripe: #303030;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
  height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--fg-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s, color 0.2s;
}
.main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5rem 0 1rem;
    color: var(--fg-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin: 1rem 0;
    color: var(--fg-secondary);
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

pre {
    background-color: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

code {
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--code-fg);
}

:not(pre) > code {
    background-color: var(--bg-secondary);
    color: var(--fg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}
.intro, .api {
  flex: 1;
}

.g78doc-code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--bg-inset);
    color: var(--fg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    z-index: 10;
}

.copy-btn:hover {
    opacity: 1;
    background-color: var(--accent-bg);
    color: var(--accent-fg);
    border-color: var(--accent-bg);
}

.copy-btn:active {
    transform: translateY(1px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--bg-primary);
}

th {
    background-color: var(--table-header-bg);
    color: var(--fg-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--fg-secondary);
}

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

tbody tr:nth-child(even) {
    background-color: var(--table-stripe);
}

tbody tr:hover {
    background-color: var(--bg-secondary);
}

section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.intro {
    max-width: 1000px;
    margin: 0 auto;
}
.api {
    max-width: 1000px;
    margin: 0 auto;
}

.example-card {
    background-color: var(--bg-inset);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-bg);
}

.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--fg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background-color: var(--bg-inset);
    color: var(--fg-primary);
}

.theme-btn.active {
    background-color: var(--accent-bg);
    color: var(--accent-fg);
}

.nav {
    background-color: var(--bg-secondary);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--fg-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.note, .warning, .tip {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.note {
    background-color: var(--bg-secondary);
    border-left-color: var(--accent-bg);
}

.warning {
    background-color: var(--bg-secondary);
    border-left-color: var(--warning);
}

.tip {
    background-color: var(--bg-secondary);
    border-left-color: var(--success);
}

ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--fg-secondary);
}

li {
    margin: 0.5rem 0;
}

small, .text-muted {
    color: var(--fg-muted);
    font-size: 0.85rem;
}
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.main-footer h6 {
    margin: 0;
    font-weight: 600;
    color: #deddda;
}

.footimg {
    height: 48px;
    width: 64px;
    display: block;
}
.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(var(--bg-secondary-rgb), 0.8);
}

body.dark-theme {
    --bg-secondary-rgb: 46, 46, 46;
}


.language-sh, .language-c, .language-vala, .language-cpp, .language-java {
    tab-size: 4;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--accent-bg);
    cursor: help;
}

tbody tr {
    transition: background-color 0.2s;
}

.main-footer h6 {
    color: var(--fg-secondary) !important;
    margin: 0;
}

section, pre, table {
    animation: fadeIn 0.3s ease-in;
}

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

.toc {
    position: sticky;
    top: 2rem;
    float: right;
    width: 250px;
    margin-left: 2rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: var(--fg-secondary);
}

.toc a:hover {
    color: var(--accent-bg);
}

pre {
    position: relative;
}

pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    color: var(--fg-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.progress {
    height: 4px;
    background-color: var(--bg-inset);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-bg);
    width: 0%;
    transition: width 0.3s;
}

@media (max-width: 768px) {
    .main {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .theme-switch {
        position: fixed;
        bottom: 1rem;
        top: auto;
        right: 1rem;
        box-shadow: var(--shadow);
    }

    pre {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media print {
    .theme-switch,
    .copy-btn,
    .main-footer {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    pre {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

.src-btn {
  border: none;
  color: #ffffff;
  background: none;
  padding: 0;
  cursor: pointer;
  text-text-decoration: underline;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    }
.main-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(var(--shadow));
}
        .nav-links {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }
        .btn {
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.2s;
        }
        .btn-primary {
            background-color: var(--accent-bg);
            color: var(--accent-fg) !important;
        }
        .btn-primary:hover {
            background-color: var(--link-hover);
            text-decoration: none;
        }
        .btn-outline {
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }
        .contact-section {
            text-align: center;
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }
		.apps-section {
			background: var(--bg-secondary);
			border-radius: 16px;
			padding: 2rem;
			border: 1px solid var(--border-color);
		}
		.apps-section h1 {
			font-size: 1.75rem;
			margin-bottom: 1.5rem;
			color: var(--fg-primary);
		}
		.apps-grid {
			display: grid;
			grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
			gap: 1rem;
			margin-bottom: 2rem;
		}
		.app-object {
			background: var(--bg-primary);
			border: 1px solid var(--border-color);
			border-radius: 12px;
			padding: 1.25rem;
			transition: all 0.2s ease;
			cursor: pointer;
		}
		.app-object:hover {
			transform: translateY(-2px);
			border-color: var(--accent-bg);
			box-shadow: var(--shadow);
		}
		
		.app-link: {
			text-decoration: none;
			display: flex;
			flex-direction: column;
			gap: 0.75rem;
		}
		.app-icon {
		font-size: 2rem;
		line-height: 1;
		}
		.app-name {
		font-weight: 600;
		font-size: 1rem;
		color: var(--fg-primary);
		word-break: break-word;
		}