/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

/* Container */
body {
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-add {
    max-width: 400px;
    margin: 20px auto;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 2px 3px rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Form Fields */
label {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"], select, button {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Buttons */
button {
    background: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: #2c3e50;
    color: #ffffff;
    text-transform: uppercase;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f1f1f1;
}

/* Responsive Table */
@media (max-width: 768px) {
    table {
        border: 0;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 15px;
    }

    table td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        position: absolute;
        left: 10px;
        text-align: left;
    }

    table td:last-child {
        border-bottom: 0;
    }
}

/* Form Responsiveness */
@media (max-width: 480px) {
    form {
        padding: 15px;
    }

    input[type="text"], button {
        font-size: 0.9rem;
    }
}

/* General Adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    body {
        padding: 10px;
    }
}
