* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    padding: 100px 150px;
    min-height: 100vh;
}

/* Headings */
.heading {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 50px;
    color: #fff;
}

.heading-count {
    color: #666;
    font-size: 24px;
    font-weight: 400;
}

/* Form Layout */
.detail {
    width: 100%;
}

.detailInput {
    display: flex;
    margin-bottom: 25px; /*between input and btn*/
    gap: 40px;
    width: 100%;
}

.name,
.profession,
.Age {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    margin-bottom: 20px; /*btw label and inutfield*/
    color: #fff;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background-color: #000;
    border: 1px solid white;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    outline: none;
    height: 48px;
}

/* Button Container */
.button {
    margin-bottom: 25px; /*add user and Added emp text*/
}

#addBtn {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
    padding: 10px 32px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 400;
    transition: opacity 0.2s;
}

#addBtn:hover {
    opacity: 0.9;
}

/* Feedback Area - Fixed height to prevent layout shift */
.user-feedback {
    min-height: 30px;
    margin-bottom: 20px;
}

.success {
    color: #22c55e;
    font-size: 24px;
    display: block;
}

.fail {
    color: #ef4444;
    font-size: 24px;
    display: block;
}

/* Added Employees Section - Proper spacing from top */
.message {
    margin-bottom: 10px;
}

.message .heading {
    margin-bottom: 25px;
}

/* Count Message */
.count {
    margin-bottom: 25px;
}

/* List Container */
.list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.list p {
    margin: 0;
}

/* Employee Row - Button outside the box */
.records {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between white box and delete button */
    width: 40%;
}

/* White Box - Contains only employee info */
.record {
    flex: 1;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 18px 24px;
    color: #fff;
    font-size: 16px;
    background-color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Delete Button - Outside the white box */
.delBtn {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.delBtn:hover {
    opacity: 0.8;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 30px 40px;
    }

    .details {
        flex-direction: column;
        gap: 20px;
    }

    .records {
        flex-direction: column;
        align-items: stretch;
    }

    .delBtn {
        align-self: flex-end;
        margin-top: 10px;
    }
}
