/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #1f4696;
    color: white;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

/* Form Styles */
form {
    width: 80%;
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

form input, form select, form button, form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #1f4696;
    box-shadow: 0 0 8px rgba(31, 70, 150, 0.5);
    outline: none;
}

form button {
    background-color: #1f4696;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: #b82a2f;
}

form .error-message {
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
}

form .success-message {
    color: #27ae60;
    margin-top: 10px;
    text-align: center;
}

/* Success and Error Messages */
p {
    font-weight: bold;
    text-align: center;
}

ul {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    width: 80%;
    max-width: 900px;
}

ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

ul li img {
    max-height: 60px;
    border-radius: 10px;
    margin-right: 20px;
}

ul li .item-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

ul li .delete-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

ul li .delete-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    ul li img {
        max-height: 100px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    ul li .item-title {
        font-size: 16px;
    }

    form {
        width: 90%;
    }
}
