/* ================================
   RETRO WINDOW (mirip Windows 95)
   ================================ */

body {
    background: #f0f0f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Desktop background */
.desktop {
    padding: 24px;
}
.text-stroke {
    color: #fbeedc;                             /* warna isi */
    -webkit-text-stroke: 2px black;           /* stroke */
}
.text-retro {
    font-family: "Press Start 2P", monospace;
    color: #fbeedc;
    text-shadow: 2px 2px 0 #000;
}
.text-retro2 {
    font-family: "Press Start 2P", monospace;
    color: #505050ff;
    text-shadow: 2px 2px 0 #ffffffff;
}
.logo-text-box {
    display: flex;
    align-items: center;      /* vertikal rata tengah */
    gap: 8px;                 /* jarak antara logo & teks */
}
/* Frame jendela */
.retro-window {
    width: 100vw;
    height: 1200px;
    border: 3px solid #111;
    border-radius: 6px;
    background: #fbeedc; /* beige */
    box-shadow: 0 10px 0 #111;
}
.logo-header {
    height: 50px;        /* sesuaikan tinggi logo */
    margin-right: 6px;
    image-rendering: crisp-edges;
}
.logo-header-and {
    height: 40px;        /* sesuaikan tinggi logo */
    margin-right: 6px;
    image-rendering: crisp-edges;
}
/* Title bar orange */
.retro-titlebar {
    background: #f8993a;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 2px solid #111;
}

.retro-titlebar .retro-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tombol kecil kanan (min, max, close) */
.retro-window-buttons {
    display: flex;
    gap: 4px;
}

.retro-btn {
    width: 14px;
    height: 14px;
    border: 2px solid #111;
    background: #fbeedc;
    display: inline-block;
}

/* Bisa beda warna kalau mau */
.retro-btn-close {
    background: #ffb3b3;
}

/* Menu bar: File Edit View Help */
.retro-menubar {
    background: #fdfaf3;
    border-bottom: 2px solid #111;
    padding: 4px 12px;
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.retro-menubar span {
    cursor: default;
    text-decoration: underline;
}

/* Isi jendela */
.retro-body {
    padding: 16px;
}

/* Page-container di dalam retro window */
.page-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header di dalam retro body supaya simple */
.header {
    background: transparent;
    color: #111;
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #c4c4c4;
}

.header::before {
    content: none; /* matikan overlay grid lama */
}

/* Status badge dibuat kotak kecil */
.status-connected,
.status-disconnected {
    border-radius: 2px;
    box-shadow: none;
    font-size: 11px;
    padding: 2px 8px;
}

/* Grid card menempel ke tepi isi jendela */
.grid-6-cards {
    margin: 0;
}

/* Card dibuat flat & kotak seperti ikon window */
.card-custom {
    border-radius: 4px;
    border: 2px solid #111;
    background: #fdfaf3;
    box-shadow: none;
}

/* Judul card tipis */
.card-title {
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Area gambar / canvas */
.image-placeholder {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #111;
}
.logo-image{
    height: 150px;
}
.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* area krem besar di bawah header */
.content {
    height: calc(100% - 50px);      /* sesuaikan dengan tinggi header */
    padding: 20px;

    display: flex;
    justify-content: center;        /* center horizontal */
    align-items: center;            /* center vertikal */
}

/* kalau perlu batas lebar kotak welcome */
.welcome-box {
    max-width: 400px;
    width: 100%;
}

/* Canvas GPS biar ikut gaya */
#gpsCanvas {
    border: 2px solid #111;
    border-radius: 2px;
    background: #ffffff;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 kotak ke samping */
    gap: 60px;
    padding: 16px 8px 24px;
    max-width: 1800px;
    margin: 0 auto;                          /* center di tengah */
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.BOLD {
    font-weight: 700;
}
.icon-box .icon {
    width: 56px;
    height: 40px;
    border: 2px solid #111;
    border-radius: 4px;
    background: #ffffff;
    margin-bottom: 6px;
}

.icon-label {
    font-size: 12px;
    text-align: center;
}

/* --- TABLET: 2 KOLOM --- */
@media (max-width: 992px) {
    body {
        padding: 16px 0;
    }

    .desktop {
        padding: 16px;
    }

    .retro-window {
        width: 100%;
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 kolom */
        max-width: 100%;
    }
}

/* --- HP: 1 KOLOM --- */
@media (max-width: 576px) {
    body {
        padding: 12px 0;
        align-items: flex-start;          /* layar kecil, biar mulai dari atas */
    }

    .desktop {
        padding: 8px;
    }

    .retro-window {
        width: 100%;
        box-shadow: 0 6px 0 #111;
    }

    .retro-titlebar {
        flex-wrap: wrap;                 /* judul + tombol boleh turun baris */
        height: auto;
        row-gap: 4px;
    }

    .retro-window-buttons {
        margin-left: auto;               /* tombol tetap di kanan */
    }

    .status-connected,
    .status-disconnected {
        font-size: 9px;
        padding: 1px 6px;
    }

    .icon-grid {
        grid-template-columns: 1fr;      /* 1 kolom di HP */
        gap: 12px;
        padding: 12px;
    }

    .card-custom {
        font-size: 0.9rem;
    }

    .image-placeholder {
        height: auto;
        max-height: 220px;
    }
}
