﻿
/* =======================================================
   GLOBAL DESIGN SYSTEM
   ======================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #22c55e;
    --danger: #dc2626;
    --bg: #f4f7fb;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 20px 50px rgba(15,23,42,0.08);
    --font: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

/* =======================================================
   TOP BAR (MASTER PAGE)
   ======================================================= */

.esg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    /*.esg-topbar .logo {
        font-weight: 700;
        color: var(--primary);
    }*/

    .esg-topbar .logo {
        font-weight: 700;
        font-size: 18px;
        color: var(--primary);
        white-space: nowrap;
    }

    .esg-topbar .nav {
        display: flex;
        align-items: center;
        gap: 22px; /* better than margin-left */
    }

        .esg-topbar .nav a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: 14px;
            position: relative;
            padding: 6px 4px;
        }

            .esg-topbar .nav a::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: 0;
                width: 0%;
                height: 2px;
                background: var(--primary);
                transition: 0.2s ease;
            }

            .esg-topbar .nav a:hover::after {
                width: 100%;
            }

/* =======================================================
   MAIN LAYOUT
   ======================================================= */

.esg-split {
    display: flex;
    min-height: calc(100vh - 60px);
}

.left-panel {
    width: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.right-panel {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* =======================================================
   BANNER IMAGE SYSTEM (NEW ADDITION)
   ======================================================= */

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(1.05) contrast(1.05);
    z-index: 0;
}

.desktop-img {
    display: block;
}

/*.mobile-img {
    display: none;
}*/

.left-panel .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom right, rgba(0,0,0,0.55), rgba(0,0,0,0.35) );
    z-index: 1;
}

.event-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding: 40px;
}

.event-tag {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 13px;
    margin-bottom: 25px;
}

.event-content h1 {
    font-size: 48px;
    margin: 0 0 20px;
    font-weight: 700;
}

.event-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
}

/* =======================================================
   CARD
   ======================================================= */

.esg-card {
    width: 100%;
    max-width: 450px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* =======================================================
   INPUT
   ======================================================= */

.esg-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.esg-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

    .esg-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }

/* =======================================================
   BUTTON
   ======================================================= */

.btn {
    width: 100%;
    max-width: 120px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin: 0 auto;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

/* =======================================================
   POPUP MODE
   ======================================================= */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
}

.popup-box {
    background: #fff;
    width: 450px;
    max-width: 90%;
    margin: 150px auto;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

    .popup-box h3 {
        margin-bottom: 15px;
    }

.popup-buttons {
    margin-top: 20px;
}

    .popup-buttons button {
        padding: 10px 20px;
        margin: 0 5px;
        cursor: pointer;
    }

/* =======================================================
   LOGIN MODE
   ======================================================= */
.login-screen {
    background: linear-gradient(135deg, #0f172a, #1e3a8a)!important;
}

/* =======================================================
   ALIGN BUTTON SUBMIT & RESET
   ======================================================= */
.btn-container {
    display: flex;
    justify-content: center; /* <-- ini yang center kan 2 button */
    align-items: center;
    gap: 5px; /* rapat sikit */
}

.full-btn {
    margin: 0;
}

/* =======================================================
   PARTICIPANT TABLE REGISTRATION FORM
   ======================================================= */
.participant-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .participant-table th,
    .participant-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    .participant-table th {
        background: #1e3a8a;
        color: white;
        text-align: left;
    }

    .participant-table td input {
        width: 100%;
    }

/* =======================================================
   POPUP MODE
   ======================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.modal-box {
    background: white;
    width: 400px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: popup .3s ease;
}


.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: auto;
    background: #0b6b4f;
    color: white;
    font-size: 40px;
    line-height: 60px;
}


.modal-box h3 {
    margin-top: 20px;
    color: #0b6b4f;
}


.modal-box p {
    font-size: 16px;
    color: #333;
}


.modal-close-btn {
    margin-top: 20px;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    background: #0b6b4f;
    color: white;
    cursor: pointer;
}


    .modal-close-btn:hover {
        opacity: .8;
    }



@keyframes popup {

    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =======================================================
   WALK-IN MODE
   ======================================================= */

.walkin-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 15px;
    /*background: linear-gradient(135deg, #0f172a, #1e3a8a);*/
    overflow-y: auto;
    background: linear-gradient( to bottom right, rgba(0,0,0,0.55), rgba(0,0,0,0.35) ), url('/Content/img/industryOutreach/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.walkin-box,
.esg-card {
    max-height: 90vh;
    overflow-y: auto;
}

.walkin-box {
    margin: 0 auto;
    max-width: 980px;
}

/* setiap field container */
.walkin-form .form-group, .esg-form .form-group {
    margin-bottom: 18px; /* 👈 ini penting untuk jarakkan field */
}

/* label lebih kemas */
.walkin-form label, .esg-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
}

/* input consistency */
.walkin-form .esg-input,
.walkin-form input[type="text"],
.walkin-form select,
.walkin-form textarea,
.esg-form .esg-input,
.esg-form input[type="text"],
.esg-form select,
.esg-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

    /* focus effect */
    .walkin-form .esg-input:focus,
    .walkin-form input:focus,
    .walkin-form select:focus,
    .walkin-form textarea:focus,
    .esg-form .esg-input:focus,
    .esg-form input:focus,
    .esg-form select:focus,
    .esg-form textarea:focus {
        border-color: #2a7f62;
        box-shadow: 0 0 0 3px rgba(42,127,98,0.1);
        outline: none;
    }

/* row layout (kalau ada 2 column) */
.walkin-form .form-row, .esg-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

    .walkin-form .form-row .form-group, .esg-form .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }

/* radio group spacing */
.walkin-form .esg-radio-group, .esg-form .esg-radio-group {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* TITLE */
.form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2a7f62;
}

/* SECTION TITLE */
.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e6e6;
    color: #2a7f62;
}

/* ROW LAYOUT */
.form-row {
    display: flex;
    gap: 20px;
}

/* FORM FIELD */
.walkin-form {
    flex: 1;
    margin-bottom: 18px;
}

/* LABEL */
.esg-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* INPUT */
.esg-input,
.walkin-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

    .esg-input:focus,
    .walkin-form select:focus {
        border-color: #2a7f62;
        box-shadow: 0 0 0 3px rgba(42,127,98,0.12);
        outline: none;
    }

/* QUESTION BOX */
.question-box {
    background: #f8fbf9;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #e6efe9;
    margin-bottom: 16px;
}

    /* RADIO BUTTON */
    .question-box input[type="radio"] {
        accent-color: #2a7f62;
        transform: scale(1.1);
        margin-right: 6px;
    }

    .question-box table td {
        padding-right: 20px;
        padding-bottom: 10px;
    }

/* BUTTON */
.full-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
}

/* mobile first */
.form-row {
    flex-direction: column;
}

/* =======================================================
   SUCCESS SCREEN
   ======================================================= */

.success-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0fdf4;
    text-align: center;
}

.success-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.success-icon {
    font-size: 60px;
    color: var(--success);
}

/* =======================================================
   POPUP
   ======================================================= */

.esg-popup {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.esg-popup-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
}

/* ================================
   POPUP OVERLAY BACKGROUND
   ================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* IMPORTANT: hidden by default */
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

/* ================================
   POPUP CARD
   ================================ */
.popup-card {
    background: #ffffff;
    width: 420px;
    max-width: 90%;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: popupFade 0.25s ease-in-out;
}

/* animation */
@keyframes popupFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   TITLE
   ================================ */
.popup-card h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #0f172a;
    text-align: center;
}

/* ================================
   CLIENT INFO
   ================================ */
.client-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 20px;
}

    .client-info strong {
        color: #0f172a;
    }

/* ================================
   BUTTON AREA
   ================================ */
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ================================
   BUTTON STYLE
   ================================ */
.submit-btn,
.cancel-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

/* confirm button */
.submit-btn {
    background: #2563eb;
    color: #fff;
}

    .submit-btn:hover {
        background: #1d4ed8;
    }

/* cancel button */
.cancel-btn {
    background: #e2e8f0;
    color: #0f172a;
}

    .cancel-btn:hover {
        background: #cbd5e1;
    }

/* ================================
   MESSAGE POPUP CENTER TEXT
   ================================ */
#messagePopup .client-info {
    display: flex;
    justify-content: center;
    text-align: center;
}

#messagePopup #messageText {
    font-size: 16px;
    color: #334155;
}

/* =========================
   DASHBOARD CONTAINER CARD
   ========================= */
.dash-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

    .dash-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
    }

/* =========================
   KPI SECTION
   ========================= */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-kpi-card {
    border-left: 5px solid #2563eb;
    padding: 20px;
}

    .dash-kpi-card h4 {
        font-size: 14px;
        color: #64748b;
    }

.dash-kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

/* =========================
   INPUT STYLE
   ========================= */
.dash-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #c5c5c5;/*1px solid #e5e7eb;*/
    border-radius: 10px;
    font-size: 14px;
}

    .dash-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

/* =========================
   BUTTON
   ========================= */
.dash-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.dash-btn-primary {
    background: #2563eb;
    color: #fff;
}

    .dash-btn-primary:hover {
        background: #1d4ed8;
    }

/* =========================
   LAYOUT HELPERS
   ========================= */
.dash-btn-row {
    margin-top: 10px;
    text-align: right;
}

.dash-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =======================================================
   VALIDATION UX
   ======================================================= */

.form-control {
    border-radius: 10px;
    padding: 12px;
    transition: 0.2s;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
    }

/* ASP.NET invalid state */
input.validation-error {
    border: 1px solid #dc3545 !important;
    background-color: #fff5f5;
}

.input-wrapper {
    position: relative;
}

.esg-input {
    width: 100%;
    padding-right: 45px;
}

/* error circle icon */
.error-icon {
    position: absolute;
    right: 12px;
    top: 35%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #dc3545;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    display: none;
}

/* invalid state */
.input-wrapper.invalid .error-icon {
    display: block;
}

.input-wrapper.invalid .esg-input {
    border: 1px solid #dc3545 !important;
    background: #fff5f5;
}

/* =========================
   CUSTOM GRID SYSTEM (ESG DASHBOARD)
   col-1 to col-6
   ========================= */

.background-dashboard {
    padding: 0px 30px;
}

.dash-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* default column behavior */
[class*="dash-col-"] {
    flex: 0 0 auto;
}

/* col sizes */
.dash-col-1 {
    width: 23.33%;/*16.66%;*/
}

.dash-col-2 {
    width: 33.33%;
}

.dash-col-3 {
    width: 50%;
}

.dash-col-4 {
    width: 66.66%;
}

.dash-col-5 {
    width: 83.33%;
}

.dash-col-6 {
    width: 100%;
}

/* =========================
   ESG MODERN TABLE STYLE
   ========================= */

.esg-table-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

/* TABLE BASE */
.esg-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

    /* HEADER - MODERN SLATE */
    .esg-table th {
        background: #1f2937; /* dark slate (modern enterprise) */
        color: #f9fafb;
        text-align: left;
        padding: 12px 14px;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    /* ROW */
    .esg-table td {
        padding: 11px 14px;
        border-bottom: 1px solid #e5e7eb;
        font-size: 13px;
        color: #111827;
    }

    /* STRIPED ROW */
    .esg-table tr:nth-child(even) {
        background-color: #f9fafb;
    }

    /* HOVER EFFECT */
    .esg-table tr:hover {
        background-color: #eef2ff; /* soft indigo hover */
        transition: 0.2s ease;
    }

    /* PAGING */
    .esg-table a {
        padding: 5px 9px;
        margin: 2px;
        background: #f3f4f6;
        border-radius: 6px;
        text-decoration: none;
        color: #111827;
        font-size: 12px;
    }

        .esg-table a:hover {
            background: #1f2937;
            color: #ffffff;
        }

/* BADGE STYLE FOR YES/NO */
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-yes {
    background: #dcfce7;
    color: #166534;
}

.badge-no {
    background: #fee2e2;
    color: #991b1b;
}

/* BUTTON (EXPORT EXCEL) */
.btn-export {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-export:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

/* =======================================================
   RESPONSIVE
   ======================================================= */

@media (max-width: 1024px) {

    .esg-split {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .right-panel {
        padding: 25px 0px;
    }

    /* SWITCH BANNER IMAGE */
    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
    }

    .event-content h1 {
        font-size: 38px;
    }
}

/* mobile */
@media (max-width: 768px) {
    .walkin-box {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* responsive (mobile fallback) */
    .dash-col-1,
    .dash-col-2,
    .dash-col-3,
    .dash-col-4,
    .dash-col-5 {
        width: 100%;
    }

    .esg-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .esg-topbar .nav {
            flex-wrap: wrap;
            gap: 12px;
        }
}

@media (max-width: 600px) {

    .esg-card {
        padding: 20px;
        width: 80%;
    }

    .event-content h1 {
        font-size: 30px;
    }

    .event-content p {
        font-size: 14px;
    }

    .btn {
        font-size: 15px;
    }

    .esg-input {
        font-size: 14px;
        padding: 12px;
    }

    .walkin-box {
        padding: 15px;
        margin: 20px 10px;
    }

    .form-title {
        font-size: 18px;
    }

    .form-section-title {
        font-size: 14px;
    }

    .esg-input {
        padding: 10px;
        font-size: 13px;
    }

    .question-box {
        padding: 12px;
    }

    .full-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-card {
        width: 90%;
        padding: 18px;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
    }

    .popup-buttons {
        flex-direction: column;
    }
}