/* =========================
   GUEST KIT - INVINISM
   ========================= */

.guest-kit-wrapper {
    max-width: 900px;
    margin: 10px auto;
    padding: 10px;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: #ffffff;
}

/* Title */
.guest-kit-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111827;
}

/* Box section */
.guest-kit-box {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-kit-box label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Input & textarea */
.guest-kit-box input,
.guest-kit-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.guest-kit-box textarea {
    min-height: 120px;
    resize: vertical;
}

.guest-kit-box input:focus,
.guest-kit-box textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}


/* Buttons */
.guest-kit-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0 25px;
}

.guest-kit-actions button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* Primary button */
#guest-kit-generate {
    background: #4f46e5;
    color: #fff;
}

#guest-kit-generate:hover {
    background: #4338ca;
}

/* Secondary button */
#guest-kit-clear {
    background: #f3f4f6;
    color: #111827;
}

#guest-kit-clear:hover {
    background: #e5e7eb;
}

/* Table */
.guest-kit-result {
    margin-top: 25px;
}

.guest-kit-result h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.guest-kit-result table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.guest-kit-result th,
.guest-kit-result td {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.guest-kit-result th {
    background: #f9f9f9;
    font-weight: 700;
    color: #374151;
}

/* Buttons inside table */
.guest-kit-result button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    transition: 0.2s;
}

/* Preview */
.guest-kit-preview {
    background: #f59e0b;
    color: #fff;
}

.guest-kit-preview:hover {
    background: #d97706;
}

/* Copy */
.guest-kit-copy {
    background: #10b981;
    color: #fff;
}

.guest-kit-copy:hover {
    background: #059669;
}

/* Notification */
.guest-kit-notify {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .guest-kit-wrapper {
        padding: 15px;
    }

    .guest-kit-actions {
        flex-direction: column;
    }

    .guest-kit-result table {
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    /* FORCE TABLE TO BECOME BLOCK */
    .guest-kit-result table {
        width: 100% !important;
    }

    .guest-kit-result thead {
        display: none !important;
    }

    .guest-kit-result tbody,
    .guest-kit-result tr {
        display: block !important;
        width: 100% !important;
    }

    .guest-kit-result tr {
        margin-bottom: 12px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        padding: 10px !important;
        background: #fff !important;
    }

    .guest-kit-result td {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        padding: 8px 10px 8px 45% !important;
        border: none !important;
        text-align: left !important;
    }

    .guest-kit-result td::before {
        position: absolute;
        left: 10px;
        top: 8px;
        width: 40%;
        font-weight: 600;
        color: #000 !important;
        white-space: nowrap;
    }

    /* LABEL HARUS SESUAI TH */
    .guest-kit-result td:nth-of-type(1)::before { content: "No"; }
    .guest-kit-result td:nth-of-type(2)::before { content: "Nama"; }
    .guest-kit-result td:nth-of-type(3)::before { content: "Preview"; }
    .guest-kit-result td:nth-of-type(4)::before { content: "Aksi"; }

    /* tombol full width */
    .guest-kit-result button {
        width: 50% !important;
        margin-top: 5px;
    }
}