body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.form-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #e1e8ed;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

button {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    flex: 1;
}

button:hover {
    background: #2980b9;
}

#resetBtn {
    background: #95a5a6;
}

#resetBtn:hover {
    background: #7f8c8d;
}

.table-section {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

table.list {
    text-align: left;
}

thead {
    background: #34495e;
}

thead th {
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 13px;
}

td {
    border-bottom: 1px solid #ecf0f1;
    padding: 12px 15px;
    vertical-align: middle;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Action buttons in table */
td:last-child {
    text-align: center;
}

td:last-child button {
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 13px;
    flex: none;
}

td:last-child button:first-child {
    background: #27ae60;
}

td:last-child button:first-child:hover {
    background: #219653;
}

td:last-child button:last-child {
    background: #e74c3c;
}

td:last-child button:last-child:hover {
    background: #c0392b;
}

/* Message styles */
.message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}

.loading {
    background: #d6eaf8;
    color: #2874a6;
    border: 1px solid #aed6f1;
}

.error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.success {
    background: #d5f5e3;
    color: #27ae60;
    border: 1px solid #abebc6;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    table {
        font-size: 14px;
    }
    
    thead {
        display: none;
    }
    
    td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ecf0f1;
    }
    
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        font-size: 12px;
        color: #34495e;
    }
    
    tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e1e8ed;
        border-radius: 6px;
        padding: 0;
    }
}