body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Background Image + White Gradient Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%),
        url("/OIP.jpg") no-repeat center center;
    background-size: cover;
    opacity: 0.25; /* 25% opacity for image + gradient */
    z-index: -1;
}

header {
    width: 100%;
    padding: 20px 30px;
    background: #4CAF50;
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between left and right items */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    position: relative;
}

/* Center the text */
header h1 {
    margin: 0;
    text-align: center;
    flex: 1;
}

/* View button */
#view {
    background-color: white;
    color: #4CAF50;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 5%;
}

#view:hover {
    background-color: #dff7e3;
}

/* CENTER BUTTONS */
.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 80vh;
    align-items: center;
    gap: 40px;
}

.buttons > button {
    width: 260px;
    height: 160px;
    font-size: 35px;
    border-radius: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.buttons > button:hover {
    background: #43a047;
    transform: translateY(-3px);
}

/* FORM BOX */
.form-box {
    display: none;
    height: calc(100vh - 120px);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* FORM STYLE */
form {
    width: 380px;
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

label {
    font-size: 14px;
    margin-top: 12px;
    font-weight: bold;
    color: #333;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 14px;
}

/* SUBMIT BUTTON */
button {
    margin-top: 18px;
    padding: 12px;
    background: #4CAF50;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #43a047;
}

/* TABLE SECTION */
#user-list {
    display: none;
    flex-direction: column;
    padding: 20px 40px;
}

#user-list h2 {
    text-align: left;
    color: #333;
    font-size: 26px;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

th {
    background: #4CAF50;
    color: white;
    padding: 12px;
    font-size: 15px;
}

td {
    background: white;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

tr:hover td {
    background: #f5fff7;
}

/* LINKS */
a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}
