@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/**
 * Main cont
 */
html,
body {
    height: 100%;
    width: 100%;
}

body {
    font-family: "Ubuntu", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 100%;
}

#module {
    overflow: hidden;
    background-color: #fff;
}

.module-content {
    overflow: auto;
}

body {
    background-color: #f3f4f8;
    color: #222;
}


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

a:visited {
    color: #222;
}

a:hover {
    color: #222;
    text-decoration: underline;
}

a:active {
    color: #222;
}


/**
 * Scrollbar
 */
* {
    scrollbar-width: thin;
    scrollbar-color: #ababab #ffffff;
}

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: #ffffff;
}

*::-webkit-scrollbar-thumb {
    background-color: #ababab;
    border-radius: 10px;
    border: 3px solid #ffffff;
}

#admin {
    background-color: #fff;
}

.breadcrumb {
    font-size: 0.8rem;
}


/**
 * Auth forms
 */
.auth-form {
    max-width: 364px;
    margin: auto;
    background-color: #fff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    border: 1px solid #ddd;
    overflow: auto;
}

.auth-form .lead {
    font-size: 1.1rem;
}

.auth-form .keypad .key {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
    border: 1px solid #ddd;
}

/**
 * Forms
 */
.img-thumbnail {
    width: 100%;
    max-width: 80px;
    max-height: 80px;
}
.editor textarea {
}

/**
 * Table
 */
.th-link {
    opacity: 0.7;
}

.th-link.active {
    opacity: 1.0;
}

.th-link.active.asc::after {
    content: " ▴"
}

.th-link.active.desc::after {
    content: " ▾"
}

#table-actions a {
    margin-bottom: 15px;
}


/**
 * Sidebar
 */
#sidebar {
    background-color: #f3f4f8;
    width: 150px;
    min-width: 150px;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    padding-left: 20px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
 * Navbar
 */
.navbar {
    margin-bottom: 4px;
}

.navbar .dropdown-menu {
    z-index: 1021;
}
#admin .navbar .dropdown-menu li {
    padding: 8px;
}
.navbar .dropdown-item:active {
    background-color: #eee;
}
.navbar .avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.navbar .scroll-menu {
    max-height: 90vh;
    overflow-y: auto;
}


/**
 * Flash messages
 */
.flash.alert {
    margin-bottom: 5px;
}

.flash.alert svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.flash.alert-warning {
    border-left: 4px solid #ff9305;
    fill: #ff9305;
}

.flash.alert-danger {
    border-left: 4px solid #ff4747;
    fill: #ff0000;
}

.flash.alert-success {
    border-left: 4px solid #25a140;
    fill: #25a140;
}

.flash.alert-info {
    border-left: 4px solid #4772ff;
    fill: #4772ff;
}


.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
    display: block;
    opacity: 1;
}

.htmx-request.htmx-indicator {
    display: block;
    opacity: 1;
}


/**
 * Editor
 */
.ql-editor {
    font-family: "Ubuntu", serif;
    font-size: 1rem;
}

.ql-editor h1 {
    font-size: 2.5rem !important;
}
.ql-editor h2 {
    font-size: 2rem !important;
}
.ql-editor h3 {
    font-size: 1.75rem !important;
}
.ql-editor h4 {
    font-size: 1.5rem !important;
}
.ql-editor h5 {
    font-size: 1.25rem !important;
}

.ql-editor h1,  
.ql-editor h2,  
.ql-editor h3,  
.ql-editor h4,  
.ql-editor h5
{
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.ql-editor p {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 2px;
}

.ql-editor ul, 
.ql-editor ol
{
    margin-bottom: 1rem;
    margin-left: -25px;
}

.ql-editor img {
    max-width: 100%;
}

.ql-tooltip {
    /*display: none !important;*/
}
#app #editor .ql-editor {
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
}

/**
 * Utils
 */
.glass {
    /* Blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        /* Bottom and right depth effect */
        inset -0.75px -0.5px rgba(255, 255, 255, 0.1),
        /* Top and left depth effect */
        inset +0.75px +0.5px rgba(255, 255, 255, 0.025),
        /* Shadow effect */
        3px 2px 10px rgba(0, 0, 0, 0.25);
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-underline {
    text-decoration: underline;
}

.bg-gray {
    background-color: #f3f4f8;
}

.table-diff {
}

.diff-remove {
    background-color: #FF2400;
    color: white;
}

.diff-add {
    background-color: #008000;
    color: white;
}

/**
 * Home
 */
#home {
    max-width: 800px;
}

#home * {
    color: #666;
}

#home p, #home span, #home .table, #home label:not(".form-floating") {
    font-size: 1.25rem;
}

#home .navbar-brand {
    color: #444;;
    font-size: 1.2rem;
}

#home .nav-menu {
    color: #444;
}

#home h1,
#home h2,
#home h3,
#home h4,
#home h5 {
    color: #444;
}

#home .captcha {
    width: 160px;
}

#home #view {
    height: 100%;
    padding: 5px;
}

#home .avatar-full {
    height: 300px;
    width: 300px;
    border-radius: 18px;
}

#home .nav-avatar {
    height: 24px;
    width: 24px;
    border-radius: 50%; margin-right: 13px;
}

#home .social-icon {
    height: 18px;
    width: 18px;
}


/** Blog */
#home #post #body {
    font-size: 1.1rem;
}
#home #posts h1 {
    font-size: 1.3rem;
}
#home #posts h4 {
    font-size: 1.0rem;
}
#home .post {
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

#home .post .cover {
    width: 102px !important;
    height: 102px !important;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#home #blog-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#home #post #content p img {
    max-width: 100%;
}
#home #post #content iframe {
    width: 100%;
    height: 412px;
}
#home .blog-comment .comment p {
    font-size: 1.0rem;
}
#home .blog-comment .name {
    font-size: 0.9rem;
    font-weight: bold;
}
#home .blog-comment .ago {
    font-size: 0.7rem;
    color: #888;
}
#home .blog-comment .avatar {
    width: 40px;
}

#home .border-gray {
    border: 1px solid rgba(0, 0, 0, 0.176)
}
#home .table {
    margin-bottom: 0;
}
#home .table tbody > tr:last-child > td, 
#home .table tbody > tr:last-child > th {
    border-bottom:0;
}
#home .bg-blue {
    background-color: rgb(0, 32, 91);
}
#home .video {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  height: 0;
}

#home .video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.editor.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background-color: #fff;
}
.editor.active .editor-control {
    height: 100% !important;
}
.editor.active textarea {
    height: 100% !important;
}
