@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Prompt', sans-serif;
    background: #fff0f6;
    color: #1645a3;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    background: linear-gradient(
        180deg,
        #ffd6e8 0%,
        #ffc5df 50%,
        #f9b5d5 100%
    );

    border-right: 1px solid rgba(255,255,255,0.7);

    box-shadow:
        8px 0 30px rgba(80, 45, 100, 0.12);

    padding: 25px 18px;

    z-index: 1000;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #ffffff,
        #ffe4f1
    );

    border-radius: 15px;

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(80, 45, 100, 0.15);
}

.logo h2 {
    color: #1645a3;
    font-size: 20px;
}

.logo span {
    font-size: 11px;
    color: #5271b5;
}

/* Menu */

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px 15px;

    border-radius: 14px;

    color: #1645a3;

    font-size: 14px;
    font-weight: 500;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,0.75);

    transform:
        translateX(7px);

    box-shadow:
        0 8px 20px rgba(60, 60, 120, 0.12);
}

.menu-item::before {
    content: "";

    position: absolute;
    left: 0;

    width: 4px;
    height: 0;

    border-radius: 10px;

    background: #1645a3;

    transition: 0.25s;
}

.menu-item:hover::before {
    height: 60%;
}

.menu-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffffaa;

    border-radius: 10px;

    font-size: 18px;
}

.sidebar-footer {
    margin-top: auto;

    padding: 12px 8px 4px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #3158a3;

    font-size: 12px;
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #20c997;

    box-shadow:
        0 0 0 5px rgba(32,201,151,0.15);

    animation: pulse 1.8s infinite;
}

/* =========================
   MAIN
========================= */

.main-content {
    margin-left: 280px;

    width: calc(100% - 280px);

    padding: 25px 35px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,0.8),
            transparent 25%
        );
}

/* Topbar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;
}

.topbar h1 {
    color: #1645a3;
    font-size: 28px;
}

.topbar p {
    color: #6680b8;
    font-size: 14px;
}

.clock {
    padding: 10px 18px;

    background: white;

    border-radius: 12px;

    color: #1645a3;

    font-weight: 600;

    box-shadow:
        0 8px 25px rgba(60, 60, 120, 0.08);
}

/* Menu button */

.menu-toggle {
    display: none;

    border: none;
    background: #1645a3;
    color: white;

    border-radius: 10px;

    padding: 9px 13px;

    font-size: 20px;

    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 45px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fff1f8 55%,
            #ffd9ea 100%
        );

    box-shadow:
        0 20px 50px rgba(70, 50, 100, 0.10);

    overflow: hidden;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: #ffc2df;

    right: -80px;
    top: -80px;

    opacity: 0.45;
}

.hero-text {
    max-width: 650px;

    position: relative;

    z-index: 2;
}

.badge {
    display: inline-block;

    padding: 7px 14px;

    border-radius: 30px;

    background: #e2ebff;

    color: #1645a3;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 15px;
}

.hero h2 {
    color: #17479e;

    font-size: 36px;

    line-height: 1.4;

    margin-bottom: 15px;
}

.hero h2 strong {
    color: #e83e8c;
}

.hero p {
    color: #637aa9;

    line-height: 1.8;

    margin-bottom: 25px;
}

.start-button {
    display: inline-block;

    padding: 13px 25px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #1645a3,
            #3673df
        );

    border-radius: 13px;

    box-shadow:
        0 10px 25px rgba(22,69,163,0.25);

    transition: 0.3s;
}

.start-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(22,69,163,0.3);
}

.hero-icon {
    font-size: 150px;

    animation: floating 3s ease-in-out infinite;

    filter:
        drop-shadow(
            0 15px 20px rgba(50,50,100,0.15)
        );
}

/* =========================
   CARDS
========================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 25px;
}

.info-card {
    background: rgba(255,255,255,0.85);

    border: 1px solid #ffffff;

    padding: 25px;

    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(60, 60, 120, 0.08);

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(60, 60, 120, 0.14);
}

.card-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 23px;

    margin-bottom: 15px;
}

.blue {
    background: #e4edff;
}

.purple {
    background: #eee5ff;
}

.orange {
    background: #fff0d9;
}

.green {
    background: #ddf8ed;
}

.pink {
    background: #ffe4f1;
}

.info-card h3 {
    color: #1645a3;

    margin-bottom: 8px;
}

.info-card p {
    color: #7182a5;

    font-size: 13px;

    line-height: 1.7;

    min-height: 45px;
}

.info-card a {
    display: inline-block;

    margin-top: 15px;

    color: #e83e8c;

    font-size: 13px;

    font-weight: 600;
}

/* Footer */

footer {
    text-align: center;

    margin-top: 35px;

    color: #8091b4;

    font-size: 12px;
}

/* =========================
   ANIMATION
========================= */

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(32,201,151,0.4);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(32,201,151,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(32,201,151,0);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1100px) {

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);

        transition: 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;

        width: 100%;

        padding: 20px;
    }

    .menu-toggle {
        display: block;

        margin-right: 15px;
    }

    .topbar {
        gap: 15px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .clock {
        display: none;
    }

    .hero {
        padding: 30px;

        min-height: 300px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero-icon {
        display: none;
    }

}

@media (max-width: 550px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        border-radius: 20px;
    }

}
/* ==========================================
ขนาดรูป COMPUTER
========================================== */

.computer-image-container {
width: 100%;


display: flex;
justify-content: center;
align-items: center;

padding: 20px;

background:
    linear-gradient(
        135deg,
        #fff8fb,
        #f7f9ff
    );

border-radius: 18px;

overflow: hidden;


}

.computer-image {
display: block;


/* ปรับความกว้างตรงนี้ */
width: 90%;

/* ปรับความสูงตรงนี้ */
height: 70%;

/* ป้องกันภาพเสียสัดส่วน */
object-fit: contain;

border-radius: 12px;

box-shadow:
    0 8px 25px rgba(50, 60, 100, 0.08);

transition: 0.3s ease;


}

.computer-image:hover {
transform: scale(1.01);


box-shadow:
    0 12px 35px rgba(50, 60, 100, 0.14);


}
