/*
    Author: Pratomrerk B.
    Updated: 2025-03-10
*/

:root{
	--font-family: 'Arial, sans-serif';
	--font-size: 1em;
	--line-height: 30px;
    --spacing: 1.5em;
}

[data-color-theme="light"] {
    --bg-color: #FFF;
    --bg-panel-color: #F5F5F7;
    --text-color: #000;
	--link-color: #06c;
    --text-description: #6e6e73;
    --text-color-bright: #FFF;
    --bg-color-bright: #F8FAFF;
    --filter-image: none;
    --footer-color: #6e6e73;
    --footer-bg: #F5F5F7;
}

[data-color-theme="dark"] {
    --bg-color: #212121;
    --bg-panel-color: #4D4D4F;
    --text-color: #FFF;
    --link-color: #00aeff;
    --text-description: #B0B0B0;
    --text-color-bright: #FFF;
    --bg-color-bright: #4D4D4F;
    --filter-image: invert(100%);
    --footer-color: #B0B0B0;
    --footer-bg: #2C2C2E;
}

body{
    padding:0;
    margin:0;
    background: var(--bg-color);
}
body, a, table, div{
	font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a, .link{
    color: var(--link-color);
    text-decoration:none;
}
.link{
    cursor: pointer;
}
.link img{
    filter: var(--filter-image);
}
hr, .hr{
    border:0;
    margin-top:0.5em;
    margin-bottom:0.5em;
    height: 0.1px;
    background:#E5E5E5;
}
hr{
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.30), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.30), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.30), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.30), rgba(0,0,0,0));
}
.text, .text-indent{
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8em;
}
.text-indent{
    text-indent: 1.8em;
}
.cut-text{ 
    text-overflow: ellipsis;
    overflow: hidden; 
    white-space: nowrap;
}
#alert_line, .alert_line{
    position: fixed;
	padding: 10px 15px;
	top: 8vh;
	left: 50%;
	transform: translate(-50%, 0%);
	min-width: 20vw;
	z-index: 9999;
	text-align: left;
	text-align:center;
}
.alert_white{
    background: val(--bg-color);
    border: 0.1px solid #CCC;
}
.alert_success{
    background: #E6F9EB;
    border: 0.1px solid #ceebd6;
}
.alert_info{
    background: #ebf4fb;
    border: 0.1px solid #cce2f4;
}
.alert_warning{
    background: val(--bg-color)4E5;
    border: 0.1px solid #f7e2c6;
}
.alert_error{
    background: #fdeced;
    border: 0.5px solid #f8cdd2;
}
#alert, .alert{
    padding:10px;
    webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    z-index: 9999;
    text-align:center;
    background:val(--bg-color)BE8;
    border:0.5px solid #CCC;
}
.info_line{
	padding:10px 8px;
	background:#ebf4fb;
	border:0.5px solid #cce2f4;
	-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;
}
.page_content{
    display: none;
    position: relative;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
}
.progressbar {
    margin: 0;
    background-color: #f3f3f3;
}
.progressbar > div {
    height: 5px;
    margin: 0;
    background-color: #59ACFF;
    background-image: -webkit-gradient(linear, 0 0, 100% 100%,
                        color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent),
                        color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)),
                        color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent),
                        to(transparent));
    background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
                        transparent 75%, transparent);
    background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
                        transparent 75%, transparent);
    background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
                        transparent 75%, transparent);
    background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
                        transparent 75%, transparent);
    background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
                        transparent 75%, transparent);
}

.badge{
    position: absolute;
    top:1px;
    margin-left: 18px;
    padding: 3px;
    min-width:21px;
    -moz-border-radius:100%;-webkit-border-radius:100%;border-radius:100%;
    background: #F00;
    color: val(--bg-color);
    font-size: 12px;
}

.log{
    background-color: #1a1a1a;
    color: #ccc;
}


.icon-size8{
    width: 8px;
    height: 8px;
}
.icon-size16{
    width: 16px;
    height: 16px;
}
.icon-size20{
    width: 20px;
    height: 20px;
}
.icon-size23{
    width: 23px;
    height: 23px;
}
.icon-size30{
    width: 30px;
    height: 30px;
}
.icon-size32{
    width: 32px;
    height: 32px;
}
.icon-size40{
    width: 40px;
    height: 40px;
}
.icon-size42{
    width: 42px;
    height: 42px;
}
.icon-size50{
    width: 50px;
    height: 50px;
    background-size: calc(100% + 2px) calc(100% + 2px);
}
.icon-size52{
    width: 52px;
    height: 52px;
}
.icon-size80{
    width: 80px;
    height: 80px;
}
.icon-size100{
    width: 100px;
    height: 100px;
}
.icon-color-invert{
    filter: invert(100%);
}
.icon-color-gray{
    filter: grayscale(100%);
    filter: invert(50%);
}