/* 従業員管理ページ専用スタイル */

/* フォームスタイル */
.employee-form-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.employee-form {
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* 従業員一覧テーブル */
.employee-list-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.employee-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.employee-table th,
.employee-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.employee-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.employee-table tbody tr {
    transition: background-color 0.3s ease;
}

.employee-table tbody tr:hover {
    background: #f8f9fa;
}

.employee-table tbody tr:last-child td {
    border-bottom: none;
}

/* 操作ボタン */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 検索ボックス */
.search-box {
    position: relative;
    display: inline-block;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    padding: 10px 16px 10px 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header i {
    color: #dc3545;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.warning-text {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    background: #f8d7da;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ヘッダーナビゲーション */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .section-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .employee-table {
        font-size: 12px;
    }

    .employee-table th,
    .employee-table td {
        padding: 10px 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-icon {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .closing-day-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .employee-form-section,
    .employee-list-section {
        padding: 20px 15px;
    }

    .form-control {
        font-size: 16px; /* iOSのズーム防止 */
    }
}

/* 締め日設定 */
.closing-day-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.setting-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.setting-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-card h3 i {
    color: #667eea;
}

.save-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

/* 社員区分バッジ */
.type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #667eea;
    color: white;
}

/* 社員区分リスト */
.type-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.type-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.type-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-name i {
    color: #667eea;
}

.type-actions {
    display: flex;
    gap: 8px;
}