/* =====================
   Reset & Base
   ===================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #dbdbdb;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* =====================
   Typography
   ===================== */
h1 {
    font-size: 1.5em;
    color: #000;
    margin-left: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

h2 {
    font-size: 1.5em;
    color: #000;
    margin: 10px 0 20px 0;
    font-family: Arial, Helvetica, sans-serif;
}

h3 {
    font-size: 1.1em;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

p {
    font-size: 1em;
    color: #000;
    margin: 0 0 12px 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   Navigation
   ===================== */
.topnav {
    background-color: #333;
    overflow: hidden;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav button.split,
.topnav a.split {
    display: block !important;
    float: right !important;
    background-color: #00bfff !important;
    color: white !important;
    height: 48px;
    width: 80px;
    font-size: 17px;
    line-height: 48px;
    text-align: center;
    padding: 0 !important;
    border: none;
}

.topnav a.split:hover,
.topnav button.split:hover {
    background-color: #00bfff !important;
    color: white !important;
    opacity: 0.8;
}

/* =====================
   Logo Icon
   ===================== */
.icon_png {
    position: absolute;
    z-index: -99999;
    top: 0;
    left: 0;
    width: 45px;
    height: auto;
}

.icon_png img {
    width: 100%;
}

/* =====================
   Buttons
   ===================== */
button {
    background-color: #00bfff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

.cta-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background-color: #00bfff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
}

.cta-btn:hover {
    opacity: 0.8;
}

/* =====================
   About Page Layout
   ===================== */
.about-layout {
    display: flex;
    gap: 0;
    padding: 20px 50px;
    align-items: flex-start;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin: 0 0 12px 0;
}

.about-content p {
    margin: 0 0 12px 0;
}

/* =====================
   Side Navigation
   ===================== */
.side-nav {
    width: 180px;
    flex-shrink: 0;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 24px;
    overflow: hidden;
}

.side-nav h3 {
    background-color: #333;
    color: #f2f2f2;
    margin: 0;
    padding: 12px 16px;
    font-size: 1em;
}

.side-nav a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s;
}

.side-nav a:hover {
    background-color: #ddd;
}

.side-nav a.active {
    background-color: #00bfff;
    color: white;
    font-weight: bold;
}

/* =====================
   Info Cards
   ===================== */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #ccc;
}

.info-card h3 {
    margin: 0 0 8px 0;
}

.info-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

.info-card li {
    margin-bottom: 6px;
    font-size: 0.95em;
    font-family: Arial, Helvetica, sans-serif;
}

.info-card p {
    font-size: 0.95em;
}

/* =====================
   Stat Highlights
   ===================== */
.stat-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.stat-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-box-green {
    border-color: #00bfff;
    background: #e8f9ff;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #00bfff;
    font-family: Arial, Helvetica, sans-serif;
}

.stat-label {
    font-size: 0.85em;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   Stat Bar Chart
   ===================== */
.stat-bar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-bar-label {
    font-size: 0.9em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #333;
}

.stat-bar-track {
    background: #e5e7eb;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.stat-bar-red    { background-color: #f44336; }
.stat-bar-green  { background-color: #4caf50; }
.stat-bar-orange { background-color: #ff9800; }

/* =====================
   Source Citation
   ===================== */
.stat-source {
    margin-top: 20px;
    font-size: 0.85em;
    color: #666;
}

.stat-source a {
    color: #00bfff;
    text-decoration: none;
}

.stat-source a:hover {
    text-decoration: underline;
}

/* =====================
   Modal
   ===================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto;
    border: 1px solid #888;
    width: 40%;
}

.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
}

.animate {
    animation: animatezoom 0.6s;
    -webkit-animation: animatezoom 0.6s;
}

@keyframes animatezoom {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

@-webkit-keyframes animatezoom {
    from { -webkit-transform: scale(0); }
    to   { -webkit-transform: scale(1); }
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

img.avatar {
    width: 20%;
    border-radius: 50%;
}

.container {
    padding: 0 16px;
}

.container input[type=text],
.container input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.container a {
    color: #00bfff;
    text-decoration: none;
}

.container::after,
.row::after {
    content: "";
    clear: both;
    display: table;
}

span.psw {
    float: right;
    padding-top: 16px;
}

.psw {
    color: #000;
    text-decoration: none;
    padding-right: 10px;
}

/* =====================
   Responsive
   ===================== */
@media screen and (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        padding: 16px;
    }

    .side-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .side-nav a {
        display: inline-block;
        width: auto;
        border-bottom: none;
        border-right: 1px solid #ddd;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .stat-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }
}