* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* BODY & BACKGROUND */
body {
    min-height: 100vh;
    background: url('../image/event.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: #fff;
}

/* Overlay gelap supaya teks mudah baca */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* LAYOUT */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar{
    width:240px;
    background: linear-gradient(180deg,#a01c1c,#4b1f1f);
    padding:25px 15px;
    color:white;
}

.sidebar h2{
    text-align:center;
    margin-bottom:40px;
}

.sidebar a{
    display:block;
    color:white;
    padding:12px;
    margin-bottom:10px;
    border-radius:8px;
    text-decoration:none;
    transition:0.3s;
}

.sidebar a:hover{
    background:white;
    color:#b30000;
}

/* CONTENT AREA */
.content{
    flex:1;
    padding:40px;
    display:flex;
    justify-content:center;
}

/* TITLE */
.content h2 {
    text-align:center;
    font-size:28px;
    margin-bottom:30px;

}

/* FORM STYLING */
form {
    max-width: 600px;
    margin: 0 auto 50px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

form label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #63ff9b;
}

form input[type="text"],
form input[type="date"],
form select,
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 22px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: background-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form select:focus,
form textarea:focus,
form input[type="file"]:focus {
    background: rgba(255,255,255,0.3);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    width: 50%;
    background: #1eff7a;
    color: #000;
    font-weight: 700;
    padding: 10px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(30, 255, 122, 0.7);
    transition: background-color 0.3s ease;
}

form button:hover {
    background: #15cc5d;
    color: #fff;
}

/* TABLE STYLING */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

th, td {
    padding: 14px 18px;
    text-align: center;
    color: #e0f7da;
    font-weight: 600;
}

th {
    background: linear-gradient(90deg, #ff4d4d, #b30000);
    font-size: 16px;
    text-shadow: 0 0 4px rgba(255, 77, 77, 0.8);
}

tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.25);
}

tr:hover {
    background: rgba(30, 255, 122, 0.15);
}

a.delete {
    color: #ff5050;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.delete:hover {
    color: #ff0000;
    text-decoration: underline;
}
.msg {
    padding: 12px 20px;
    background-color: #28a745; /* Hijau untuk berjaya */
    color: white;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}
/* RESPONSIVE */
@media (max-width: 680px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 0;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 10px;
        gap: 10px;
    }

    .sidebar h2 {
        flex: 1 0 auto;
        margin-bottom: 0;
        font-size: 18px;
        text-align: left;
    }

    .sidebar a {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 10px 8px;
    }

    .content {
        padding: 20px;
    }

    form {
        width: 100%;
        padding: 20px;
        margin-bottom: 30px;
    }

    table, th, td {
        font-size: 13px;
        padding: 10px 8px;
    }
}