body {
    position: relative; /* ✅ Needed so ::before anchors to body */
    background: rgb(4, 4, 61);
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding-block: 60px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: default;
}

/* 🌌 The glowing aura behind the center only */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120vmin;   /* smaller = more focused glow */
    height: 120vmin;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
        rgba(0, 128, 255, 0.6),
        rgba(255, 215, 0, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent 70%);
    filter: blur(120px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

i {
    font-size: 30px;
}

p {
    font-size: 20px;
    margin: 0;
}

.dev-button {
    position: fixed;
    top: 10px;
    left: 10px;
}


#bait {
    position: fixed;
    top: 10px;
    left: 5vw;
    text-align: right;
    transition: opacity 0.5s ease;
}

.search {
    margin-top: 150px;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#search-input {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                inset 0 1px 8px rgba(255, 255, 255, 0.2);
    width: 50vw;
    height: 38px;
    padding: 5px 15px;
    font-size: medium;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}

table {
    width: 88vw;
    margin-top: 25px;
    border-collapse: collapse;
    text-align: center;
    border-radius: 15px;
    overflow: hidden; /* rounded edges visible */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: glassGlow 6s ease-in-out infinite;
}

@keyframes glassGlow {
    0%, 100% { box-shadow: 0 8px 40px rgba(0, 150, 255, 0.2); }
    50% { box-shadow: 0 8px 40px rgba(0, 200, 255, 0.4); }
}

thead {
    background: rgba(0, 128, 255, 0.25);
    color: #ffffff;
    font-size: larger;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.6);
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(0, 200, 255, 0.15);
    transform: scale(1.01);
}

th, td {
    padding: 12px;
    color: #e8f6ff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#pegawai-table-body a {
    display: inline-block;
    background: rgba(0, 200, 255, 0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#pegawai-table-body a:hover {
    background: rgba(0, 200, 255, 0.35);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

button {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                inset 0 1px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;

    animation: glassGlow 6s ease-in-out infinite;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
}

button:hover {
    display: inline-block;
    background: rgba(0, 200, 255, 0.15);
    color: white;
    padding: 11px 21px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.adjustment {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 1vw;
    bottom: 1vw;
    gap: 10px;
}

.edit-button {
    position: fixed;
    top: 25px;
    right: 2%;
}

/* ADDFORM SECTION */
.back-button {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10;
}

input {
    width: 32vw;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                inset 0 1px 8px rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-container {
    width: 90vw;

    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                inset 0 1px 8px rgba(255, 255, 255, 0.2);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.gambarpegawai {
    display: block;
    width: 170px;
    height: 200px;
    border: 2px solid black;
}

.left-container {
    padding: 35px;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    
}

.right-container {
    padding: 35px;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.selected-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    margin-top: 10px;
    
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.07),
        rgba(0, 0, 0, 0.25)
    );
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 -2px 8px rgba(255, 255, 255, 0.15);

    width: 95%;
    padding: 10px;

    max-height: 300px;
    height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-color: black rgba(255, 255, 255, 0.299);
    scrollbar-width: 5px;
}

tr.selected-row {
    background-color: #d73232; /* yellow highlight */
    font-weight: bold;
}

tr.selected-row:hover {
    background-color: #ff4c4c; /* brighter yellow on hover */
    transform: scale(1.01);
}