body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button[type="submit"], .secondary-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    margin-right: 10px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    font-weight: bold;
    text-align: center;
}

.message.info {
    background-color: #e7f3fe;
    color: #007bff;
    border: 1px solid #b8daff;
}

.message.success {
    background-color: #d4edda;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.search-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

table thead th {
    background-color: #e9ecef;
    padding: 3px 5px;
    text-align: left;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

table tbody td {
    padding: 3px 5px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

table tbody tr:hover {
    background-color: #e2f0ff;
}

table a {
    color: #007bff;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

.action-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 5px;
    padding: 5px;
    color: #007bff;
    transition: color 0.2s, transform 0.1s;
}

.action-buttons button:hover {
    color: #0056b3;
    transform: translateY(-1px);
}

.action-buttons .delete-btn {
    color: #dc3545;
}

.action-buttons .delete-btn:hover {
    color: #c82333;
}

/* Header Bar for Logout Button */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#logoutBtn {
    background-color: #dc3545; /* Màu đỏ cho đăng xuất */
    color: white;
    padding: 5px 10px; /* Nhỏ hơn các nút form */
    font-size: 0.95rem;
}

#logoutBtn:hover {
    background-color: #c82333;
}