body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 20px;
    position: relative;
}

h1, h2 {
    color: #333;
}

div {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

thead {
    background-color: #333;
    color: #fff;
}

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

tbody tr:hover {
    background-color: #ddd;
}

strong {
    font-weight: bold;
}

ul {
    padding-left: 20px;
}

.logout-container {
    position: absolute;
    top: 10px;
    right: 20px;
}

.logout-container a {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.logout-container a:hover {
    background-color: #c82333;
}

/* --- Logs Styles --- */
.logs-container {
    margin: 20px auto;
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.logs-header {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.logs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.logs-list li {
    padding: 10px 12px;
    margin-bottom: 6px;
    border-left: 6px solid #ccc;  /* default border */
    border-radius: 4px;
    background: #f9f9f9;
    line-height: 1.4em;
    word-break: break-word; /* ensures long text wraps */
}

/* Colored borders + background by operation */
.logs-list li.log-add {
    border-left-color: #28a745;    /* green border */
    background: #e6f4ea;           /* light green background */
}

.logs-list li.log-remove {
    border-left-color: #dc3545;    /* red border */
    background: #fbeaea;           /* light red background */
}

.logs-list li.log-update {
    border-left-color: #007bff;    /* blue border */
    background: #e7f0fa;           /* light blue background */
}

.logs-list li:last-child {
    margin-bottom: 0;
}

.no-logs {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 1rem;
}
