body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1e1e2f;
    color: #f5f5f5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #0f0f1f, #1b1b2f);
    border-bottom: 2px solid #6c63ff;
}

header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#addUserBtn {
    background: linear-gradient(45deg, #6c63ff, #a855f7);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

#addUserBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #a855f7;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.user-card {
    background: #2a2a3d;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    transition: 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #6c63ff;
}

.user-card h3 {
    margin: 0;
    color: #ffffff;
}

.user-card p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ccc;
}

.card-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.editBtn, .deleteBtn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
}

.editBtn {
    background: linear-gradient(45deg, #3b82f6, #9333ea);
}

.deleteBtn {
    background: linear-gradient(45deg, #ef4444, #f97316);
}

.editBtn:hover {
    box-shadow: 0 0 8px #9333ea;
}

.deleteBtn:hover {
    box-shadow: 0 0 8px #f97316;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #0f0f1f;
    font-size: 0.8rem;
    color: #999;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(42, 42, 61, 0.9);
    margin: 8% auto;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 0 15px #6c63ff;
}

.closeBtn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f5f5f5;
}

form input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 1rem;
}

form button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #6c63ff, #a855f7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

form button:hover {
    box-shadow: 0 0 10px #a855f7;
}
