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

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    padding: 20px;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* TITLE */
h1 {
    color: #1565c0;
    margin-bottom: 40px;
    text-align: center;
}

/* NAV */
nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

nav a {
    background: #1976d2;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    background: #1565c0;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse; /* FIXED */
}

/* HEADER */
th {
    background: #1976d2;
    color: white;
    padding: 14px;
    text-align: center;
}

th:first-child {
    border-top-left-radius: 15px;
}

th:last-child {
    border-top-right-radius: 15px;
}

/* ROWS */
tr {
    background: linear-gradient(to right, #e3f2fd 0%, #ffffff 50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* CELLS */
td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

/* ID COLUMN */
td:first-child {
    font-weight: bold;
    color: #1565c0;
    text-align: center;
    width: 80px;
}

/* BUTTONS */
.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* UPDATE */
.btn-edit {
    background: #2196f3;
    color: white;
}

.btn-edit:hover {
    background: #1976d2;
}

/* DELETE */
.btn-delete {
    background: #e53935;
    color: white;
}

.btn-delete:hover {
    background: #c62828;
}

/* SPACE BETWEEN BUTTONS */
td form {
    display: inline-block;
    margin-right: 10px;
}

/* SEARCH FORM */
.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px;
}

.search-form input {
    padding: 10px 14px;
    border: 2px solid #1976d2;
    border-radius: 40px;
    outline: none;
    font-size: 1rem;
    width: 250px;
}

.search-form input:focus {
    border-color: #1565c0;
}

.search-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    background: #2196f3;
    color: white;
    cursor: pointer;
}

.search-form button:hover {
    background: #1976d2;
}

/* CREATE / EDIT FORM */
.create-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.create-form input,
.create-form textarea {
    padding: 10px 14px;
    border: 2px solid #1976d2;
    border-radius: 40px;
    outline: none;
    font-size: 1rem;
    width: 100%;
}

.create-form input:focus,
.create-form textarea:focus {
    border-color: #1565c0;
}

.create-form textarea {
    min-height: 90px;
}

.create-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    background: #2196f3;
    color: white;
    cursor: pointer;
    width: fit-content;
}

.create-form button:hover {
    background: #1976d2;
}