/* ================================================= */
/* ================= GLOBAL ======================== */
/* ================================================= */

* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 15% 10%, rgba(105, 205, 248, 0.8), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(78, 193, 255, 0.9), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(24, 141, 180, 0.9), transparent 50%),
        linear-gradient(160deg, #2494c0, #69b4ff 60%, #61fff4);

    background-size: cover;
}

/* Ambient Light Layer */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6), transparent 70%);
    opacity: 0.6;
}

/* ================================================= */
/* ================= HEADER ======================== */
/* ================================================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9),
            rgba(240, 249, 255, 0.7));

    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);

    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 20px 50px rgba(186, 230, 253, 0.6);

    border-radius: 20px;
    margin: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: linear-gradient(90deg, #ff6600, #f49200, #c75e02);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* ================================================= */
/* ================= LOGO ========================== */
/* ================================================= */

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

.logo-group img.logo {
    width: 46px;
    height: 46px;
    padding: 8px;
    border-radius: 14px;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9),
            rgba(240, 249, 255, 0.6));

    backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 12px 30px rgba(56, 189, 248, 0.6);

    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-group img.logo:hover {
    transform: scale(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 25px 50px rgba(14, 165, 233, 0.7);
}

img.logo {
    width: 60px !important;
    height: 60px !important;
}

/* ================================================= */
/* ================= BUTTONS ======================= */
/* ================================================= */

.btn-primary,
.btn-secondary,
button {
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #0f172a;

    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 15px 35px rgba(56, 189, 248, 0.5);

    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.btn-primary {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.9),
            rgba(240, 249, 255, 0.7)),
        linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.btn-secondary,
button {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 249, 255, 0.7));
}

.btn-primary:hover,
.btn-secondary:hover,
button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 25px 50px rgba(14, 165, 233, 0.8);
}

/* ================================================= */
/* ================= INPUT ========================= */
/* ================================================= */

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    color: #0f172a;
    outline: none;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 249, 255, 0.7));

    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);

    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 10px 25px rgba(186, 230, 253, 0.6);

    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border: 1px solid rgba(14, 165, 233, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px rgba(56, 189, 248, 0.4),
        0 20px 40px rgba(14, 165, 233, 0.5);
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ================================================= */
/* ================= GRID ========================== */
/* ================================================= */

.task-container {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* ================================================= */
/* ================= CARD ========================== */
/* ================================================= */

.task-card {
    padding: 22px;
    border-radius: 22px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 249, 255, 0.7));

    backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 25px 60px rgba(186, 230, 253, 0.6);

    display: flex;
    flex-direction: column;
    gap: 10px;

    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

.task-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 40px 80px rgba(14, 165, 233, 0.6),
        0 0 70px rgba(186, 230, 253, 0.9);
}

/* ================================================= */
/* ================= MODAL ========================= */
/* ================================================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(224, 242, 254, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(25px);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 400px;
    padding: 28px;
    border-radius: 24px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 249, 255, 0.8));

    backdrop-filter: blur(70px) saturate(200%);
    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 35px 90px rgba(14, 165, 233, 0.6);

    display: flex;
    flex-direction: column;
    gap: 12px;

    animation: fadeInGlass 0.4s ease forwards;
}

@keyframes fadeInGlass {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================================================= */
/* ================= H-MIN SYSTEM ================== */
/* ================================================= */

.hmin-text {
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    width: fit-content;
    margin-top: 6px;
    backdrop-filter: blur(30px);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hmin-normal {
    color: #0284c7;
    background: rgba(186, 230, 253, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.8);
}

.hmin-warning {
    color: #0f172a;
    background: linear-gradient(135deg,
            #fde68a,
            #fef3c7);
    box-shadow:
        0 0 20px rgba(253, 224, 71, 0.6),
        0 0 40px rgba(253, 224, 71, 0.4);
}

.hmin-danger,
.hmin-today,
.hmin-late,
.task-card.danger {
    background: linear-gradient(135deg, #bae6fd, #e0f2fe);
    color: #0f172a;
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.6),
        0 0 60px rgba(14, 165, 233, 0.5);
}

/* ================================================= */
/* ================= ANIMATIONS ==================== */
/* ================================================= */

@keyframes dangerPulse {
    0% {
        box-shadow:
            0 0 20px rgba(56, 189, 248, 0.5),
            0 0 40px rgba(14, 165, 233, 0.4);
    }

    50% {
        box-shadow:
            0 0 50px rgba(56, 189, 248, 0.8),
            0 0 80px rgba(14, 165, 233, 0.7);
    }

    100% {
        box-shadow:
            0 0 20px rgba(56, 189, 248, 0.5),
            0 0 40px rgba(14, 165, 233, 0.4);
    }
}

@keyframes lateShake {
    from {
        transform: translateX(-2px);
    }

    to {
        transform: translateX(2px);
    }
}
/* ================================================= */
/* ================= MOBILE RESPONSIVE ============= */
/* ================================================= */

@media screen and (max-width: 992px) {

    .task-container {
        padding: 28px;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .modal-content {
        width: min(92%, 420px);
        max-height: 90dvh;
    }
}


/* ================================================= */
/* ================= TABLET ======================== */
/* ================================================= */

@media screen and (max-width: 768px) {
    .header,
    .task-card,
    .modal-content,
    .logo-group img.logo,
    button,
    input,
    textarea,
    select {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    html, body {
        min-height: 100dvh;
    }

    body {
        background-attachment: scroll;
        background-size: cover;
        overflow-x: hidden;
    }

    /* ===== header stack ===== */
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
        margin: 14px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header-right button,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .header-left h1 {
        font-size: 20px;
        margin-right: 20px;
    }

    /* ===== logo ===== */
    .logo-group img.logo {
        width: 40px;
        height: 40px;
    }

    img.logo {
        width: 48px !important;
        height: 48px !important;
    }

    /* ===== grid ===== */
    .task-container {
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ===== card ===== */
    .task-card {
        padding: 18px;
        border-radius: 18px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .task-card:hover {
        transform: none;
    }

    /* ===== modal ===== */
    .modal {
        padding: 18px;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 100%;
        max-width: 420px;
        padding: 22px;
        border-radius: 22px;

        transform: translateY(30px) scale(0.96);
        opacity: 0;
        transition:
            transform 0.45s cubic-bezier(.16, 1, .3, 1),
            opacity 0.35s ease;
    }


    .modal.show .modal-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* ===== input ===== */
    input,
    textarea,
    select {
        font-size: 16px;
    }

    /* ===== button ===== */
    .btn-primary,
    .btn-secondary,
    button {
        padding: 14px;
        font-size: 14px;
        margin: 5px;
    }
}


/* ================================================= */
/* ================= SMALL PHONE =================== */
/* ================================================= */

@media screen and (max-width: 480px) {

    .header {
        padding: 16px;
        margin: 12px;
        border-radius: 16px;
    }

    .task-container {
        padding: 16px;
        gap: 14px;
    }

    .modal {
        padding: 14px;
    }

    .modal-content {
        padding: 18px;
        border-radius: 20px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .hmin-text {
        font-size: 12px;
        padding: 5px 10px;
    }
}
/* ================================================= */
/* ============ REMOVE DEFAULT BLUE EFFECT ========= */
/* ================================================= */

button,
input,
select,
textarea,
a {
    outline: none !important;

    -webkit-tap-highlight-color: transparent;
}

/* hilangkan focus & active bawaan browser */
button:focus,
button:active,
input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active,
a:focus,
a:active {
    outline: none !important;
}

/* hilangkan inner border khusus firefox */
button::-moz-focus-inner {
    border: 0;
}
/* ================================================= */
/* ================= FOOTER ======================== */
/* ================================================= */

.footer {
    margin-top: 80px;
    padding: 50px 60px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border-top: 1px solid rgba(186, 230, 253, 0.6);
}

.footer-content {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

/* ================= LEFT ================= */

.footer-left h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.footer-left p {
    margin-top: 10px;
    font-size: 14px;
    color: #334155;
    opacity: 0.8;
    max-width: 280px;
}

/* ================= RIGHT ================= */

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-right p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* ================= LINKS ================= */

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;

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

    color: #0ea5e9;
    text-decoration: none;

    transition: all 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* ================= ICON ================= */

.footer-icon {
    width: 18px;
    height: 18px;
}

/* ================= RESPONSIVE ================= */

@media screen and (max-width: 768px) {

    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-right {
        align-items: center;
        text-align: center;
    }
}
/* ================================================= */
/* ================= STATISTICS ==================== */
/* ================================================= */

.stats-wrapper {
    max-width: 1200px;
    margin: 35px auto 0 auto;
    padding: 0 50px;
}

.stats-bubble {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    padding: 20px 30px;
    border-radius: 30px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 249, 255, 0.75));

    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);

    border: 1px solid rgba(186, 230, 253, 0.8);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 25px 60px rgba(14, 165, 233, 0.35);

    transition: all 0.3s ease;
}

.stats-bubble:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 35px 70px rgba(14, 165, 233, 0.5);
}

/* ================= ITEM ================= */

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

/* Highlight telat */
.stat-value.danger {
    color: #dc2626;
}

/* Divider */
.stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(148, 163, 184, 0.3);
}

/* ================= RESPONSIVE ================= */

@media screen and (max-width: 768px) {
    .stats-wrapper {
        padding: 0 20px;
    }

    .stats-bubble {
        gap: 20px;
        justify-content: center;
        padding: 22px;
    }

    .stat-divider {
        display: none;
    }
}
