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

/* Full height layout - ensures page always covers full window */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Main content expands to fill available space */
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}

.navbar-background.uk-sticky {
	z-index: 1000;
}

/* Navbar doesn't shrink */
.navbar-background {
    flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Base link styling */
a,
a:link {
    text-decoration: none !important;
    color: #6c8099;  /* Soft blue-gray */
    transition: color 0.3s ease;
}

/* Hover state */
a:hover {
    text-decoration: none !important;
    color: #0b2a53;  /* Dark blue on hover */
}

/* Visited links */
a:visited {
    text-decoration: none !important;
    color: #7d8fa5;  /* Slightly different soft shade */
}

/* Active/clicking state */
a:active {
    text-decoration: none !important;
    color: #0b2a53;
}

/* Focus state (keyboard navigation) */
a:focus {
    text-decoration: none !important;
    outline: none !important;
    color: #0b2a53;
}

/* Optional: Add a subtle background or box-shadow on focus for accessibility */
a:focus-visible {
    box-shadow: 0 0 0 2px rgba(11, 42, 83, 0.1);
    border-radius: 2px;
}

/* Remove any potential underlines from pseudo-elements */
a::before,
a::after {
    text-decoration: none !important;
}

/* For links inside paragraphs or specific containers that might override */
p a,
div a,
span a,
li a,
td a,
th a {
    text-decoration: none !important;
}

@media (min-width: 960px) {
  .vertical-container {
    max-height: 75vh;
    overflow-y: auto;
  }
}

.uk-card-default {
    background-color: #fff;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* Navbar styles */
.navbar-background {
    background: #FFF;
}

/* Header styles */
header.uk-section {
	flex-shrink: 0;
	position: relative;
	padding: 20px 10px;
}

.uk-section-primary {
	background: #cddde7;
}

header .uk-heading-small {
	font-size: 2.6rem;
}

/* Better readability for breadcrumbs on dark backgrounds */
.uk-breadcrumb.uk-light > * > * {
    color: rgba(255, 255, 255, 0.7);
}

.uk-breadcrumb.uk-light > * > :hover {
    color: rgba(255, 255, 255, 1);
}

.uk-breadcrumb.uk-light > :last-child > * {
    color: rgba(255, 255, 255, 1);
}

/* Search form styling */
.uk-search-input {
    background: white !important;
    border: 1px solid #e5e5e5;
}

.uk-select {
    background: white !important;
    border: 1px solid #e5e5e5;
}

/* Ensure proper spacing when header has background image */
header.uk-section.uk-background-cover {
    padding-top: 80px;
    padding-bottom: 80px;
}

:root {
    --primary-color: #1e87f0;
    --secondary-color: #0f7ae5;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    background-image: url(/media/4dekiobd/main4.jpg);
    background-position: center;
    background-size: cover;
}

.hero-gradient h1, .hero-gradient p{
    color:#000;
}

.fg-corp-blue{
    color:#0b2a53 !important;
}

.fg-corp-red{
    color:#CB3A36 !important;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b2a53 0%, #CB3A36 100%);
    color: white;
    margin-bottom: 20px;
}

.tree-container {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.tree-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-list ul {
    list-style: none;
    padding-left: 24px;
    margin: 0;
}

.tree-item {
    margin: 2px 0;
}

.tree-node {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
    user-select: none;
}

.tree-node:hover {
    background-color: #f0f0f0;
}

.tree-node.selected {
    background-color: #1e87f0;
    color: white;
}

.tree-toggle {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tree-toggle .uk-icon {
    transition: transform 0.2s;
}

.tree-item.collapsed .tree-toggle .uk-icon {
    transform: rotate(-90deg);
}

.tree-icon {
    margin-right: 0;
    flex-shrink: 0;
    color: #666;
}

.tree-icon .uk-icon {
	width: 20px;
}
.tree-icon.folder .uk-icon {
	margin-right: 8px;
}

.tree-node.selected .tree-icon {
    color: white;
}

.tree-label {
    flex: 1;
    font-size: 14px;
}

.tree-item.collapsed > ul {
    display: none;
}

/* Category/Folder specific styling */
.tree-node.category .tree-icon {
    color: #faa05a;
}

.tree-node.category.selected .tree-icon {
    color: white;
}

/* Article specific styling */
.tree-node.article .tree-icon {
    color: #32d296;
}

.tree-node.article.selected .tree-icon {
    color: white;
}

/* Empty state for folders */
.empty-folder {
    padding: 8px 24px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* Badge for item count */
.item-count {
    margin-left: 8px;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

.tree-node.selected .item-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.documentation-wrapper {
    background: #fff;
    min-height: 500px;
}

/* Tab navigation styling */
.uk-tab-left {
    border-right: 1px solid #e5e5e5;
}

.uk-tab-left > li > a {
    padding: 12px 20px;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #666;
}

.uk-tab-left > li > a:hover {
    background-color: #f8f8f8;
    color: #333;
}

.uk-tab-left > li.uk-active > a {
    background-color: #fff;
    color: #333;
    font-weight: 600;
    border-left: 3px solid #1e87f0;
    margin-left: -3px;
    padding-left: 23px;
}

/* Content area */
.doc-content {
    padding: 0 40px;
    max-width: 100%;
}

.doc-content h2 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.doc-content h3 {
    color: #555;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

.doc-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* Gallery styling */
.screenshot-gallery {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 2rem 0;
}

.gallery-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-header::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #1e87f0;
    margin-right: 10px;
    border-radius: 2px;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Main content gallery */
.main-gallery {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 959px) {
    .doc-content {
        padding: 0 20px;
    }
    
    .uk-tab-left > li > a {
        padding: 10px 15px;
    }
}

/* Code blocks styling (se presenti nel contenuto) */
.doc-content pre {
    background: #f4f4f4;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.doc-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Alert/Note boxes */
.doc-note {
    background: #e3f2fd;
    border-left: 4px solid #1e87f0;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}