/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== BODY ===== */
body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ===== MAIN CONTAINER ===== */
.container {
    background: #ffffff;
    width: 420px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ===== TITLE ===== */
.container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* ===== INPUTS ===== */
.container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.container input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102,126,234,0.4);
}

/* ===== MESSAGE ===== */
#message {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.container button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 5px;
    transition: 0.3s;
}

/* Add Button */
#addbtn {
    background: #28a745;
    color: white;
}

#addbtn:hover {
    background: #218838;
}

/* Update Button */
#updatebtn {
    background: #ffc107;
    color: black;
}

#updatebtn:hover {
    background: #e0a800;
}

/* Edit Button */
.edit-btn {
    background: #007bff;
    color: white;
}

.edit-btn:hover {
    background: #0069d9;
}

/* Delete Button */
.delete-btn {
    background: #dc3545;
    color: white;
}

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

/* ===== LIST ===== */
#listcaurses {
    list-style: none;
    margin-top: 20px;
    max-height: 250px;
    overflow-y: auto;
}

#listcaurses li {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
