/*
Theme Name: DEMO TOSANTECHNO
Theme URI: http://example.com/mana-documentation
Author: OMID AZAMI
Author URI: http://example.com
Description: A simple documentation theme for WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: documentation, clean, responsive
Text Domain: mana
*/

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

@font-face {
    font-family: 'IranSans';
    src: url('assets/fonts/IRANSansWeb.woff2') format('truetype');
    font-weight: normal;
    font-style: normal
}

html, body {
    font-family: IranSans, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;	
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

h1 { font-family:IranSans; font-size: 2rem; font-weight: 700; }
h2 { font-family:IranSans; font-size: 1.75rem; font-weight: 700; }
h3 { font-family:IranSans; font-size: 1.5rem; font-weight: 700; }
h4 { font-family:IranSans; font-size: 1.25rem; font-weight: 600; }
h5 { font-family:IranSans; font-size: 1.125rem; font-weight: 600; }
h6 { font-family:IranSans; font-size: 1rem; font-weight: 600; }

/* Paragraph */
p {
    margin-bottom: 1rem;
	font-family: IranSans;	
}

/* Lists */
ul, ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ccc;
}

th {
    background-color: #f9f9f9;
    font-weight: 700;
}

/* Links */
a {
    color: #888;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.active {
    color: orange;
}

/* Responsive Flex Containers */
.post-side {
    display: flex;
    gap: 24px;
    height: 100vh;
    width: 22%;
    flex-direction: column;
    padding: 16px;
    background: linear-gradient(180deg, #f2f2f2, transparent, transparent);
	overflow: auto;
}

.docs-content {
    flex: 1;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    padding: 16px 0;
}

footer hr {
    width: 100%;
    max-width: 1080px;
}

footer p {
    font-size: 12px;
    margin: 0;
    color: #a1a1a1;
}

/* Responsive Typography */
h2.wp-block-heading {
    font-size: 24px;
}

h1.logo {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

/* Inputs */
input[type="search"], select {
    height: 50px;
}

/* Responsive Layout Adjustments */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .post-side, #tboc-out {
        width: 100%;
    }
    
    .container {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    .docs-container, .footer {
        gap: 12px;
    }

    footer {
        padding: 16px;
    }

    input[type="search"], select {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container, header, footer {
        padding: 12px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4, h5, h6 { font-size: 1rem; }

    ul, ol {
        padding-left: 16px;
    }

    .docs-container {
        gap: 8px;
    }

    input[type="search"], select {
        height: 36px;
    }
}

.wp-block-search__inside-wrapper {
    display: flex;
    flex: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    flex-direction: row;
}

.post-content {
  display: block;
  /* max-width: 1200px; */ /* Example max width */
  margin: 0 auto; /* Center content horizontally */
  /* padding: 16px 16px; */
  background-color: #f8f8f8; /* Optional background for better visibility */
  /* border: 1px solid #ddd; */ /* Optional border */
  height: 100%;
  /* padding: 32px; */
	overflow:auto
}

.post-content.no-padding {
  padding: 0; /* Remove padding for specific posts */
}


/* Ensure the .docs-content container doesn't overflow horizontally */
.docs-content {
    overflow-x: hidden;
}

.dashboard-iframe-container {
    width: 100%;
    height: 100% !important;
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 for responsive iframe */
    height: 0;
    overflow: hidden;
}

.dashboard-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



/********************************************************/

.article-summary {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
}


.doc-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.doc-summary-table th, .doc-summary-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.doc-summary-table th {
    background: #f4f4f4;
    text-align: left;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 90%;
    margin: 20px auto;
    text-align: center;
}

.word {
    font-weight: bold;
    white-space: nowrap;
    opacity: 0.9;
    transition: transform 0.3s ease, color 0.3s ease;
}

.word:hover {
    transform: scale(1.2);
    color: #000000; /* Change to black on hover for emphasis */
}


video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1
}


main#page {
    /* max-width: 1600px; */
    margin: auto;
    height: 100vh;
}

.admin-bar main#page {
    height: calc(100vh - 32px);
}

.docs-container {
    display: flex;
    align-items: stretch;
    height: 100%;
}

ul.contents-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

ul.contents-list li {
    margin-bottom: 0;
    position: relative;
    padding-right: 17px;
    /* border-bottom: 2px solid #ffffff; */
    transition: 0.15s all;
    /* background: #ffffff00; */
}

ul.contents-list span {
    width: 100%;
    display: block;
    padding: 11px;
    cursor: pointer;
    color: #6c6c6c;
}

.has-child > span.term-title:before {
    content: '';
    display: block;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
    /* background: #097dd0; */
    /* border-radius: 2px; */
    position: absolute;
    right: 6px;
    top: 18px;
    transition: 0.15s ease-in-out;
    border-left: 2px solid #4d4d4d7d;
    border-bottom: 2px solid #4d4d4d7d;
}

.has-child > span.term-title:after {
    content: '';
    display: none;
    width: 2px;
    height: 14px;
    background: #097dd0;
    border-radius: 2px;
    position: absolute;
    right: 6px;
    top: 10px;
    transition: 0.3s ease-in-out;
}


ul.term-posts {
    padding: 0;
    margin: 0;
    max-height: 0px;
    transition: 0.25s ease-in-out;
    margin: 0;
    overflow: hidden;
}

.term-posts li {
    padding: 3px 0px 10px !important;
}

.term-posts li a:before {
    content: '';
    width: 6px;
    display: block;
    height: 6px;
    background: #34dcff;
    border-radius: 10px;
    position: relative;
    top: 7px;
    transition: 0.3s ease-in-out;
}

.term-posts li a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #000000;
    background: #fff;
    padding: 9px 12px;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    font-size: 13px;
    cursor: pointer;
}

.term-posts li a:hover {
    text-decoration: unset;
    color: #000;
    background: #34dcff;
}

.term-posts li a:hover:before {
    background: #fff;
}


ul.child-terms {/* display: none; */overflow: hidden;max-height: 0px;transition: 0.25s ease-in-out;margin: 0;padding: 0;}

.active > ul.child-terms {
    /* display: block; */
    max-height: 1500px;
}

.active > span.term-title:after {transform: rotate(90deg);/* opacity: 0; */}

.active > span.term-title:before {
    transform: rotate(-45deg);
    border-left: 2px solid #000000;
    border-bottom: 2px solid #000000;
    top: 15px;
}

.active > ul.term-posts {
    max-height: 1400px;
                         
}

.active > span.term-title {
    color: #000000;
}

.has-child.active {
    /* margin-bottom: 20px; */
}

li.child-term.has-child {
}

li.child-term.has-child.active {
}

ul.contents-list > li {
    border-bottom: 2px solid #fff;
}


.all-widget-docs {
    display: flex;
    gap: 32px;
    flex-direction: column;
}

.widget-docs {
    /* border: 1px solid #eee; */
    color: #000000;
    background: #fff;
    padding: 27px;
    border-radius: 10px;
    /* width: 33%; */
}

.post-content > h1 {
    font-size: 20px;
}

.widget-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 54px;
    /* background: #f3f3f3; */
}

.widget-body> span {
    /* border: 1px solid #99999942; */
    padding: 6px;
    /* border-radius: 42px; */
    display: flex;
    align-items: center;
    background: #fff;
}

.widget-docs > h2 {
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding: 4px 0 12px;
}


i.go-left {
    display: inline-block;
    min-width: 8px;
    min-height: 8px;
    border-left: 2px solid #aaaaaa;
    border-bottom: 2px solid #aaaaaa;
    position: relative;
    transform: rotate(45deg);
    max-width: 8px;
    max-height: 8px;
}


.widget-body> span span {
    width: 54px;
    text-align: left;
    width: 100%;
	
    font-family: IranSans_Fa;
}

.widget-body> span strong {width: 100%;font-weight: 300;}


.summary-widget .widget-body {
    display: block;
    font-size: 15px;
    line-height: 2em;    font-family: IranSans_Fa;

}


h2.list-title {
    margin: 16px 1px;
    font-size: 20px;
    color: #222;
}

a.link-to-dash.open-post-ajax {
    cursor: pointer;
    margin-top: 30px;
    display: block;
    margin: 16px 1px;
    font-size: 20px;
    font-weight: 800;
    color: #222;
}


.docs-load-container {
    max-width: 1200px;
    padding: 32px;
    /* margin: auto; */
}

@font-face {
    font-family: 'IranSans_Fa';
    src: url('assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@media screen and (max-width: 1030px) {

.active-menu .post-side {
    right: 0;
}
	
	.active-menu {overflow:hidden ; height:100vh}

	.active-menu .toggle-menu {width: 100%;background: #000000ab;height: 100vh;margin: 0;
	 left: 0;
        top: 0;}

.active-menu .toggle-menu span {
    display: none;
}
	
	
	
.admin-bar .post-side {
    padding-top: 32px;
}

.toggle-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 999;
    gap: 7px;
    justify-content: center;
    margin-top: 6px;
    /* top: 32px; */
    padding: 6px;
	
        right: 20px;
        top: 20px;
}
	
	
.docs-load-container {
    padding-top: 81px;
}

.toggle-menu span {
    display: block;
    height: 3px;
    background: #eee;
}

.post-side {
    position: fixed;
    right: -100%;
    z-index: 9999;
    top: 0;
    background: #fff;
    transition: 0.35s ease-in-out;
    width: 400px;
    max-width: 80%;
    padding: 18px;

}

.qr {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: white;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.qr-code {
    display: flex;
    width: 80%;
    height: 100%;
    background-color: white;
    flex-direction: column;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
}
}