/* --- ヘッダー（上のメニュー帯）のデザイン --- */
header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;          /* 横並びにする魔法 */
    justify-content: space-between; /* 左右に振り分ける */
    align-items: center;    /* 縦の真ん中に揃える */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 15px; /* メニューの間の隙間を均等に開ける */
}

/* メニューのリンクをボタン風に */
header nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.2s;
}

header nav a:hover {
    background-color: #34495e; /* マウスを乗せたら少し色を変える */
    color: #18bc9c;
}

/* ログイン中のユーザー名のバッジ */
.user-badge {
    background-color: #f39c12;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* 年度切り替えのセレクトボックス */
.year-selector {
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
}
.year-selector:focus {
    outline: none;
    border-color: #3498db;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.form-container {
    max-width: 500px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="date"],
.input-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* 幅がはみ出さないように */
    font-size: 16px;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.file-info {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* --- ログイン画面専用のデザイン --- */

.login-container {
    max-width: 400px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-form .input-group {
    text-align: left;
}

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* Googleボタンをより公式っぽく */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #3c4043;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2d4d7;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #bdc3c7;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.divider span {
    margin: 0 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.test-account-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    text-align: left;
    border: 1px dashed #cbd5e1;
}

/* --- 承認画面用のデザイン --- */

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.approve-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.approve-table th, .approve-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    text-align: left;
}

.approve-table th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
}

.approve-table tr:hover {
    background-color: #f8f9fa;
}

/* ステータスバッジ */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
.badge.pending { background-color: #f39c12; }
.badge.approved { background-color: #27ae60; }
.badge.rejected { background-color: #e74c3c; }

/* アクションボタン */
.action-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin-right: 5px;
    transition: opacity 0.2s;
}
.action-btn:hover { opacity: 0.8; }
.btn-approve { background-color: #27ae60; color: white; border: 1px solid #219653; }
.btn-reject { background-color: white; color: #e74c3c; border: 1px solid #e74c3c; }
.btn-receipt { background-color: #3498db; color: white; border: none; padding: 6px 10px; border-radius: 4px; font-size: 12px; text-decoration: none; }