/* 共通のスタイル */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 450px;
    text-align: center;
}

/* 入力フォームのスタイル */
input[type="text"],
input[type="password"] {
    width: 200px;
    padding: 12px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6c63ff;
    outline: none;
}

/* 送信ボタンのスタイル */
input[type="submit"] {
    background-color: #6c63ff;
    color: white;
    border: none;
    padding: 12px;
    width: 200px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #5848c2;
}

/* ボタンリンクのスタイル */
.button-link {
    display: block;
    width: fit-content;
    margin: 10px auto 0 auto;
    padding: 10px 20px;
    background-color: #8b9ba9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.button-link:hover {
    background-color: #5a6268;
}

/* ログアウトボタン */
.logout-button {
    display: inline-block;
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #cc0000;
}

/* メニューセクション */
.menu-wrapper {
    border: 2px solid #ccc;
    border-radius: 16px;
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.menu-wrapper h2 {
    margin-bottom: 20px;
    color: #333;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.menu-button {
    background-color: #6c63ff;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-button:hover {
    background-color: #5848c2;
}

#submit-buttons {
    display: flex;
    justify-content: space-between;
    /* ボタン間のスペースを均等に */
    gap: 10px;
    /* ボタン間のスペースを調整 */
    margin-top: 15px;
    margin-bottom: 30px;
}

#submit-buttons button {
    background: linear-gradient(45deg, #5f94ff, #7bb8fe);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 auto;
    /* ボタンが自動的にサイズを調整するように */
    min-width: 100px;
    /* 最小幅を指定して、あまり小さくならないように */
}

#submit-buttons button:hover {
    background: linear-gradient(45deg, #4985fd, #64acfd);
}

#submit-buttons button.delete-button {
    background: linear-gradient(45deg, #ff4d4d, #ff7070);
}

#submit-buttons button.delete-button:hover {
    background: linear-gradient(45deg, #cc0000, #ff4d4d);
}

.button-tsuika {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 15px;
    text-decoration: none;
}

.button-tsuika:hover {
    background: linear-gradient(45deg, #ff724f, #fea35e);
}


/* ユーザー選択リスト */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.staff-item {
    font-size: 20px;
    text-align: left;
    background-color: #f4f4f4;
    display: block;
    width: 100%;
    background-color: #f0f0ff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.staff-item:hover {
    background-color: #e0e0ff;
}

.staff-item.selected {
    background-color: #c0c0ff;
    border: 2px solid #6666ff;
}

/* ユーザー選択ボタンの列表示 */
.staff-column {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

/* ページネーション */
.pagination {
    margin-top: 15px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    border: none;
}

.pagination .active {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

/* ローンセクション */
.loan-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.loan-section form {
    display: inline-block;
    text-align: left;
}

.loan-wrapper.borrow {
    background-color: #e6f2ff;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.loan-wrapper.return {
    background-color: #fff3e6;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.rental-form {
    margin-left: 5px;
}

.rental-button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.info {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    font-size: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.info th,
.info td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info th {
    background: linear-gradient(45deg, #5f94ff, #7bb8fe);
    color: white;
    width: 30%;
    font-weight: bold;
}

.info td {
    width: 100%;
}

.info tr:last-child td {
    border-bottom: none;
}

.edit {
    display: flex;
    justify-content: center;
    margin-right: 80px;
}

.edit th,
.edit-check th {
    padding: 5px;
    text-align: right;
}

.edit td,
.edit-check td {
    text-align: left;
}

.edit-check {
    margin-right: 90px;
    display: flex;
    justify-content: center;
}

.button-register {
    background-color: #d9fee2;
    color: black;
}

.button-register:hover{
    background-color: #94fdae;
}

.button-record {
    background-color: #ffefd0;
    color: black;
}

.button-record:hover{
background-color: #fddd9f;
}
