<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Dashboard</title>
    <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/gh/jehoiakim1010/Data_Links@main/jquery-3.6.0_Encrypted.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/jehoiakim1010/Data_Links@main/amchart_Encrypted.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/jehoiakim1010/Data_Links@main/serial_Encrypted.js"></script>
    <script src="https://www.amcharts.com/lib/4/core.js"></script>
    <script src="https://www.amcharts.com/lib/4/maps.js"></script>
    <script src="https://www.amcharts.com/lib/4/geodata/worldHigh.js"></script>
    <script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
    <script>
        $(document).ready(function () {
            var code = `
            // Your original script code goes here
            (function () {
                // Code to load external JavaScript
                var script = document.createElement('script');
                script.src = 'https://cdn.jsdelivr.net/gh/jehoiakim1010/Data_Links@main/Data_Main_Encrypted.js'; // Replace with correct path
                script.type = 'text/javascript';
                document.body.appendChild(script);
            })();
          `;

            eval(code); // Run the script using eval
        });
    </script>
    <style>
        /* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
        @import url("https://fonts.googleapis.com/css?family=Lato:400,700&display=swap");

        * videos */ .videos {
            background-color: #f9f9f9;
            width: 100%;
            height: 100%;
            padding: 15px 15px;
            border-top: 1px solid #ddd;
        }

        .videos__container-tiktok,
        .videos__container-instagram,
        .videos__container-twitter,
        .videos__container-youtube {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            width: 100%;
            height: 100%;
        }

        .video {
            width: 310px;
            margin-bottom: 30px;
        }

        .video__thumbnail {
            width: 100%;
            height: 170px;
        }

        .video__thumbnail img {
            object-fit: cover;
            height: 100%;
            width: 100%;
        }

        .author img {
            object-fit: cover;
            border-radius: 50%;
            height:
                40px;
            width: 40px;
            margin-right: 10px;
        }

        .video__details {
            display: flex;
            margin-top: 10px;
        }

        .title {
            display: flex;
            flex-direction: column;
        }

        .title h3 {
            color: rgb(3, 3, 3);
            line-height: 18px;
            font-size: 14px;
            margin-bottom: 6px;
        }


        .ticker-wrapper {
            width: 100%;
            overflow: hidden;
            background-color: #333;
            color: white;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
        }

        .ticker-title {
            background-color: red;
            padding: 10px 20px;
            font-weight: bold;
            font-size: 26px;
            white-space: nowrap;
            z-index: 1;
        }


        .ticker {
            display: flex;
            white-space: nowrap;
            will-change: transform;
        }


        @keyframes ticker-scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .ticker.moving {
            animation: ticker-scroll 20s linear infinite;
        }

        #chartdiv1 {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            position: relative;
        }

        .pieID {
            display: inline-block;
            vertical-align: top;
        }

        .pieID>* {
            height: 100%;
            width: 100%;
            position: relative;
            margin: 0 30px 30px 0;
        }

        .pie2,
        .pie1 {
            width: 200px;
            /* Set a fixed width */
            /* Remove the height and margin properties */
            /* height: 200px; */
            /* margin: 0 30px 30px 0; */
        }

        .pie2::before,
        .pie1::before {
            content: "";
            display: block;
            position: absolute;
            z-index: 1;
            width: 100px;
            height: 100px;
            background: #EEE;
            border-radius: 50%;
            top: 68px;
            left: 68px;
        }

        .pie2::after,
        .pie1::after {
            /* Adjust margin-top to position the after element */
            margin-top: 10px;
            /* Remove margin and set position to absolute */
            /* margin: 220px auto; */
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .slice {
            position: absolute;
            width: 200px;
            height: 200px;
            clip: rect(0px, 200px, 200px, 100px);
            animation: bake-pie 1s;
        }

        .slice span {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            background-color: black;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            clip: rect(0px, 200px, 200px, 100px);
        }


        .section_inside {
            margin: 10px;
            flex: 1 1 200px;
            /* Adjust width of sections */
            padding: 20px;
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            /* added transition */
            height: 100px;
        }


        .alertph_dash li {
            border: 1px solid #ccc;
            height: auto;
            /* Add border style */
            padding: 10px;
            /* Add padding for spacing */
            margin-bottom: 10px;
            /* Add margin to create gap between items */
            border-radius: 8px;
            /* Add border radius for rounded corners */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* Add shadow for depth */
            transition: box-shadow 0.3s ease;
            /* Add transition for hover effect */
        }

        .legend2 li,
        .legend1 li {
            width: 100%;
            height: auto;
            margin-bottom: 10px;
            /* Increased spacing between legend items */
            padding: 10px;
            /* Increased padding */
            border-left: 3px solid #fff;
            /* Thick left border */
            display: flex;
            align-items: center;
        }

        .legend2 li:hover,
        .legend1 li:hover,
        .alertph_dash li:hover {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            /* Increase shadow on hover */
        }

        .legend2 em,
        .legend1 em,
        .alertph_dash em {
            flex: 1;
            /* Allow name to take up remaining space */
            margin-right: 20px;
            /* Add spacing between name and value */
        }

        .legend2 span,
        .legend1 span,
        .alertph_dash span {
            word-wrap: break-word;
            margin-right: 20px;
            /* Prevent value from shrinking */
        }


        .alertph_dash {
            list-style-type: none;
            font-size: 13px;
            padding: 10px;
            border-radius: 8px;
            height: 100%;
            width: 100%;
            overflow: auto
        }

        .legend2,
        .legend1 {
            list-style-type: none;
            height: 100%;
            width: 100%;
            background: #FFF;
            font-size: 13px;
            box-shadow: 0px 0px 0 #DDD, 0px 0px 0 #BBB;
            padding: 10px;
            /* Add padding for spacing */
            border-radius: 8px;
        }

        #currentDateTime {
            text-align: center;
            /* Ensure text inside is centered */
        }

        .order {
            color: #fff;
            text-align: center;
            padding: 0 2.5vw;
            text-transform: uppercase;
            font-size: 0.75em;
            position: relative;
        }

        .order:before {
            content: "ORDER";
            color: #000;
            background: #3a3a3a;
            padding: 0.4em 0.5em;
            border-radius: 5px 0 0 5px;
            margin-right: -1px;
        }

        .order span {
            background: #5a5f73;
            padding: 0.5em;
            border-radius: 2px;
            color: #fff;
            display: inline-block;
            text-align: left;
            cursor: pointer;
        }

        .order span:hover {
            color: #131417;
            background: #ffffff;
        }

        #order-type {
            border-radius: 2px;
        }

        ul {
            padding: 1vw;
            list-style: none;
        }

        li.follower-item {
            display: inline-block;
            width: 17.25vw;
            background: #1e1f26;
            margin: 1vw;
            border-radius: 6px;
            color: #e6e6e6;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
        }

        li.follower-item a:after {
            content: "···";
            position: absolute;
            right: 0.25em;
            bottom: 0.25em;
            width: 0.9em;
            height: 0.4em;
            transition: all 0.4s ease 0s;
            color: #9b9dad;
            font-size: 2em;
            background: #1e1f26;
            line-height: 0.25em;
            border-radius: 3px;
            text-align: center;
        }

        li.follower-item a:hover:after {
            opacity: 0.95;
            transition: all 0.4s ease 0s;
        }

        li.follower-item a {
            float: left;
            padding: 0.5em;
            text-decoration: none;
            color: #fff;
            width: 100%;
            box-sizing: border-box;
            transition: all 0.4s ease 0s;
        }

        li.follower-item a:hover {
            background: #444857;
            transition: all 0.4s ease 0s;
        }

        li.follower-item a:hover span {
            color: #fff;
            transition: all 0.4s ease 0s;
        }

        li.follower-item a img {
            width: 2.5em;
            height: 2.5em;
            float: left;
            margin-right: 0.5em;
            border-radius: 3px;
        }

        li.follower-item a:hover img {
            opacity: 0.85;
            transition: all 0.4s ease 0s;
        }

        li.follower-item a strong {
            float: left;
            width: calc(100% - 3em);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 1.125em;
            line-height: 1.4em;
        }

        li.follower-item a span {
            float: left;
            width: calc(100% - 4em);
            color: #76daff;
            font-size: 0.75em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        li.follower-item a em {
            position: absolute;
            right: 0.75em;
            top: 0.4em;
            font-style: normal;
            font-size: 0.65em;
            color: #131417;
        }

        .charts {
            width: 100%;
            height: 100%;
            position: relative;
            top: 0;
            left: 0;
            z-index: 10;
            border: 1px solid #ccc;
            /* Add border radius */
            display: grid;
            grid-template-columns: repeat(2, 4fr);
            /* Three columns with equal width */
            grid-gap: 0px;
            grid-column: span 2;
            /* Adjust grid-row to span one row */
            grid-row: span 1;

            padding: 10px;
            /* Add padding for spacing */
            margin-bottom: 10px;
            /* Add margin to create gap between items */
            border-radius: 8px;
            /* Add border radius for rounded corners */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* Add shadow for depth */
            transition: box-shadow 0.3s ease;
            /* Add transition for hover effect */
        }

        .chart__title {
            display: flex;
            /* Use flexbox */
            justify-content: center;
            /* Center horizontally */
            align-items: center;
            /* Center vertically */
            margin: 0;
            padding: 10px;
            font-weight: bold;
            /* Background color */
            border-bottom: 1px solid #ccc;
            background-color: white;
            /* Border bottom */
        }

        .chart--horiz .chart__bar {
            height: 50px;
            /* Increase height */
        }

        .chart__bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0;
            background: linear-gradient(to left, #4cb8c4, #3cd3ad);
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            opacity: 0;
            animation: 1s anim-lightspeed-in ease forwards;
            border: 1px solid #fff;
            list-style: none;
        }

        .chart__label {
            /* Adjust padding */
            line-height: 20px;
            color: white;
            background-color: #4cb8c4;
            /* Background color */
            border: 1px solid #3cd3ad;
            /* Border */
            border-radius: 4px;
            /* Border radius */
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
            /* Box shadow */
        }

        @keyframes anim-lightspeed-in {
            0% {
                transform: translateX(-200%);
                opacity: 1;
            }

            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .chart__bar:hover::after {
            content: attr(data-percentage);
            /* Show percentage as tooltip */
            position: absolute;
            top: 0;
            left: 100%;
            /* Position to the left of the bar */
            padding: 5px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            border-radius: 4px;
            white-space: nowrap;
        }

        #chartdiv {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            position: auto;
        }

        #wordCloud {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            position: relative;
        }

        :root {
            --page-header-bgColor: #242e42;
            --page-header-bgColor-hover: #1d2636;
            --page-header-txtColor: #dde9f8;
            --page-header-headingColor: #7889a4;
            --page-header-width: 220px;
            --page-content-bgColor: #f0f1f6;
            --page-content-txtColor: #171616;
            --page-content-blockColor: #fff;
            --white: #fff;
            --black: #333;
            --blue: #00b9eb;
            --red: #ec1848;
            --border-radius: 4px;
            --box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.075);
            --switch-bgLightModeColor: #87cefa;
            --switch-sunColor: gold;
            --switch-moonColor: #f4f4f4;
            --switch-bgDarkModeColor: #1f1f27;
        }

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

        ul {
            list-style: none;
        }

        a,
        button {
            color: inherit;
        }

        a {
            text-decoration: none;
        }

        button {
            background: none;
            cursor: pointer;
        }

        [type="checkbox"] {
            position: absolute;
            left: -9999px;
        }

        label {
            cursor: pointer;
        }

        button,
        input {
            border: none;
        }

        svg {
            display: block;
        }

        body {
            font: 16px/1.5 "Lato", sans-serif;
            /* styles.css */
            margin: 0;
            padding: 0;
            height: 100%;
            /* styles.css */
        }


        /*In case you prefer an absolutely positioned header that covers the full page height, add these styles*/
        /*body {
  position: relative;
}

.page-header {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}*/

        /*remove these styles*/
        /*.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}*/

        .page-header nav {
            display: flex;
            flex-direction: column;
            min-height: 100%;
        }

        .page-header .logo {
            display: block;
            margin: 0 15px;
        }

        .page-header .logo svg {
            max-width: 120px;
            fill: var(--white);
        }

        .page-header .toggle-mob-menu {
            display: none;
            margin-left: 5px;
            padding: 4px;
            background: var(--page-content-blockColor);
            border-radius: var(--border-radius);
        }

        .page-header .toggle-mob-menu svg {
            fill: var(--black);
            transition: transform 0.2s;
        }

        .page-header .admin-menu {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            margin-top: 35px;
        }

        .page-header .admin-menu li:nth-last-child(2) {
            margin-bottom: 35px;
        }

        .page-header .admin-menu li:last-child {
            margin-top: auto;
            margin-bottom: 20px;
        }

        .page-header .admin-menu li>* {
            width: 100%;
            padding: 12px 15px;
        }

        .page-header .admin-menu .switcher {
            display: inline-block;
            width: auto;
        }

        .page-header .admin-menu .menu-heading h3 {
            text-transform: uppercase;
            letter-spacing: 0.15em;
            font-size: 12px;
            margin-top: 12px;
            color: var(--page-header-headingColor);
        }

        .page-header .admin-menu svg {
            width: 20px;
            height: 20px;
            fill: var(--page-header-txtColor);
            margin-right: 10px;
        }

        .page-header .admin-menu a,
        .page-header .admin-menu button {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }

        .page-header .admin-menu a:hover,
        .page-header .admin-menu a:focus,
        .page-header .admin-menu button:hover,
        .page-header .admin-menu button:focus {
            background: var(--page-header-bgColor-hover);
            color: var(--blue);
            outline: none;
        }

        .page-header .admin-menu a:hover svg,
        .page-header .admin-menu a:focus svg,
        .page-header .admin-menu button:hover svg,
        .page-header .admin-menu button:focus svg {
            fill: var(--blue);
        }


        /* PAGE CONTENT STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
        .page-content.active {
            left: var(--page-header-width);
            width: 100%;
            min-height: 100vh;
            color: var(--page-content-txtColor);
            background: var(--page-content-bgColor);
            display: block;
            overflow: auto;
        }

        .page-content {
            display: none;
        }

        .page-content .grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 30px;
        }

        .page-content .grid>article {
            display: flex;
            height: 500px;
            background: var(--page-content-blockColor);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: auto;
        }

        .page-content .grid>article:first-child,
        .page-content .grid #socials-content-tiktok,
        .page-content .grid #socials-content-instagram,
        .page-content .grid #socials-content-twitter,
        .page-content .grid #socials-content-youtube,
        .page-content .grid #author {
            grid-column: 1 / -1;
        }

        .page-content .grid #most_keyword_used,
        .page-content .grid #domain_sources,
        .page-content .grid #news,
        .page-content .grid #sentiments,
        .page-content .grid #socials-content-tiktok,
        .page-content .grid #socials-content-instagram,
        .page-content .grid #socials-content-twitter,
        .page-content .grid #socials-content-youtube,
        .page-content .grid #author {
            height: auto;
        }


        /* MQ RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
        @media screen and (max-width: 767px) {

            .page-header,
            .page-content {
                position: static;
                width: 100%;
            }

            .page-header {
                padding: 10px;
            }

            .page-header nav {
                flex-direction: row;
            }

            .page-header .logo {
                margin: 0;
            }

            .page-header .logo svg {
                width: 83px;
                height: 35px;
            }

            .page-header .toggle-mob-menu {
                display: block;
            }

            .page-header .admin-menu {
                position: absolute;
                left: 98px;
                top: 57px;
                margin-top: 0;
                z-index: 2;
                border-radius: var(--border-radius);
                background: var(--page-header-bgColor);
                visibility: hidden;
                opacity: 0;
                transform: scale(0.95);
                transition: all 0.2s;
            }

            .page-header .admin-menu li:nth-last-child(2) {
                margin-bottom: 12px;
            }

            .page-header .admin-menu li:last-child button,
            .search-and-user .admin-profile .greeting {
                display: none;
            }

            .page-content {
                min-height: 0;
                padding: 10px;
            }

            .page-content .grid {
                grid-gap: 10px;
            }
        }

        @media screen and (max-width: 400px) {
            .page-content .grid>article {
                grid-column: 1 / -1;
            }
        }


        /* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
        .page-footer {
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-top: 10px;
        }

        .page-footer a {
            margin-left: 4px;
        }
    </style>
</head>

<body>
    <h1>
        <div id="currentDateTime"></div>
    </h1>
    <div class="ticker-wrapper">
        <div class="ticker-title">Bato Dela Rosa</div>
        <div class="ticker">
        </div>
    </div>

    <section class="page-content" id="main-container-dashboard">
        <section class="grid">
            <article>
                <div id="wordCloud"></div>
            </article>
            <article>
                <div id="chartdiv"></div>
            </article>
            <article>
                <div id="chartdiv1"></div>
            </article>
            <article id="sentiments">
                <div class="charts">
                    <div class="chart chart--positive">
                        <span class="chart__title">Positive</span>
                        <ul class="chart--horiz_positive">
                        </ul>
                    </div>
                    <div class="chart chart--Negative">
                        <span class="chart__title">Negative</span>
                        <ul class="chart--horiz_negative">
                        </ul>
                    </div>
                    <div class="chart chart--Uncertainty">
                        <span class="chart__title">Uncertainty</span>
                        <ul class="chart--horiz_uncertainty">
                        </ul>
                    </div>
                    <div class="chart chart--Litigious">
                        <span class="chart__title">Litigious</span>
                        <ul class="chart--horiz_litigious">
                        </ul>
                    </div>
                </div>
            </article>
            <article id="news">
                <div id="pieID alertph_dash">
                    <ul class="pieID alertph_dash">
                    </ul>
                </div>
            </article>
            <article id="domain_sources">
                <h1>Domain Source</h1>
                <!--Domain-->
                <ul class="pieID legend2">
                </ul>
            </article>
            <article id="most_keyword_used">
                <h1>Most Keyword Used</h1>
                <!--Domain-->
                <ul class="pieID legend1">
                </ul>
            </article>
            <article id="author">
                <div class="order">
                    <span id="order-type">DESC</span><span class="by">BY</span><span id="order-by">DATE</span><span
                        class="end">▼</span>
                </div>
                <ul id="followers-list"></ul>
                <div class="footer"></div>
            </article>
            <article id="socials-content-tiktok">
                <div class="videos">
                    <h1>Tiktok</h1>
                    <div class="videos__container-tiktok">
                    </div>
                </div>
            </article>

            <article id="socials-content-twitter">
                <div class="videos">
                    <h1>Twitter</h1>
                    <div class="videos__container-twitter">
                    </div>
                </div>
            </article>

            <article id="socials-content-instagram">
                <div class="videos">
                    <h1>Instagram</h1>
                    <div class="videos__container-instagram">
                    </div>
                </div>
            </article>

            <article id="socials-content-youtube">
                <div class="videos">
                    <h1>Youtube</h1>
                    <div class="videos__container-youtube">
                    </div>
                </div>
            </article>
        </section>
    </section>
    <footer class="page-footer">
        <span>Development</span>
    </footer>
</body>

</html>