﻿/* =========================
   ROOT THEME
========================= */
:root {
    --primary: #4f46e5;
    --primary-soft: #eef2ff;
    --bg: #f8fafc;
    --sidebar-bg: #111827;
    --sidebar-text: #9ca3af;
    --sidebar-active: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --hover-menu: #C5D9ED;
}

/* =========================
   BASE
========================= */
body {
    margin: 0;
    background: var(--bg);
    font-family: 'Segoe UI', sans-serif;
}

/* =========================
   LAYOUT
========================= */
.iam-layout {
    display: flex;
}

/* =========================
   SIDEBAR
========================= */
.iam-layout-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-soft);
    z-index: 1000;
    transition: 0.3s;
}

    /* HIDDEN MOBILE STATE */
    .iam-layout-sidebar.mobile-hide {
        transform: translateX(-100%);
    }

/* HEADER SIDEBAR */
.iam-sidebar-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .iam-sidebar-header img {
        height: 80px;
    }

/* MENU */
.iam-sidebar-menu {
    display: flex;
    flex-direction: column;
}

/* ITEM */
.iam-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.2s;
}

    .iam-menu-item:hover {
        color: white;
    }

    .iam-menu-item.active {
        background: var(--primary);
        color: white;
    }

/* =========================
   MAIN
========================= */
.iam-layout-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
========================= */
.iam-layout-header {
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100% - 300px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

/* HEADER LEFT */
.iam-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.iam-header-logo {
    height: 60px;
    display: none;
}

/* BURGER */
.iam-burger {
    width: 24px;
    height: 18px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .iam-burger span {
        height: 3px;
        width: 100%;
        background: var(--text);
        border-radius: 2px;
    }

/* =========================
   CONTENT
========================= */
.iam-layout-content {
    margin-top: 100px;
    padding-left: 20px;
    padding-right: 65px;
}

/* =========================
   SERVICE GRID
========================= */
.iam-service-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* CARD */
.iam-service-card {
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    min-height: 10px;
}
.iam-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999; /* di bawah sidebar */
}
/* VARIAN WARNA (biar beda tiap card) */
.iam-service-card.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.iam-service-card.green {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.iam-service-card.orange {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.iam-service-card.red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}
/* ROW 1: ANGKA */
.iam-service-number {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

/* ROW 2: TITLE */
.iam-service-title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

/* ROW 3: LINK */
.iam-service-link {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: 0.2s;
}

    .iam-service-link:hover {
        text-decoration: underline;
        color: white;
    }

.iam-login-card-left{
    width:700px;
}
.iam-login-input {
    width: 280px !important;
    margin-bottom:10px;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .iam-service-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* SHOW BURGER */
    .iam-burger {
        display: flex;
    }
    .iam-header-logo {
        height: 32px;
        display: flex;
    }
    .iam-login-btn {
        margin-top: 10px;
        width: 300px !important;
    }

    .iam-form-login-group {
        width: 350px;
    }

    .iam-form-login-child {
        margin-top: 10px;
    }

        .iam-form-login-child label {
            margin-bottom: 10px;
        }

    .iam-login-wrapper {
        width: 400px !important;
    }
    /* SIDEBAR MOBILE */
    .iam-layout-sidebar {
        transform: translateX(-100%);
    }

        .iam-layout-sidebar.collapsed {
            transform: translateX(0);
        }


    /* MAIN FULL */
    .iam-layout-main {
        margin-left: 0;
        width: 100%;
    }

    /* HEADER FULL */
    .iam-layout-header {
        left: 0;
        width: calc(100% - 30px);
    }

    /* GRID 1 COL */
    .iam-service-row {
        grid-template-columns: 1fr;
    }

    .iam-login-box.left .iam-login-card {
        flex: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top-left-radius: 25px;
        width:330px;
        border-radius:0px;
        height:100vh;
    }
    .iam-form-login-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 280px !important;
    }
    .iam-login-input {
        width: 280px;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ddd;
        transition: 0.2s;
    }

        .iam-login-input:focus {
            border-color: #4f46e5;
            outline: none;
        }
    .iam-btn-login {
        width: 300px;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        color: white;
        height: 50px;
    }
}

